From aabe3afff88a71c295386a22315c183aba894ac9 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 2 May 2016 22:34:26 +0100 Subject: [PATCH] Rename stanza handler init functions --- src/xmpp/connection.c | 6 +++--- src/xmpp/iq.c | 2 +- src/xmpp/iq.h | 2 +- src/xmpp/message.c | 2 +- src/xmpp/message.h | 2 +- src/xmpp/presence.c | 2 +- src/xmpp/presence.h | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c index f730c99c..45c0b318 100644 --- a/src/xmpp/connection.c +++ b/src/xmpp/connection.c @@ -688,9 +688,9 @@ _connection_handler(xmpp_conn_t *const conn, const xmpp_conn_event_t status, con chat_sessions_init(); - message_add_handlers(); - presence_add_handlers(); - iq_add_handlers(); + message_handlers_init(); + presence_handlers_init(); + iq_handlers_init(); roster_request(); bookmark_request(); diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index f01f1c15..fa3d90c4 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -193,7 +193,7 @@ _iq_handler(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza, void *const us } void -iq_add_handlers(void) +iq_handlers_init(void) { xmpp_conn_t * const conn = connection_get_conn(); xmpp_ctx_t * const ctx = connection_get_ctx(); diff --git a/src/xmpp/iq.h b/src/xmpp/iq.h index 36583a28..5f72eac8 100644 --- a/src/xmpp/iq.h +++ b/src/xmpp/iq.h @@ -35,7 +35,7 @@ #ifndef XMPP_IQ_H #define XMPP_IQ_H -void iq_add_handlers(void); +void iq_handlers_init(void); void iq_roster_request(void); #endif diff --git a/src/xmpp/message.c b/src/xmpp/message.c index 93e78893..6d999d61 100644 --- a/src/xmpp/message.c +++ b/src/xmpp/message.c @@ -122,7 +122,7 @@ _message_handler(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza, void *con } void -message_add_handlers(void) +message_handlers_init(void) { xmpp_conn_t * const conn = connection_get_conn(); xmpp_ctx_t * const ctx = connection_get_ctx(); diff --git a/src/xmpp/message.h b/src/xmpp/message.h index 01938572..b886144f 100644 --- a/src/xmpp/message.h +++ b/src/xmpp/message.h @@ -35,6 +35,6 @@ #ifndef XMPP_MESSAGE_H #define XMPP_MESSAGE_H -void message_add_handlers(void); +void message_handlers_init(void); #endif diff --git a/src/xmpp/presence.c b/src/xmpp/presence.c index 0a9b3ce0..d817965a 100644 --- a/src/xmpp/presence.c +++ b/src/xmpp/presence.c @@ -131,7 +131,7 @@ _presence_handler(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza, void *co } void -presence_add_handlers(void) +presence_handlers_init(void) { xmpp_conn_t * const conn = connection_get_conn(); xmpp_ctx_t * const ctx = connection_get_ctx(); diff --git a/src/xmpp/presence.h b/src/xmpp/presence.h index e77a6550..501bf058 100644 --- a/src/xmpp/presence.h +++ b/src/xmpp/presence.h @@ -35,8 +35,8 @@ #ifndef XMPP_PRESENCE_H #define XMPP_PRESENCE_H +void presence_handlers_init(void); void presence_sub_requests_init(void); -void presence_add_handlers(void); void presence_clear_sub_requests(void); #endif