mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Moved functions in jabber.c
This commit is contained in:
parent
52bcdc1cee
commit
108194c944
15
src/jabber.c
15
src/jabber.c
@ -44,8 +44,12 @@ static struct _jabber_conn_t {
|
|||||||
int tls_disabled;
|
int tls_disabled;
|
||||||
} jabber_conn;
|
} jabber_conn;
|
||||||
|
|
||||||
void xmpp_file_logger(void * const userdata, const xmpp_log_level_t level,
|
void
|
||||||
const char * const area, const char * const msg);
|
xmpp_file_logger(void * const userdata, const xmpp_log_level_t level,
|
||||||
|
const char * const area, const char * const msg)
|
||||||
|
{
|
||||||
|
log_msg(area, msg);
|
||||||
|
}
|
||||||
|
|
||||||
static const xmpp_log_t file_log = { &xmpp_file_logger, XMPP_LEVEL_DEBUG };
|
static const xmpp_log_t file_log = { &xmpp_file_logger, XMPP_LEVEL_DEBUG };
|
||||||
|
|
||||||
@ -55,13 +59,6 @@ xmpp_get_file_logger()
|
|||||||
return (xmpp_log_t*) &file_log;
|
return (xmpp_log_t*) &file_log;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
xmpp_file_logger(void * const userdata, const xmpp_log_level_t level,
|
|
||||||
const char * const area, const char * const msg)
|
|
||||||
{
|
|
||||||
log_msg(area, msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
// private XMPP handlers
|
// private XMPP handlers
|
||||||
static void _jabber_conn_handler(xmpp_conn_t * const conn,
|
static void _jabber_conn_handler(xmpp_conn_t * const conn,
|
||||||
const xmpp_conn_event_t status, const int error,
|
const xmpp_conn_event_t status, const int error,
|
||||||
|
Loading…
Reference in New Issue
Block a user