NeoMutt  2025-12-11-435-g4ac674
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 "config/lib.h"
33#include "core/lib.h"
34
35extern const struct ConfigSetType CstAddress;
36#if defined(HAVE_LIBIDN)
37extern struct ConfigDef AddressVarsIdn[];
38#endif
39
43static bool address_config_define_types(struct NeoMutt *n, struct ConfigSet *cs)
44{
45 return cs_register_type(cs, &CstAddress);
46}
47
51static bool address_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
52{
53 bool rc = true;
54
55#if defined(HAVE_LIBIDN)
57#endif
58
59 return rc;
60}
61
65const struct Module ModuleAddress = {
67 "address",
68 NULL, // init
71 NULL, // commands_register
72 NULL, // gui_init
73 NULL, // gui_cleanup
74 NULL, // cleanup
75};
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:51
const struct Module ModuleAddress
Module for the Address library.
Definition module.c:65
static bool address_config_define_types(struct NeoMutt *n, struct ConfigSet *cs)
Set up Config Types - Implements Module::config_define_types()
Definition module.c:43
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
Container for lots of config items.
Definition set.h:250
Container for Accounts, Notifications.
Definition neomutt.h:41