Added jid_create_room_jid

This commit is contained in:
James Booth
2013-01-13 00:19:56 +00:00
parent 6607b99872
commit 3a22719bd7
3 changed files with 29 additions and 0 deletions

View File

@@ -20,6 +20,7 @@
*
*/
#include <stdlib.h>
#include <string.h>
#include <glib.h>
@@ -98,6 +99,17 @@ jid_create(const gchar * const str)
}
}
Jid *
jid_create_room_jid(const char * const room, const char * const nick)
{
Jid *result;
char *jid = create_full_room_jid(room, nick);
result = jid_create(jid);
free(jid);
return result;
}
/*
* Given a full room JID of the form
* room@server/nick