jabberd2  2.3.1
Functions
user.c File Reference

user management More...

#include "sm.h"

Go to the source code of this file.

Functions

static user_t _user_alloc (sm_t sm, jid_t jid)
 make a new one More...
 
user_t user_load (sm_t sm, jid_t jid)
 fetch user data More...
 
void user_free (user_t user)
 
int user_create (sm_t sm, jid_t jid)
 initialise a user More...
 
void user_delete (sm_t sm, jid_t jid)
 trash a user More...
 

Detailed Description

user management

Author
Robert Norris
Date:
2005/06/02 04:48:25
Revision:
1.23

Definition in file user.c.

Function Documentation

static user_t _user_alloc ( sm_t  sm,
jid_t  jid 
)
static

make a new one

Definition at line 31 of file user.c.

References user_st::jid, jid_dup(), jid_free(), sm_st::mm, user_st::module_data, mm_st::nindex, user_st::p, pmalloco(), pool_cleanup(), pool_new, sm, and user_st::sm.

Referenced by user_load().

user_t user_load ( sm_t  sm,
jid_t  jid 
)
void user_free ( user_t  user)

Definition at line 80 of file user.c.

References user_st::jid, jid_user(), log_debug, user_st::p, pool_free(), user_st::sm, sm_st::users, xhash_zap(), and ZONE.

Referenced by dispatch(), and sess_end().

int user_create ( sm_t  sm,
jid_t  jid 
)
void user_delete ( sm_t  sm,
jid_t  jid 
)