about summary refs log tree commit diff stats
path: root/src/xmpp/iq.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-12-22 23:19:20 +0000
committerJames Booth <boothj5@gmail.com>2013-12-22 23:19:20 +0000
commit90e7ce1c56a2ec90896c845337a9a2bccc216d56 (patch)
tree59785184b95b041f49fcbb8eba00c6f25a7da007 /src/xmpp/iq.c
parente818a6772b830255f1bd21845197413b00646f99 (diff)
downloadprofani-tty-90e7ce1c56a2ec90896c845337a9a2bccc216d56.tar.gz
Bind iq functions in main.c
Diffstat (limited to 'src/xmpp/iq.c')
-rw-r--r--src/xmpp/iq.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c
index b330b591..369d7f7e 100644
--- a/src/xmpp/iq.c
+++ b/src/xmpp/iq.c
@@ -84,7 +84,6 @@ _iq_room_list_request(gchar *conferencejid)
     xmpp_send(conn, iq);
     xmpp_stanza_release(iq);
 }
-void (*iq_room_list_request)(gchar *) = _iq_room_list_request;
 
 static void
 _iq_disco_info_request(gchar *jid)
@@ -95,7 +94,6 @@ _iq_disco_info_request(gchar *jid)
     xmpp_send(conn, iq);
     xmpp_stanza_release(iq);
 }
-void (*iq_disco_info_request)(gchar *) = _iq_disco_info_request;
 
 static void
 _iq_disco_items_request(gchar *jid)
@@ -106,7 +104,6 @@ _iq_disco_items_request(gchar *jid)
     xmpp_send(conn, iq);
     xmpp_stanza_release(iq);
 }
-void (*iq_disco_items_request)(gchar *) = _iq_disco_items_request;
 
 static void
 _iq_send_software_version(const char * const fulljid)
@@ -117,7 +114,6 @@ _iq_send_software_version(const char * const fulljid)
     xmpp_send(conn, iq);
     xmpp_stanza_release(iq);
 }
-void (*iq_send_software_version)(const char * const) = _iq_send_software_version;
 
 static int
 _iq_handle_error(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
@@ -571,3 +567,12 @@ _iq_handle_discoitems_result(xmpp_conn_t * const conn, xmpp_stanza_t * const sta
 
     return 1;
 }
+
+void
+iq_init_module(void)
+{
+    iq_room_list_request = _iq_room_list_request;
+    iq_disco_info_request = _iq_disco_info_request;
+    iq_disco_items_request = _iq_disco_items_request;
+    iq_send_software_version = _iq_send_software_version;
+}