1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Moved caps_init() out of xmpp.h

This commit is contained in:
James Booth 2013-02-03 22:46:32 +00:00
parent 0b40de5a4f
commit 2ee0c4d328
4 changed files with 3 additions and 2 deletions

View File

@ -506,7 +506,6 @@ _init(const int disable_tls, char *log_level)
theme_init(theme); theme_init(theme);
g_free(theme); g_free(theme);
ui_init(); ui_init();
caps_init();
jabber_init(disable_tls); jabber_init(disable_tls);
cmd_init(); cmd_init();
log_info("Initialising contact list"); log_info("Initialising contact list");

View File

@ -27,6 +27,7 @@
#include "xmpp/xmpp.h" #include "xmpp/xmpp.h"
void caps_init(void);
void caps_add(const char * const caps_str, const char * const client); void caps_add(const char * const caps_str, const char * const client);
gboolean caps_contains(const char * const caps_str); gboolean caps_contains(const char * const caps_str);
char* caps_create_sha1_str(xmpp_stanza_t * const query); char* caps_create_sha1_str(xmpp_stanza_t * const query);

View File

@ -34,6 +34,7 @@
#include "log.h" #include "log.h"
#include "muc.h" #include "muc.h"
#include "profanity.h" #include "profanity.h"
#include "xmpp/capabilities.h"
#include "xmpp/connection.h" #include "xmpp/connection.h"
#include "xmpp/iq.h" #include "xmpp/iq.h"
#include "xmpp/message.h" #include "xmpp/message.h"
@ -92,6 +93,7 @@ jabber_init(const int disable_tls)
jabber_conn.presence_message = NULL; jabber_conn.presence_message = NULL;
jabber_conn.tls_disabled = disable_tls; jabber_conn.tls_disabled = disable_tls;
presence_init(); presence_init();
caps_init();
} }
void void

View File

@ -84,7 +84,6 @@ void presence_update(jabber_presence_t status, const char * const msg,
int idle); int idle);
// caps functions // caps functions
void caps_init(void);
Capabilities* caps_get(const char * const caps_str); Capabilities* caps_get(const char * const caps_str);
void caps_close(void); void caps_close(void);