Handle logins using accounts

This commit is contained in:
James Booth
2012-12-09 22:14:38 +00:00
parent 324a85a2a5
commit ce6f227651
7 changed files with 144 additions and 5 deletions

View File

@@ -23,6 +23,8 @@
#ifndef JABBER_H
#define JABBER_H
#include "accounts.h"
typedef enum {
JABBER_STARTED,
JABBER_CONNECTING,
@@ -49,6 +51,8 @@ typedef enum {
void jabber_init(const int disable_tls);
jabber_conn_status_t jabber_connect(const char * const user,
const char * const passwd, const char * const altdomain);
jabber_conn_status_t jabber_connect_with_account(ProfAccount *account,
const char * const passwd);
void jabber_disconnect(void);
void jabber_process_events(void);
void jabber_join(const char * const room, const char * const nick);