35 #ifndef INCL_UTIL_JID_H
36 #define INCL_UTIL_JID_H 1
39 #define MAXLEN_JID_COMP 1023
40 #define MAXLEN_JID 3071
jid_t jid_reset(jid_t jid, const char *id, int len)
build a jid from an id
const char * jid_user(jid_t jid)
expand and return the user
const char * jid_full(jid_t jid)
expand and return the full
jid_t jid_new(const char *id, int len)
make a new jid
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...
jid_t jid_zap(jid_t list, jid_t jid)
remove a jid_t from a list, returning the new list
void jid_random_part(jid_t jid, jid_part_t part)
create random resource
void jid_expand(jid_t jid)
build user and full if they're out of date
int jid_prep(jid_t jid)
do stringprep on the piece
jid_t jid_reset_components(jid_t jid, const char *node, const char *domain, const char *resource)
build a jid from components
char jid_static_buf[3 *1025]
JID static buffer.
int jid_search(jid_t list, jid_t jid)
util to search through jids
void jid_free(jid_t jid)
free a jid
int jid_compare_full(jid_t a, jid_t b)
compare two full jids
jid_t jid_append(jid_t list, jid_t jid)
make a copy of jid, link into list (avoiding dups)
int jid_compare_user(jid_t a, jid_t b)
compare the user portion of two jids
jid_t jid_dup(jid_t jid)
duplicate a jid