jid.cc File Reference

compatibility functions for old JID handling More...

#include <jabberdlib.h>

Functions

jid jid_new (pool p, const char *idstr)
void jid_set (jid id, const char *str, int item)
char * jid_full (jid id)
int jid_cmp (jid a, jid b)
int jid_cmpx (jid a, jid b, int parts)
jid jid_user_pool (jid a, pool p)
jid jid_user (jid a)
jid jid_append (jid a, jid b)

Detailed Description

compatibility functions for old JID handling


Function Documentation

jid jid_append ( jid  a,
jid  b 
)
int jid_cmp ( jid  a,
jid  b 
)

Referenced by _js_session_from(), and jid_append().

int jid_cmpx ( jid  a,
jid  b,
int  parts 
)
char* jid_full ( jid  id  ) 
jid jid_new ( pool  p,
const char *  idstr 
)
void jid_set ( jid  id,
const char *  str,
int  item 
)
jid jid_user ( jid  a  ) 
jid jid_user_pool ( jid  a,
pool  p 
)

Returns the same jid but without the resource.

Returns the jid, if it does not contain a resource, else a new jid is created.

If memory needs to be allocated, the given memory pool is used.

Parameters:
a the original jid
p the memory pool to use
Returns:
the jid without the resource

References xmppd::jabberid::get_user(), and jid_new().

Referenced by _js_session_from(), and jid_user().


Generated on Wed Mar 10 06:00:06 2010 for jabberd14 by  doxygen 1.6.1