diff options
author | James Booth <boothj5@gmail.com> | 2014-01-02 01:57:05 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-01-02 01:57:05 +0000 |
commit | 170af88c0dc736087d40d3591c1880d8af17b5e6 (patch) | |
tree | 29c912e2fe3261e758691254dbddbe43c6d139c7 /src/xmpp/iq.c | |
parent | bc700fbfeac560946991063313f293a9861d4d1d (diff) | |
parent | 3fbd45bd0603d51255c9e6df2a56d5cd5de4dd2b (diff) | |
download | profani-tty-170af88c0dc736087d40d3591c1880d8af17b5e6.tar.gz |
Merge branch 'master' into otr
Conflicts: Makefile.am
Diffstat (limited to 'src/xmpp/iq.c')
-rw-r--r-- | src/xmpp/iq.c | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index fdabe771..369d7f7e 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -75,8 +75,8 @@ iq_add_handlers(void) HANDLE(STANZA_NS_PING, STANZA_TYPE_GET, _iq_handle_ping_get); } -void -iq_room_list_request(gchar *conferencejid) +static void +_iq_room_list_request(gchar *conferencejid) { xmpp_conn_t * const conn = connection_get_conn(); xmpp_ctx_t * const ctx = connection_get_ctx(); @@ -85,8 +85,8 @@ iq_room_list_request(gchar *conferencejid) xmpp_stanza_release(iq); } -void -iq_disco_info_request(gchar *jid) +static void +_iq_disco_info_request(gchar *jid) { xmpp_conn_t * const conn = connection_get_conn(); xmpp_ctx_t * const ctx = connection_get_ctx(); @@ -95,8 +95,8 @@ iq_disco_info_request(gchar *jid) xmpp_stanza_release(iq); } -void -iq_disco_items_request(gchar *jid) +static void +_iq_disco_items_request(gchar *jid) { xmpp_conn_t * const conn = connection_get_conn(); xmpp_ctx_t * const ctx = connection_get_ctx(); @@ -105,8 +105,8 @@ iq_disco_items_request(gchar *jid) xmpp_stanza_release(iq); } -void -iq_send_software_version(const char * const fulljid) +static void +_iq_send_software_version(const char * const fulljid) { xmpp_conn_t * const conn = connection_get_conn(); xmpp_ctx_t * const ctx = connection_get_ctx(); @@ -567,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; +} |