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 struct ConfigDef AutocryptVars[];
38
42static bool autocrypt_init(struct NeoMutt *n)
43{
44 // struct AutocryptModuleData *md = MUTT_MEM_CALLOC(1, struct AutocryptModuleData);
45 // neomutt_set_module_data(n, MODULE_ID_AUTOCRYPT, md);
46
47 return true;
48}
49
53static bool autocrypt_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
54{
55 bool rc = false;
56
57#if defined(USE_AUTOCRYPT)
59#endif
60
61 return rc;
62}
63
67static bool autocrypt_cleanup(struct NeoMutt *n)
68{
69 // struct AutocryptModuleData *md = neomutt_get_module_data(n, MODULE_ID_AUTOCRYPT);
70 // ASSERT(md);
71
72 // FREE(&md);
73 return true;
74}
75
79const struct Module ModuleAutocrypt = {
81 "autocrypt",
83 NULL, // config_define_types
85 NULL, // commands_register
86 NULL, // gui_init
87 NULL, // gui_cleanup
89};
struct ConfigDef AutocryptVars[]
Config definitions for the autocrypt library.
Definition config.c:64
static bool autocrypt_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:53
static bool autocrypt_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:42
static bool autocrypt_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition module.c:67
const struct Module ModuleAutocrypt
Module for the Autocrypt library.
Definition module.c:79
Autocrypt 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
Convenience wrapper for the core headers.
@ MODULE_ID_AUTOCRYPT
ModuleAutocrypt, Autocrypt
Definition module_api.h:50
Convenience wrapper for the library headers.
Container for lots of config items.
Definition set.h:251
Container for Accounts, Notifications.
Definition neomutt.h:41