mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
Module loading updates - /LOAD shows now also the statically loaded modules.
You can't /LOAD the same module twice. Syntax changed to /LOAD <module> [<submodule>], /UNLOAD <module> [<submodule>]. NOTE: all modules now need to call register_module() in their init() function. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1748 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
f584c1013c
commit
803d805016
23 changed files with 642 additions and 228 deletions
16
src/core/modules-load.h
Normal file
16
src/core/modules-load.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef __MODULES_LOAD_H
|
||||
#define __MODULES_LOAD_H
|
||||
|
||||
#include "modules.h"
|
||||
|
||||
/* Load module - automatically tries to load also the related non-core
|
||||
modules given in `prefixes' (like irc, fe, fe_text, ..) */
|
||||
int module_load(const char *path, char **prefixes);
|
||||
|
||||
/* Load a sub module. */
|
||||
int module_load_sub(const char *path, const char *submodule, char **prefixes);
|
||||
|
||||
void module_unload(MODULE_REC *module);
|
||||
void module_file_unload(MODULE_FILE_REC *file);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue