35 #ifndef INCL_UTIL_JID_H 36 #define INCL_UTIL_JID_H 1 39 #define MAXLEN_JID_COMP 1023 40 #define MAXLEN_JID 3071
JABBERD2_API jid_t jid_reset(jid_t jid, const char *id, int len)
clear and populate the jid with the given id.
JABBERD2_API jid_t jid_new(const char *id, int len)
make a new jid, and call jid_reset() to populate it
JABBERD2_API void jid_static(jid_t jid, jid_static_buf *buf)
Make jid to use static buffer (jid data won't be allocated dynamically, but given buffer will be alwa...
JABBERD2_API const char * jid_user(jid_t jid)
return the user or full jid.
JABBERD2_API jid_t jid_zap(jid_t list, jid_t jid)
remove a jid from a list, and return the new list
JABBERD2_API int jid_prep(jid_t jid)
do string preparation on a jid
JABBERD2_API int jid_search(jid_t list, jid_t jid)
list helpers
char jid_static_buf[3 *1025]
JID static buffer.
JABBERD2_API void jid_expand(jid_t jid)
expands user and full if the dirty flag is set
JABBERD2_API const char * jid_full(jid_t jid)
expand and return the full
JABBERD2_API int jid_compare_user(jid_t a, jid_t b)
compare two user or full jids.
JABBERD2_API jid_t jid_append(jid_t list, jid_t jid)
insert of a copy of jid into list, avoiding dups
JABBERD2_API int jid_compare_full(jid_t a, jid_t b)
compare two full jids
JABBERD2_API jid_t jid_dup(jid_t jid)
duplicate a jid
JABBERD2_API void jid_random_part(jid_t jid, jid_part_t part)
fill jid's resource with a random string
JABBERD2_API void jid_free(jid_t jid)
free the jid
JABBERD2_API jid_t jid_reset_components(jid_t jid, const char *node, const char *domain, const char *resource)
build a jid from components