1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

Tidy up jabber.c

This commit is contained in:
James Booth 2012-02-10 23:58:57 +00:00
parent 9db56f4fc1
commit ae84c92d23

View File

@ -13,12 +13,12 @@ static xmpp_ctx_t *_ctx;
static xmpp_conn_t *_conn; static xmpp_conn_t *_conn;
// private XMPP handlers // private XMPP handlers
static void _jabber_conn_handler(xmpp_conn_t * const conn, const xmpp_conn_event_t status, static void _jabber_conn_handler(xmpp_conn_t * const conn,
const int error, xmpp_stream_error_t * const stream_error, const xmpp_conn_event_t status, const int error,
void * const userdata); xmpp_stream_error_t * const stream_error, void * const userdata);
static int _jabber_message_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza, static int _jabber_message_handler(xmpp_conn_t * const conn,
void * const userdata); xmpp_stanza_t * const stanza, void * const userdata);
static int _roster_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza, static int _roster_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
void * const userdata); void * const userdata);
@ -88,8 +88,8 @@ void jabber_roster_request(void)
xmpp_stanza_release(iq); xmpp_stanza_release(iq);
} }
static int _jabber_message_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza, static int _jabber_message_handler(xmpp_conn_t * const conn,
void * const userdata) xmpp_stanza_t * const stanza, void * const userdata)
{ {
char *message; char *message;
@ -106,9 +106,9 @@ static int _jabber_message_handler(xmpp_conn_t * const conn, xmpp_stanza_t * con
return 1; return 1;
} }
static void _jabber_conn_handler(xmpp_conn_t * const conn, const xmpp_conn_event_t status, static void _jabber_conn_handler(xmpp_conn_t * const conn,
const int error, xmpp_stream_error_t * const stream_error, const xmpp_conn_event_t status, const int error,
void * const userdata) xmpp_stream_error_t * const stream_error, void * const userdata)
{ {
xmpp_ctx_t *ctx = (xmpp_ctx_t *)userdata; xmpp_ctx_t *ctx = (xmpp_ctx_t *)userdata;