Add connection_set_disconnected()

This commit is contained in:
James Booth
2016-05-11 00:02:39 +01:00
parent 7e079f3684
commit b935b4621c
3 changed files with 22 additions and 30 deletions

View File

@@ -205,6 +205,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)
{
@@ -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)
{
@@ -384,12 +386,6 @@ connection_get_presence_msg(void)
return conn.presence_message;
}
void
connection_free_presence_msg(void)
{
FREE_SET_NULL(conn.presence_message);
}
void
connection_set_presence_msg(const char *const message)
{
@@ -399,12 +395,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)
{