mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 04:36:21 +00:00
Move uuid functions
This commit is contained in:
@@ -176,6 +176,20 @@ connection_get_fulljid(void)
|
||||
return xmpp_conn_get_jid(conn.conn);
|
||||
}
|
||||
|
||||
char*
|
||||
connection_create_uuid(void)
|
||||
{
|
||||
return xmpp_uuid_gen(conn.ctx);
|
||||
}
|
||||
|
||||
void
|
||||
connection_free_uuid(char *uuid)
|
||||
{
|
||||
if (uuid) {
|
||||
xmpp_free(conn.ctx, uuid);
|
||||
}
|
||||
}
|
||||
|
||||
char *
|
||||
connection_get_domain(void)
|
||||
{
|
||||
|
||||
@@ -317,20 +317,6 @@ session_get_account_name(void)
|
||||
return saved_account.name;
|
||||
}
|
||||
|
||||
char*
|
||||
session_create_uuid(void)
|
||||
{
|
||||
return xmpp_uuid_gen(connection_get_ctx());
|
||||
}
|
||||
|
||||
void
|
||||
session_free_uuid(char *uuid)
|
||||
{
|
||||
if (uuid) {
|
||||
xmpp_free(connection_get_ctx(), uuid);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
session_add_available_resource(Resource *resource)
|
||||
{
|
||||
|
||||
@@ -119,8 +119,6 @@ void session_shutdown(void);
|
||||
void session_process_events(int millis);
|
||||
char* session_get_account_name(void);
|
||||
GList* session_get_available_resources(void);
|
||||
char* session_create_uuid(void);
|
||||
void session_free_uuid(char *uuid);
|
||||
gboolean session_send_stanza(const char *const stanza);
|
||||
|
||||
#ifdef HAVE_LIBMESODE
|
||||
@@ -133,6 +131,8 @@ gboolean session_service_supports(const char *const feature);
|
||||
jabber_conn_status_t connection_get_status(void);
|
||||
char *connection_get_presence_msg(void);
|
||||
const char* connection_get_fulljid(void);
|
||||
char* connection_create_uuid(void);
|
||||
void connection_free_uuid(char *uuid);
|
||||
|
||||
char* message_send_chat(const char *const barejid, const char *const msg, const char *const oob_url);
|
||||
char* message_send_chat_otr(const char *const barejid, const char *const msg);
|
||||
|
||||
Reference in New Issue
Block a user