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

Definition of the Color Module. More...

#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include "mutt/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 color_init (struct NeoMutt *n)
 Initialise a Module - Implements Module::init()
 
static bool color_cleanup (struct NeoMutt *n)
 Clean up a Module - Implements Module::cleanup()
 

Variables

const struct Module ModuleColor
 Module for the Color library.
 

Detailed Description

Definition of the Color 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

◆ color_init()

static bool color_init ( struct NeoMutt * n)
static

Initialise a Module - Implements Module::init()

Definition at line 39 of file module.c.

40{
41 // struct ColorModuleData *md = MUTT_MEM_CALLOC(1, struct ColorModuleData);
42 // neomutt_set_module_data(n, MODULE_ID_COLOR, md);
43
44 return true;
45}

◆ color_cleanup()

static bool color_cleanup ( struct NeoMutt * n)
static

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

Definition at line 50 of file module.c.

51{
52 // struct ColorModuleData *md = neomutt_get_module_data(n, MODULE_ID_COLOR);
53 // ASSERT(md);
54
55 // FREE(&md);
56 return true;
57}

Variable Documentation

◆ ModuleColor

const struct Module ModuleColor
Initial value:
= {
"color",
NULL,
NULL,
NULL,
NULL,
NULL,
}
static bool color_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:39
static bool color_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition module.c:50
@ MODULE_ID_COLOR
ModuleColor, Color
Definition module_api.h:53

Module for the Color library.

Definition at line 62 of file module.c.

62 {
64 "color",
66 NULL, // config_define_types
67 NULL, // config_define_variables
68 NULL, // commands_register
69 NULL, // gui_init
70 NULL, // gui_cleanup
72};