Renamed generate_unique_id -> create_unique_id

This commit is contained in:
James Booth
2014-06-15 21:49:34 +01:00
parent efc833a202
commit 1c62d7fda8
6 changed files with 16 additions and 16 deletions

View File

@@ -116,7 +116,7 @@ _presence_subscription(const char * const jid, const jabber_subscr_t action)
}
xmpp_stanza_t *presence = xmpp_stanza_new(ctx);
char *id = generate_unique_id("sub");
char *id = create_unique_id("sub");
xmpp_stanza_set_id(presence, id);
xmpp_stanza_set_name(presence, STANZA_NAME_PRESENCE);
xmpp_stanza_set_type(presence, type);
@@ -208,7 +208,7 @@ _presence_update(const resource_presence_t presence_type, const char * const msg
connection_set_priority(pri);
xmpp_stanza_t *presence = stanza_create_presence(ctx);
char *id = generate_unique_id("presence");
char *id = create_unique_id("presence");
xmpp_stanza_set_id(presence, id);
stanza_attach_show(ctx, presence, show);
stanza_attach_status(ctx, presence, msg);
@@ -625,7 +625,7 @@ _get_caps_key(xmpp_stanza_t * const stanza)
if ((hash_type != NULL) && (strcmp(hash_type, "sha-1") == 0)) {
log_debug("Hash type %s supported.", hash_type);
caps_key = strdup(node);
id = generate_unique_id("caps");
id = create_unique_id("caps");
_send_caps_request(node, caps_key, id, from);
free(id);