#include <stdlib.h>
#include <string.h>
#include "../../dprint.h"
#include "../../error.h"
#include "../../mem/shm_mem.h"
#include "xmpp_api.h"

Go to the source code of this file.
Functions | |
| int | bind_xmpp (xmpp_api_t *api) |
| void | destroy_xmpp_cb_list (void) |
| int | init_xmpp_cb_list (void) |
| int | register_xmpp_cb (int types, xmpp_cb_f f, void *param) |
| register a callback function 'f' for 'types' mask of events; | |
Variables | |
| xmpp_cb_list_t * | _xmpp_cb_list = 0 |
Definition in file xmpp_api.c.
| int bind_xmpp | ( | xmpp_api_t * | api | ) |
Definition at line 113 of file xmpp_api.c.
References decode_uri_sip_xmpp(), xmpp_api_::decode_uri_sip_xmpp, decode_uri_xmpp_sip(), xmpp_api_::decode_uri_xmpp_sip, encode_uri_sip_xmpp(), xmpp_api_::encode_uri_sip_xmpp, encode_uri_xmpp_sip(), xmpp_api_::encode_uri_xmpp_sip, LM_ERR, NULL, xmpp_api_::register_callback, register_xmpp_cb(), xmpp_api_::xmessage, xmpp_send_xmessage(), xmpp_send_xnotify(), xmpp_send_xpacket(), xmpp_send_xsubscribe(), xmpp_api_::xnotify, xmpp_api_::xpacket, and xmpp_api_::xsubscribe.
Referenced by mod_init().
| void destroy_xmpp_cb_list | ( | void | ) |
Definition at line 56 of file xmpp_api.c.
References xmpp_cb_list_::first, xmpp_callback_::next, and shm_free.
| int init_xmpp_cb_list | ( | void | ) |
Definition at line 44 of file xmpp_api.c.
References LM_CRIT, and shm_malloc().
Referenced by mod_init().
| int register_xmpp_cb | ( | int | types, | |
| xmpp_cb_f | f, | |||
| void * | param | |||
| ) |
register a callback function 'f' for 'types' mask of events;
Definition at line 77 of file xmpp_api.c.
References xmpp_callback_::cbf, xmpp_callback_::cbp, E_BUG, E_OUT_OF_MEM, xmpp_cb_list_::first, LM_CRIT, LM_ERR, xmpp_callback_::next, shm_malloc(), xmpp_callback_::types, and xmpp_cb_list_::types.
Referenced by bind_xmpp().
Definition at line 41 of file xmpp_api.c.
1.5.6