Publicly expose JID manipulation functions

This commit is contained in:
Tristan Le Guern
2015-09-27 20:53:55 +02:00
committed by Dmitry Podgorny
parent 07751974ac
commit a4558b69df
3 changed files with 20 additions and 13 deletions

View File

@@ -1,8 +1,16 @@
0.8.9
- IPv6 support
- Old style SSL support
- New API xmpp_uuid_gen()
- New API xmpp_conn_is_secured()
- New API:
- xmpp_uuid_gen()
- xmpp_conn_set_old_style_ssl()
- xmpp_conn_is_secured()
- Exposed private API:
- xmpp_jid_new()
- xmpp_jid_bare()
- xmpp_jid_node()
- xmpp_jid_domain()
- xmpp_jid_resource()
0.8.8
- XML namespace support

View File

@@ -82,17 +82,6 @@ void xmpp_debug(const xmpp_ctx_t * const ctx,
const char * const fmt,
...);
/** jid */
/* these return new strings that must be xmpp_free()'d */
char *xmpp_jid_new(xmpp_ctx_t *ctx, const char *node,
const char *domain,
const char *resource);
char *xmpp_jid_bare(xmpp_ctx_t *ctx, const char *jid);
char *xmpp_jid_node(xmpp_ctx_t *ctx, const char *jid);
char *xmpp_jid_domain(xmpp_ctx_t *ctx, const char *jid);
char *xmpp_jid_resource(xmpp_ctx_t *ctx, const char *jid);
/** connection **/
/* opaque connection object */

View File

@@ -365,6 +365,16 @@ void xmpp_iq_new();
void xmpp_presence_new();
*/
/** jid **/
/* these return new strings that must be xmpp_free()'d */
char *xmpp_jid_new(xmpp_ctx_t *ctx, const char *node,
const char *domain,
const char *resource);
char *xmpp_jid_bare(xmpp_ctx_t *ctx, const char *jid);
char *xmpp_jid_node(xmpp_ctx_t *ctx, const char *jid);
char *xmpp_jid_domain(xmpp_ctx_t *ctx, const char *jid);
char *xmpp_jid_resource(xmpp_ctx_t *ctx, const char *jid);
/** UUID **/
char *xmpp_uuid_gen(xmpp_ctx_t *ctx);