1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00

Changed adding iq handlers to take no args

This commit is contained in:
James Booth 2013-01-28 23:54:49 +00:00
parent bfe1d76e5f
commit a30474f9fc
3 changed files with 5 additions and 3 deletions

View File

@ -169,7 +169,7 @@ void jabber_conn_set_status(const char * const message);
char* jabber_get_account_name(void);
// iq functions
void iq_add_handlers(xmpp_conn_t * const conn, xmpp_ctx_t * const ctx);
void iq_add_handlers(void);
// presence functions
void presence_init(void);

View File

@ -665,7 +665,7 @@ _connection_handler(xmpp_conn_t * const conn,
xmpp_handler_add(conn, _message_handler, NULL, STANZA_NAME_MESSAGE, NULL, ctx);
xmpp_handler_add(conn, presence_handler, NULL, STANZA_NAME_PRESENCE, NULL, ctx);
iq_add_handlers(conn, ctx);
iq_add_handlers();
if (prefs_get_autoping() != 0) {
int millis = prefs_get_autoping() * 1000;

View File

@ -49,8 +49,10 @@ static int _iq_handle_discoinfo_result(xmpp_conn_t * const conn,
xmpp_stanza_t * const stanza, void * const userdata);
void
iq_add_handlers(xmpp_conn_t * const conn, xmpp_ctx_t * const ctx)
iq_add_handlers(void)
{
xmpp_conn_t * const conn = jabber_get_conn();
xmpp_ctx_t * const ctx = jabber_get_ctx();
HANDLE(NULL, STANZA_TYPE_ERROR, _iq_handle_error);
HANDLE(XMPP_NS_ROSTER, STANZA_TYPE_SET, _iq_handle_roster_set);
HANDLE(XMPP_NS_ROSTER, STANZA_TYPE_RESULT, _iq_handle_roster_result);