about summary refs log tree commit diff stats
path: root/src/xmpp/connection.h
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@openmailbox.org>2018-08-30 11:01:28 +0200
committerMichael Vetter <jubalh@openmailbox.org>2018-08-30 11:17:04 +0200
commit6d807003296828d0dfdc685d5ff797f5301bbe6f (patch)
tree0cfcb5f14ddeacc7fa0848ecd11cfdcade83e8fa /src/xmpp/connection.h
parentf4fb61b0c83b0eea20f7b60fa83bc116fd103a84 (diff)
downloadprofani-tty-6d807003296828d0dfdc685d5ff797f5301bbe6f.tar.gz
Move ID generation to xmpp folder
create_unique_id() was changed to use UUIDs instead of a counter in the
last commit. Since now it depends on connection_create_uuid() which is
in the xmpp subfolder the function should also be moved there.

Renamed it to connection_create_stanza_id() and moved it to
src/xmpp/connection.c.

Discussion happened in https://github.com/boothj5/profanity/pull/1010
Diffstat (limited to 'src/xmpp/connection.h')
-rw-r--r--src/xmpp/connection.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xmpp/connection.h b/src/xmpp/connection.h
index b0ff7cec..146cd044 100644
--- a/src/xmpp/connection.h
+++ b/src/xmpp/connection.h
@@ -60,4 +60,6 @@ void connection_clear_data(void);
 void connection_add_available_resource(Resource *resource);
 void connection_remove_available_resource(const char *const resource);
 
+char* connection_create_stanza_id(char *prefix);
+
 #endif