mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Changed adding iq handlers to take no args
This commit is contained in:
parent
bfe1d76e5f
commit
a30474f9fc
@ -169,7 +169,7 @@ void jabber_conn_set_status(const char * const message);
|
|||||||
char* jabber_get_account_name(void);
|
char* jabber_get_account_name(void);
|
||||||
|
|
||||||
// iq functions
|
// iq functions
|
||||||
void iq_add_handlers(xmpp_conn_t * const conn, xmpp_ctx_t * const ctx);
|
void iq_add_handlers(void);
|
||||||
|
|
||||||
// presence functions
|
// presence functions
|
||||||
void presence_init(void);
|
void presence_init(void);
|
||||||
|
@ -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, _message_handler, NULL, STANZA_NAME_MESSAGE, NULL, ctx);
|
||||||
xmpp_handler_add(conn, presence_handler, NULL, STANZA_NAME_PRESENCE, 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) {
|
if (prefs_get_autoping() != 0) {
|
||||||
int millis = prefs_get_autoping() * 1000;
|
int millis = prefs_get_autoping() * 1000;
|
||||||
|
@ -49,8 +49,10 @@ static int _iq_handle_discoinfo_result(xmpp_conn_t * const conn,
|
|||||||
xmpp_stanza_t * const stanza, void * const userdata);
|
xmpp_stanza_t * const stanza, void * const userdata);
|
||||||
|
|
||||||
void
|
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(NULL, STANZA_TYPE_ERROR, _iq_handle_error);
|
||||||
HANDLE(XMPP_NS_ROSTER, STANZA_TYPE_SET, _iq_handle_roster_set);
|
HANDLE(XMPP_NS_ROSTER, STANZA_TYPE_SET, _iq_handle_roster_set);
|
||||||
HANDLE(XMPP_NS_ROSTER, STANZA_TYPE_RESULT, _iq_handle_roster_result);
|
HANDLE(XMPP_NS_ROSTER, STANZA_TYPE_RESULT, _iq_handle_roster_result);
|
||||||
|
Loading…
Reference in New Issue
Block a user