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) |
compatibility functions for old JID handling
References xmppd::jabberid_pool::get_pool(), jid_cmp(), jid_full(), jid_new(), and xmppd::jabberid_pool::next.
Referenced by acl_get_users(), mod_log(), and mod_presence().
Referenced by _js_session_from(), and jid_append().
References xmppd::jabberid::compare(), JID_RESOURCE, JID_SERVER, and JID_USER.
Referenced by _js_session_from(), acl_check_access(), js_deliver(), js_remove_seen(), and js_remove_trustee().
| char* jid_full | ( | jid | id | ) |
Referenced by _dialback_miod_hash_cleanup(), _dialback_walk_in_connecting(), _dialback_walk_in_established(), _dialback_walk_out_connecting(), _dialback_walk_out_established(), _js_routed_error_packet(), _js_routed_packet(), _js_routed_session_control_packet(), _js_routed_session_packet(), _js_session_from(), _js_session_to(), acl_check_access(), deliver(), dialback_in_read(), dialback_in_read_db(), dialback_in_verify(), dialback_miod_hash(), dialback_out_connect(), dialback_out_connection(), dialback_out_connection_cleanup(), dialback_out_packet(), dialback_out_read(), jid_append(), js_deliver(), js_offline_main(), js_sc_session_new(), js_session_end(), js_session_new(), js_session_route(), js_user(), xdb_file_phandler(), and xdb_get().
create a new jid
References pool_cleanup().
Referenced by _js_routed_packet(), _js_routed_session_control_packet(), _js_session_from(), acl_get_users(), deliver(), dialback(), dialback_in_read(), dialback_in_read_db(), dialback_in_verify(), dialback_miod_hash(), dialback_out_connection(), dialback_out_packet(), dialback_packets(), dnsrv(), dnsrv_deliver(), dpacket_new(), jid_append(), jid_user_pool(), jpacket_reset(), js_config(), js_sc_session_new(), js_session_new(), js_user(), main(), mod_dynamic(), mod_log(), mod_presence(), pthsock_client(), xdb_file(), and xdb_sql().
| void jid_set | ( | jid | id, | |
| const char * | str, | |||
| int | item | |||
| ) |
set part of a jabberid
References JID_RESOURCE, JID_SERVER, and JID_USER.
Referenced by _dialback_walk_in_connecting(), _dialback_walk_in_established(), _dialback_walk_out_connecting(), _dialback_walk_out_established(), dialback_in_read(), dialback_in_read_db(), dialback_in_verify(), dialback_out_packet(), and js_session_new().
References xmppd::jabberid_pool::get_pool(), and jid_user_pool().
Referenced by _js_authreg_register(), and js_user().
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.
| a | the original jid | |
| p | the memory pool to use |
References xmppd::jabberid::get_user(), and jid_new().
Referenced by _js_session_from(), and jid_user().
1.6.1