jabberd2  2.5.0
Functions | Variables
sm.c File Reference

stream / io callbacks More...

#include "sm.h"

Go to the source code of this file.

Functions

int sm_sx_callback (sx_t s, sx_event_t e, void *data, void *arg)
 our master callback More...
 
int sm_mio_callback (mio_t m, mio_action_t a, mio_fd_t fd, void *data, void *arg)
 
void sm_c2s_action (sess_t dest, const char *action, const char *target)
 send a new action route More...
 
void sm_signature (sm_t sm, const char *str)
 this is gratuitous, but apache gets one, so why not? More...
 
int sm_register_ns (sm_t sm, const char *uri)
 register a new global ns More...
 
void sm_unregister_ns (sm_t sm, const char *uri)
 unregister a global ns More...
 
int sm_get_ns (sm_t sm, const char *uri)
 get a globally registered ns More...
 
int sm_storage_rate_limit (sm_t sm, const char *owner)
 

Variables

sig_atomic_t sm_lost_router = 0
 

Detailed Description

stream / io callbacks

Author
Robert Norris
Date
2005/08/17 07:48:28
Revision
1.51

Definition in file sm.c.

Function Documentation

int sm_sx_callback ( sx_t  s,
sx_event_t  e,
void *  data,
void *  arg 
)
int sm_mio_callback ( mio_t  m,
mio_action_t  a,
mio_fd_t  fd,
void *  data,
void *  arg 
)
void sm_c2s_action ( sess_t  dest,
const char *  action,
const char *  target 
)
void sm_signature ( sm_t  sm,
const char *  str 
)

this is gratuitous, but apache gets one, so why not?

Definition at line 313 of file sm.c.

References sm_st::siglen, and sm_st::signature.

Referenced by JABBER_MAIN().

int sm_register_ns ( sm_t  sm,
const char *  uri 
)

register a new global ns

Definition at line 324 of file sm.c.

References pstrdup(), xhash_count(), xhash_get(), xhash_pool(), xhash_put(), sm_st::xmlns, and sm_st::xmlns_refcount.

Referenced by module_init().

void sm_unregister_ns ( sm_t  sm,
const char *  uri 
)
int sm_get_ns ( sm_t  sm,
const char *  uri 
)

get a globally registered ns

Definition at line 349 of file sm.c.

References xhash_get(), and sm_st::xmlns.

int sm_storage_rate_limit ( sm_t  sm,
const char *  owner 
)

Variable Documentation

sig_atomic_t sm_lost_router = 0

Definition at line 30 of file sm.c.

Referenced by _sm_router_connect(), _sm_signal(), JABBER_MAIN(), and sm_mio_callback().