NeoMutt  2025-12-11-949-g4870ee
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
module.c File Reference

Definition of the Mlist Module. More...

#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "core/lib.h"
#include "module_data.h"
+ Include dependency graph for module.c:

Go to the source code of this file.

Functions

static bool mlist_init (struct NeoMutt *n)
 Initialise a Module - Implements Module::init()
 
static bool mlist_cleanup (struct NeoMutt *n, void *data)
 Clean up a Module - Implements Module::cleanup()
 

Variables

struct ConfigDef MlistVars []
 
const struct Module ModuleMlist
 Module for the Mlist library.
 

Detailed Description

Definition of the Mlist Module.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file module.c.

Function Documentation

◆ mlist_init()

static bool mlist_init ( struct NeoMutt * n)
static

Initialise a Module - Implements Module::init()

Definition at line 42 of file module.c.

43{
44 struct MlistModuleData *mod_data = MUTT_MEM_CALLOC(1, struct MlistModuleData);
46
47 return true;
48}
#define MUTT_MEM_CALLOC(n, type)
Definition memory.h:52
@ MODULE_ID_MLIST
ModuleMlist, Mailing-list
Definition module_api.h:80
void neomutt_set_module_data(struct NeoMutt *n, enum ModuleId id, void *data)
Set the private data for a Module.
Definition neomutt.c:680
Mlist private Module data.
Definition module_data.h:32
+ Here is the call graph for this function:

◆ mlist_cleanup()

static bool mlist_cleanup ( struct NeoMutt * n,
void * data )
static

Clean up a Module - Implements Module::cleanup()

Definition at line 53 of file module.c.

54{
55 struct MlistModuleData *mod_data = data;
56
57 FREE(&mod_data);
58 return true;
59}
#define FREE(x)
Free memory and set the pointer to NULL.
Definition memory.h:68

Variable Documentation

◆ MlistVars

struct ConfigDef MlistVars[]
extern

◆ ModuleMlist

const struct Module ModuleMlist
Initial value:
= {
"mlist",
NULL,
NULL,
NULL,
NULL,
NULL,
}
static bool mlist_cleanup(struct NeoMutt *n, void *data)
Clean up a Module - Implements Module::cleanup()
Definition module.c:53
static bool mlist_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:42

Module for the Mlist library.

Definition at line 64 of file module.c.

64 {
66 "mlist",
68 NULL, // config_define_types
69 NULL, // config_define_variables
70 NULL, // commands_register
71 NULL, // gui_init
72 NULL, // gui_cleanup
74};