NeoMutt  2025-12-11-949-g4870ee
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
module.c File Reference

Definition of the Fuzzy Module. More...

#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include "mutt/lib.h"
#include "core/lib.h"
#include "module_data.h"
+ Include dependency graph for module.c:

Go to the source code of this file.

Functions

static bool fuzzy_init (struct NeoMutt *n)
 Initialise a Module - Implements Module::init()
 
static bool fuzzy_cleanup (struct NeoMutt *n, void *data)
 Clean up a Module - Implements Module::cleanup()
 

Variables

const struct Module ModuleFuzzy
 Module for the Fuzzy library.
 

Detailed Description

Definition of the Fuzzy Module.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file module.c.

Function Documentation

◆ fuzzy_init()

static bool fuzzy_init ( struct NeoMutt * n)
static

Initialise a Module - Implements Module::init()

Definition at line 39 of file module.c.

40{
41 struct FuzzyModuleData *mod_data = MUTT_MEM_CALLOC(1, struct FuzzyModuleData);
43
44 return true;
45}
#define MUTT_MEM_CALLOC(n, type)
Definition memory.h:52
@ MODULE_ID_FUZZY
ModuleFuzzy, Fuzzy matching library
Definition module_api.h:67
void neomutt_set_module_data(struct NeoMutt *n, enum ModuleId id, void *data)
Set the private data for a Module.
Definition neomutt.c:680
Fuzzy private Module data.
Definition module_data.h:32
+ Here is the call graph for this function:

◆ fuzzy_cleanup()

static bool fuzzy_cleanup ( struct NeoMutt * n,
void * data )
static

Clean up a Module - Implements Module::cleanup()

Definition at line 50 of file module.c.

51{
52 struct FuzzyModuleData *mod_data = data;
53
54 FREE(&mod_data);
55 return true;
56}
#define FREE(x)
Free memory and set the pointer to NULL.
Definition memory.h:68

Variable Documentation

◆ ModuleFuzzy

const struct Module ModuleFuzzy
Initial value:
= {
"fuzzy",
NULL,
NULL,
NULL,
NULL,
NULL,
}
static bool fuzzy_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:39
static bool fuzzy_cleanup(struct NeoMutt *n, void *data)
Clean up a Module - Implements Module::cleanup()
Definition module.c:50

Module for the Fuzzy library.

Definition at line 61 of file module.c.

61 {
63 "fuzzy",
65 NULL, // config_define_types
66 NULL, // config_define_variables
67 NULL, // commands_register
68 NULL, // gui_init
69 NULL, // gui_cleanup
71};