jabberd2  2.2.16
Functions
sm/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
user_t user_load (sm_t sm, jid_t jid)
 fetch user data
void user_free (user_t user)
int user_create (sm_t sm, jid_t jid)
 initialise a user
void user_delete (sm_t sm, jid_t jid)
 trash a user

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 pool_new, pmalloco(), user_st::p, user_st::sm, sm, user_st::jid, jid_dup(), pool_cleanup(), jid_free(), user_st::module_data, sm_st::mm, and mm_st::nindex.

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 log_debug, ZONE, jid_user(), user_st::jid, xhash_zap(), user_st::sm, sm_st::users, pool_free(), and user_st::p.

Referenced by dispatch(), and sess_end().

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