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

Definition of the Editor 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 editor_init (struct NeoMutt *n)
 Initialise a Module - Implements Module::init()
 
static bool editor_cleanup (struct NeoMutt *n)
 Clean up a Module - Implements Module::cleanup()
 

Variables

const struct Module ModuleEditor
 Module for the Editor library.
 

Detailed Description

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

◆ editor_init()

static bool editor_init ( struct NeoMutt * n)
static

Initialise a Module - Implements Module::init()

Definition at line 39 of file module.c.

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

◆ editor_cleanup()

static bool editor_cleanup ( struct NeoMutt * n)
static

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

Definition at line 50 of file module.c.

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

Variable Documentation

◆ ModuleEditor

const struct Module ModuleEditor
Initial value:
= {
"editor",
NULL,
NULL,
NULL,
NULL,
NULL,
}
static bool editor_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:39
static bool editor_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition module.c:50
@ MODULE_ID_EDITOR
ModuleEditor, Edit a string
Definition module_api.h:63

Module for the Editor library.

Definition at line 62 of file module.c.

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