jabberd2
2.2.16
|
user auto-population - roster More...
#include "sm.h"
Go to the source code of this file.
Data Structures | |
struct | _template_roster_st |
union | xhashv |
session packet handling More... | |
Typedefs | |
typedef struct _template_roster_st * | template_roster_t |
Functions | |
static int | _template_roster_reload (template_roster_t tr) |
static void | _template_roster_save_item (sm_t sm, jid_t jid, item_t item) |
!!! this is a cut & paste of _roster_save_time - break it out | |
static int | _template_roster_user_create (mod_instance_t mi, jid_t jid) |
static void | _template_roster_free (module_t mod) |
DLLEXPORT int | module_init (mod_instance_t mi, char *arg) |
user auto-population - roster
Definition in file mod_template_roster.c.
typedef struct _template_roster_st * template_roster_t |
static int _template_roster_reload | ( | template_roster_t | tr | ) | [static] |
Definition at line 46 of file mod_template_roster.c.
References _template_roster_st::filename, log_write(), _template_roster_st::sm, sm_st::log, _template_roster_st::mtime, _template_roster_st::items, xhash_free(), xhash_new(), nad_parse(), nad_st::ecur, nad_find_elem(), NAD_ENS, nad_find_attr(), pmalloco(), xhash_pool(), item_st::jid, jid_new(), NAD_AVAL, NAD_AVAL_L, pool_cleanup(), jid_free(), item_st::to, item_st::from, item_st::name, pstrdupx(), NAD_CDATA_L, item_st::groups, item_st::ngroups, NAD_CDATA, xhash_put(), jid_full(), log_debug, and ZONE.
Referenced by _template_roster_user_create().
!!! this is a cut & paste of _roster_save_time - break it out
Definition at line 168 of file mod_template_roster.c.
References log_debug, ZONE, jid_full(), item_st::jid, jid_user(), item_st::name, item_st::to, item_st::from, item_st::ask, sm_st::st, item_st::ngroups, and item_st::groups.
Referenced by _template_roster_user_create().
static int _template_roster_user_create | ( | mod_instance_t | mi, |
jid_t | jid | ||
) | [static] |
Definition at line 215 of file mod_template_roster.c.
References mod_instance_st::mod, module_st::private, _template_roster_reload(), log_debug, ZONE, xhash_iter_first(), _template_roster_st::items, xhash_iter_get(), _template_roster_save_item(), _template_roster_st::sm, and xhash_iter_next().
Referenced by module_init().
static void _template_roster_free | ( | module_t | mod | ) | [static] |
Definition at line 236 of file mod_template_roster.c.
References module_st::private, _template_roster_st::items, and xhash_free().
Referenced by module_init().
DLLEXPORT int module_init | ( | mod_instance_t | mi, |
char * | arg | ||
) |
Definition at line 245 of file mod_template_roster.c.
References mod_instance_st::mod, module_st::init, config_get_one(), module_st::mm, mm_st::sm, sm_st::config, _template_roster_st::sm, _template_roster_st::filename, module_st::private, module_st::user_create, _template_roster_user_create(), module_st::free, and _template_roster_free().