diff options
author | Christopher Davis <loafier@gmail.com> | 2006-06-23 03:51:52 +0000 |
---|---|---|
committer | Christopher Davis <loafier@gmail.com> | 2006-06-23 03:51:52 +0000 |
commit | 4d33c04f15e60e21a537edd635c9ac130312a3cb (patch) | |
tree | 9530c793afd67ef5c8319c452d33011c7f7fe197 /pycore.c | |
parent | c76f11d4ead827d8e87e265131a3dee534bc0792 (diff) | |
download | irssi-python-4d33c04f15e60e21a537edd635c9ac130312a3cb.tar.gz irssi-python-4d33c04f15e60e21a537edd635c9ac130312a3cb.tar.xz irssi-python-4d33c04f15e60e21a537edd635c9ac130312a3cb.zip |
Began work on signal handler/map system. It seems to be working;
however, events with varying <cmd> text aren't handled because
it does a straight lookup in the hashtable with the signal name
to locate the argument list. Will need to change the system to
accomodate the <cmd> events.
The basics for reference arg support is there but not well tested.
git-svn-id: http://svn.irssi.org/repos/irssi-python@4289 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'pycore.c')
-rw-r--r-- | pycore.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -6,9 +6,9 @@ #include "pycore.h" #include "pyloader.h" #include "pymodule.h" +#include "pysignals.h" #include "factory.h" - /*XXX: copy parse into utils */ static void cmd_exec(const char *data) { @@ -117,6 +117,7 @@ void irssi_python_init(void) { Py_InitializeEx(0); + pysignals_init(); if (!pyloader_init() || !pymodule_init() || !factory_init()) { printtext(NULL, NULL, MSGLEVEL_CLIENTERROR, "Failed to load Python"); @@ -148,5 +149,6 @@ void irssi_python_deinit(void) pymodule_deinit(); pyloader_deinit(); + pysignals_deinit(); Py_Finalize(); } |