From 7ddcc3b268c8c55b2d6fe80e87e090181fbc1bf7 Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Wed, 21 Jun 2006 00:22:03 +0000 Subject: Added a lot of object wrappers. Most are untested. Will finish up the rest of the object wrappers perhaps tonight or tomorrow. Signal handling will need to be addressed ASAP. There are quite a lot of other global module functions remaining to be wraped, as well. git-svn-id: http://svn.irssi.org/repos/irssi-python@4286 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- objects/factory.c | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) (limited to 'objects/factory.c') diff --git a/objects/factory.c b/objects/factory.c index bf78688..3e08074 100644 --- a/objects/factory.c +++ b/objects/factory.c @@ -91,7 +91,31 @@ static int init_objects(void) if (!dcc_object_init()) return 0; + + if (!dcc_chat_object_init()) + return 0; + + if (!dcc_get_object_init()) + return 0; + + if (!dcc_send_object_init()) + return 0; + if (!netsplit_object_init()) + return 0; + + if (!netsplit_server_object_init()) + return 0; + + if (!netsplit_channel_object_init()) + return 0; + + if (!notifylist_object_init()) + return 0; + + if (!process_object_init()) + return 0; + return 1; } @@ -164,15 +188,14 @@ static void register_nonchat(void) int type; int chat_type = 0xffff; - //FIXME: specify init funcs type = module_get_uniq_id_str("DCC", "CHAT"); - insert_map(type, chat_type, (InitFunc)pydcc_new); + insert_map(type, chat_type, (InitFunc)pydcc_chat_new); type = module_get_uniq_id_str("DCC", "GET"); - insert_map(type, chat_type, (InitFunc)pydcc_new); + insert_map(type, chat_type, (InitFunc)pydcc_get_new); type = module_get_uniq_id_str("DCC", "SEND"); - insert_map(type, chat_type, (InitFunc)pydcc_new); + insert_map(type, chat_type, (InitFunc)pydcc_send_new); type = module_get_uniq_id_str("DCC", "SERVER"); insert_map(type, chat_type, (InitFunc)pydcc_new); -- cgit