From 88f423afea539bb7c1faa970d989d3e858d874f6 Mon Sep 17 00:00:00 2001 From: James Booth Date: Fri, 6 May 2016 00:53:03 +0100 Subject: Rename jabber_ functions --- src/event/client_events.c | 10 +++++----- src/event/server_events.c | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/event') diff --git a/src/event/client_events.c b/src/event/client_events.c index 1c715f03..a156fd62 100644 --- a/src/event/client_events.c +++ b/src/event/client_events.c @@ -55,7 +55,7 @@ jabber_conn_status_t cl_ev_connect_jid(const char *const jid, const char *const passwd, const char *const altdomain, const int port, const char *const tls_policy) { cons_show("Connecting as %s", jid); - return jabber_connect_with_details(jid, passwd, altdomain, port, tls_policy); + return session_connect_with_details(jid, passwd, altdomain, port, tls_policy); } jabber_conn_status_t @@ -65,18 +65,18 @@ cl_ev_connect_account(ProfAccount *account) cons_show("Connecting with account %s as %s", account->name, jid); free(jid); - return jabber_connect_with_account(account); + return session_connect_with_account(account); } void cl_ev_disconnect(void) { - const char *jid = jabber_get_fulljid(); + const char *jid = session_get_fulljid(); cons_show("%s logged out successfully.", jid); ui_disconnected(); ui_close_all_wins(); - jabber_disconnect(); + session_disconnect(); roster_destroy(); muc_invites_clear(); chat_sessions_clear(); @@ -92,7 +92,7 @@ cl_ev_presence_send(const resource_presence_t presence_type, const char *const m char *signed_status = NULL; #ifdef HAVE_LIBGPGME - char *account_name = jabber_get_account_name(); + char *account_name = session_get_account_name(); ProfAccount *account = accounts_get_account(account_name); if (account->pgp_keyid) { signed_status = p_gpg_sign(msg, account->pgp_keyid); diff --git a/src/event/server_events.c b/src/event/server_events.c index d3d57da2..5093f54a 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -105,7 +105,7 @@ sv_ev_roster_received(void) ui_show_roster(); } - char *account_name = jabber_get_account_name(); + char *account_name = session_get_account_name(); #ifdef HAVE_LIBGPGME // check pgp key valid if specified @@ -148,7 +148,7 @@ sv_ev_roster_received(void) cl_ev_presence_send(conn_presence, NULL, 0); } - const char *fulljid = jabber_get_fulljid(); + const char *fulljid = session_get_fulljid(); plugins_on_connect(account_name, fulljid); } @@ -238,7 +238,7 @@ void sv_ev_room_message(const char *const room_jid, const char *const nick, const char *const message) { if (prefs_get_boolean(PREF_GRLOG)) { - Jid *jid = jid_create(jabber_get_fulljid()); + Jid *jid = jid_create(session_get_fulljid()); groupchat_log_chat(jid->barejid, room_jid, nick, message); jid_destroy(jid); } -- cgit 1.4.1-2-gfad0