NeoMutt  2025-12-11-694-ga89709
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
module.c
Go to the documentation of this file.
1
22
28
29#include "config.h"
30#include <stdbool.h>
31#include <stddef.h>
32#include "mutt/lib.h"
33#include "config/lib.h"
34#include "core/lib.h"
35#include "module_data.h"
36
37extern const struct ConfigSetType CstAddress;
38#if defined(HAVE_LIBIDN)
39extern struct ConfigDef AddressVarsIdn[];
40#endif
41
45static bool address_init(struct NeoMutt *n)
46{
47 // struct AddressModuleData *md = MUTT_MEM_CALLOC(1, struct AddressModuleData);
48 // neomutt_set_module_data(n, MODULE_ID_ADDRESS, md);
49
50 return true;
51}
52
56static bool address_config_define_types(struct NeoMutt *n, struct ConfigSet *cs)
57{
58 return cs_register_type(cs, &CstAddress);
59}
60
64static bool address_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
65{
66 bool rc = true;
67
68#if defined(HAVE_LIBIDN)
70#endif
71
72 return rc;
73}
74
78static bool address_cleanup(struct NeoMutt *n)
79{
80 // struct AddressModuleData *md = neomutt_get_module_data(n, MODULE_ID_ADDRESS);
81 // ASSERT(md);
82
83 // FREE(&md);
84 return true;
85}
86
90const struct Module ModuleAddress = {
92 "address",
96 NULL, // commands_register
97 NULL, // gui_init
98 NULL, // gui_cleanup
100};
struct ConfigDef AddressVarsIdn[]
IDN Config definitions.
Definition config.c:30
const struct ConfigSetType CstAddress
Config type representing an Email Address.
static bool address_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:64
static bool address_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition module.c:78
const struct Module ModuleAddress
Module for the Address library.
Definition module.c:90
static bool address_config_define_types(struct NeoMutt *n, struct ConfigSet *cs)
Set up Config Types - Implements Module::config_define_types()
Definition module.c:56
static bool address_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:45
Address private Module data.
Convenience wrapper for the config headers.
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[])
Register a set of config items.
Definition set.c:290
bool cs_register_type(struct ConfigSet *cs, const struct ConfigSetType *cst)
Register a type of config item.
Definition set.c:220
Convenience wrapper for the core headers.
@ MODULE_ID_ADDRESS
ModuleAddress, Address
Definition module_api.h:47
Convenience wrapper for the library headers.
Container for lots of config items.
Definition set.h:251
Container for Accounts, Notifications.
Definition neomutt.h:41