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 ConnVars[];
38extern struct ConfigDef ConnVarsGetaddr[];
39extern struct ConfigDef ConnVarsGnutls[];
40extern struct ConfigDef ConnVarsOpenssl[];
41extern struct ConfigDef ConnVarsPartial[];
42extern struct ConfigDef ConnVarsSsl[];
43
47static bool conn_init(struct NeoMutt *n)
48{
49 // struct ConnModuleData *md = MUTT_MEM_CALLOC(1, struct ConnModuleData);
50 // neomutt_set_module_data(n, MODULE_ID_CONN, md);
51
52 return true;
53}
54
58static bool conn_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
59{
60 bool rc = true;
61
63
64#if defined(USE_SSL)
66#endif
67
68#if defined(USE_SSL_GNUTLS)
70#endif
71
72#if defined(USE_SSL_OPENSSL)
74#endif
75
76#if defined(HAVE_SSL_PARTIAL_CHAIN)
78#endif
79
80#if defined(HAVE_GETADDRINFO)
82#endif
83
84 return rc;
85}
86
90static bool conn_cleanup(struct NeoMutt *n)
91{
92 // struct ConnModuleData *md = neomutt_get_module_data(n, MODULE_ID_CONN);
93 // ASSERT(md);
94
95 // FREE(&md);
96 return true;
97}
98
102const struct Module ModuleConn = {
104 "conn",
105 conn_init,
106 NULL, // config_define_types
108 NULL, // commands_register
109 NULL, // gui_init
110 NULL, // gui_cleanup
112};
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
struct ConfigDef ConnVarsSsl[]
General SSL Config definitions for the conn library.
Definition config.c:66
struct ConfigDef ConnVars[]
Config definitions for the connection library.
Definition config.c:39
struct ConfigDef ConnVarsOpenssl[]
OpenSSL Config definitions for the connection library.
Definition config.c:125
struct ConfigDef ConnVarsPartial[]
SSL partial chains Config definitions for the connection library.
Definition config.c:145
struct ConfigDef ConnVarsGetaddr[]
GetAddrInfo Config definitions for the connection library.
Definition config.c:159
struct ConfigDef ConnVarsGnutls[]
GnuTLS Config definitions for the connection library.
Definition config.c:108
static bool conn_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition module.c:90
const struct Module ModuleConn
Module for the Conn library.
Definition module.c:102
static bool conn_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:58
static bool conn_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:47
Conn private Module data.
Convenience wrapper for the core headers.
@ MODULE_ID_CONN
ModuleConn, Network connections
Definition module_api.h:60
Convenience wrapper for the library headers.
Container for lots of config items.
Definition set.h:251
Container for Accounts, Notifications.
Definition neomutt.h:41