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 HcacheVars[];
38extern struct ConfigDef HcacheVarsComp[];
39
43static bool hcache_init(struct NeoMutt *n)
44{
45 // struct HcacheModuleData *md = MUTT_MEM_CALLOC(1, struct HcacheModuleData);
46 // neomutt_set_module_data(n, MODULE_ID_HCACHE, md);
47
48 return true;
49}
50
54static bool hcache_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
55{
56 bool rc = true;
57
59
60#if defined(USE_HCACHE_COMPRESSION)
62#endif
63
64 return rc;
65}
66
70static bool hcache_cleanup(struct NeoMutt *n)
71{
72 // struct HcacheModuleData *md = neomutt_get_module_data(n, MODULE_ID_HCACHE);
73 // ASSERT(md);
74
75 // FREE(&md);
76 return true;
77}
78
82const struct Module ModuleHcache = {
84 "hcache",
86 NULL, // config_define_types
88 NULL, // commands_register
89 NULL, // gui_init
90 NULL, // gui_cleanup
92};
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.
const struct Module ModuleHcache
Module for the Hcache library.
Definition module.c:82
struct ConfigDef HcacheVars[]
Config definitions for the Header Cache.
Definition config.c:169
struct ConfigDef HcacheVarsComp[]
Config definitions for the Header Cache Compression.
Definition config.c:185
static bool hcache_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:54
static bool hcache_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:43
static bool hcache_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition module.c:70
Hcache private Module data.
@ MODULE_ID_HCACHE
ModuleHcache, Email Header Cache
Definition module_api.h:67
Convenience wrapper for the library headers.
Container for lots of config items.
Definition set.h:251
Container for Accounts, Notifications.
Definition neomutt.h:41