summaryrefslogtreecommitdiffstats
path: root/pycore.c
diff options
context:
space:
mode:
authorChristopher Davis <loafier@gmail.com>2006-06-23 03:51:52 +0000
committerChristopher Davis <loafier@gmail.com>2006-06-23 03:51:52 +0000
commit4d33c04f15e60e21a537edd635c9ac130312a3cb (patch)
tree9530c793afd67ef5c8319c452d33011c7f7fe197 /pycore.c
parentc76f11d4ead827d8e87e265131a3dee534bc0792 (diff)
downloadirssi-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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pycore.c b/pycore.c
index 63cd2c6..6963076 100644
--- a/pycore.c
+++ b/pycore.c
@@ -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();
}