diff options
Diffstat (limited to 'src/xmpp/connection.c')
-rw-r--r-- | src/xmpp/connection.c | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c index 283d0efb..ffabc149 100644 --- a/src/xmpp/connection.c +++ b/src/xmpp/connection.c @@ -206,6 +206,14 @@ connection_disconnect(void) } void +connection_set_disconnected(void) +{ + FREE_SET_NULL(conn.presence_message); + FREE_SET_NULL(conn.domain); + conn.conn_status = JABBER_DISCONNECTED; +} + +void connection_clear_data(void) { g_hash_table_destroy(conn.features_by_jid); @@ -310,12 +318,6 @@ connection_get_status(void) return conn.conn_status; } -void -connection_set_status(jabber_conn_status_t status) -{ - conn.conn_status = status; -} - xmpp_conn_t* connection_get_conn(void) { @@ -385,12 +387,6 @@ connection_get_presence_msg(void) } void -connection_free_presence_msg(void) -{ - FREE_SET_NULL(conn.presence_message); -} - -void connection_set_presence_msg(const char *const message) { FREE_SET_NULL(conn.presence_message); @@ -400,12 +396,6 @@ connection_set_presence_msg(const char *const message) } void -connection_free_domain(void) -{ - FREE_SET_NULL(conn.domain); -} - -void connection_set_priority(const int priority) { conn.priority = priority; |