mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-30 03:26:22 +00:00
Add connection_set_disconnected()
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user