mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Renamed xmpp roster handlers
This commit is contained in:
parent
d8a92f933b
commit
6a15a09ed7
@ -47,9 +47,9 @@ typedef struct _group_data {
|
|||||||
} GroupData;
|
} GroupData;
|
||||||
|
|
||||||
// event handlers
|
// event handlers
|
||||||
static int _roster_handle_push(xmpp_conn_t * const conn,
|
static int _roster_set_handler(xmpp_conn_t * const conn,
|
||||||
xmpp_stanza_t * const stanza, void * const userdata);
|
xmpp_stanza_t * const stanza, void * const userdata);
|
||||||
static int _roster_handle_result(xmpp_conn_t * const conn,
|
static int _roster_result_handler(xmpp_conn_t * const conn,
|
||||||
xmpp_stanza_t * const stanza, void * const userdata);
|
xmpp_stanza_t * const stanza, void * const userdata);
|
||||||
|
|
||||||
// id handlers
|
// id handlers
|
||||||
@ -68,8 +68,8 @@ roster_add_handlers(void)
|
|||||||
{
|
{
|
||||||
xmpp_conn_t * const conn = connection_get_conn();
|
xmpp_conn_t * const conn = connection_get_conn();
|
||||||
xmpp_ctx_t * const ctx = connection_get_ctx();
|
xmpp_ctx_t * const ctx = connection_get_ctx();
|
||||||
HANDLE(STANZA_TYPE_SET, _roster_handle_push);
|
HANDLE(STANZA_TYPE_SET, _roster_set_handler);
|
||||||
HANDLE(STANZA_TYPE_RESULT, _roster_handle_result);
|
HANDLE(STANZA_TYPE_RESULT, _roster_result_handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -206,7 +206,7 @@ _group_remove_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_roster_handle_push(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
|
_roster_set_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
|
||||||
void * const userdata)
|
void * const userdata)
|
||||||
{
|
{
|
||||||
xmpp_stanza_t *query =
|
xmpp_stanza_t *query =
|
||||||
@ -270,7 +270,7 @@ _roster_handle_push(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_roster_handle_result(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
|
_roster_result_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
|
||||||
void * const userdata)
|
void * const userdata)
|
||||||
{
|
{
|
||||||
const char *id = xmpp_stanza_get_attribute(stanza, STANZA_ATTR_ID);
|
const char *id = xmpp_stanza_get_attribute(stanza, STANZA_ATTR_ID);
|
||||||
|
Loading…
Reference in New Issue
Block a user