diff options
Diffstat (limited to 'src/xmpp/stanza.c')
-rw-r--r-- | src/xmpp/stanza.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/xmpp/stanza.c b/src/xmpp/stanza.c index 3f0b5015..5364e579 100644 --- a/src/xmpp/stanza.c +++ b/src/xmpp/stanza.c @@ -100,7 +100,7 @@ stanza_create_bookmarks_pubsub_add(xmpp_ctx_t *ctx, const char * const jid, { xmpp_stanza_t *stanza = xmpp_stanza_new(ctx); xmpp_stanza_set_name(stanza, STANZA_NAME_IQ); - char *id = generate_unique_id("bookmark_add"); + char *id = create_unique_id("bookmark_add"); xmpp_stanza_set_id(stanza, id); xmpp_stanza_set_type(stanza, STANZA_TYPE_SET); @@ -196,7 +196,7 @@ stanza_create_chat_state(xmpp_ctx_t *ctx, const char * const recipient, xmpp_stanza_set_name(msg, STANZA_NAME_MESSAGE); xmpp_stanza_set_type(msg, STANZA_TYPE_CHAT); xmpp_stanza_set_attribute(msg, STANZA_ATTR_TO, recipient); - char *id = generate_unique_id(NULL); + char *id = create_unique_id(NULL); xmpp_stanza_set_id(msg, id); free(id); @@ -220,7 +220,7 @@ stanza_create_message(xmpp_ctx_t *ctx, const char * const recipient, xmpp_stanza_set_name(msg, STANZA_NAME_MESSAGE); xmpp_stanza_set_type(msg, type); xmpp_stanza_set_attribute(msg, STANZA_ATTR_TO, recipient); - char *id = generate_unique_id(NULL); + char *id = create_unique_id(NULL); xmpp_stanza_set_id(msg, id); free(id); @@ -324,7 +324,7 @@ stanza_create_invite(xmpp_ctx_t *ctx, const char * const room, message = xmpp_stanza_new(ctx); xmpp_stanza_set_name(message, STANZA_NAME_MESSAGE); xmpp_stanza_set_attribute(message, STANZA_ATTR_TO, contact); - char *id = generate_unique_id(NULL); + char *id = create_unique_id(NULL); xmpp_stanza_set_id(message, id); free(id); @@ -350,7 +350,7 @@ stanza_create_room_join_presence(xmpp_ctx_t * const ctx, xmpp_stanza_t *presence = xmpp_stanza_new(ctx); xmpp_stanza_set_name(presence, STANZA_NAME_PRESENCE); xmpp_stanza_set_attribute(presence, STANZA_ATTR_TO, full_room_jid); - char *id = generate_unique_id("join"); + char *id = create_unique_id("join"); xmpp_stanza_set_id(presence, id); free(id); @@ -381,7 +381,7 @@ stanza_create_room_newnick_presence(xmpp_ctx_t *ctx, const char * const full_room_jid) { 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); free(id); xmpp_stanza_set_name(presence, STANZA_NAME_PRESENCE); @@ -402,7 +402,7 @@ stanza_create_room_leave_presence(xmpp_ctx_t *ctx, const char * const room, xmpp_stanza_set_name(presence, STANZA_NAME_PRESENCE); xmpp_stanza_set_type(presence, STANZA_TYPE_UNAVAILABLE); xmpp_stanza_set_attribute(presence, STANZA_ATTR_TO, full_jid->str); - char *id = generate_unique_id("leave"); + char *id = create_unique_id("leave"); xmpp_stanza_set_id(presence, id); free(id); @@ -516,7 +516,7 @@ stanza_create_ping_iq(xmpp_ctx_t *ctx) xmpp_stanza_t *iq = xmpp_stanza_new(ctx); xmpp_stanza_set_name(iq, STANZA_NAME_IQ); xmpp_stanza_set_type(iq, STANZA_TYPE_GET); - char *id = generate_unique_id("ping"); + char *id = create_unique_id("ping"); xmpp_stanza_set_id(iq, id); free(id); |