mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 16:12:30 +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
|
|
@ -34,6 +34,7 @@ perl_fe_sources = \
|
|||
|
||||
noinst_HEADERS = \
|
||||
module.h \
|
||||
module-fe.h \
|
||||
module-formats.h \
|
||||
perl-core.h \
|
||||
perl-common.h \
|
||||
|
|
|
|||
4
src/perl/module-fe.h
Normal file
4
src/perl/module-fe.h
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#include "module.h"
|
||||
|
||||
#undef MODULE_NAME
|
||||
#define MODULE_NAME "fe-common/perl"
|
||||
|
|
@ -18,4 +18,4 @@ extern PerlInterpreter *my_perl; /* must be called my_perl or some perl implemen
|
|||
|
||||
#include "common.h"
|
||||
|
||||
#define MODULE_NAME "irssi-perl"
|
||||
#define MODULE_NAME "perl/core"
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
#define NEED_PERL_H
|
||||
#include "module.h"
|
||||
#include "modules.h"
|
||||
#include "signals.h"
|
||||
#include "misc.h"
|
||||
|
||||
|
|
@ -363,6 +364,8 @@ void perl_core_init(void)
|
|||
|
||||
perl_scripts_init();
|
||||
perl_scripts_autorun();
|
||||
|
||||
module_register("perl", "core");
|
||||
}
|
||||
|
||||
void perl_core_deinit(void)
|
||||
|
|
|
|||
|
|
@ -18,7 +18,8 @@
|
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include "module.h"
|
||||
#include "module-fe.h"
|
||||
#include "modules.h"
|
||||
#include "module-formats.h"
|
||||
#include "signals.h"
|
||||
#include "commands.h"
|
||||
|
|
@ -230,6 +231,8 @@ void fe_perl_init(void)
|
|||
signal_add("script error", (SIGNAL_FUNC) sig_script_error);
|
||||
signal_add("complete command script load", (SIGNAL_FUNC) sig_complete_load);
|
||||
signal_add("complete command script unload", (SIGNAL_FUNC) sig_complete_unload);
|
||||
|
||||
module_register("perl", "fe");
|
||||
}
|
||||
|
||||
void fe_perl_deinit(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue