61 if(mod->
init)
return 0;
mod_ret_t(* pkt_sm)(mod_instance_t mi, pkt_t pkt)
pkt-sm handler
pkt_type_t type
packet type
data structures and prototypes for the session manager
const char * jid_user(jid_t jid)
expand and return the user
const char * jid_full(jid_t jid)
expand and return the full
jid_t jid_new(const char *id, int len)
make a new jid
pkt_t pkt_tofrom(pkt_t pkt)
swap a packet's to and from attributes
single instance of a module in a chain
int init
number of times the module intialiser has been called
static mod_ret_t _echo_pkt_sm(mod_instance_t mi, pkt_t pkt)
jid_t jid_reset_components(jid_t jid, const char *node, const char *domain, const char *resource)
build a jid from components
module_t mod
module that this is an instance of
jid_t from
packet addressing (not used for routing)
void * private
module private data
packet summary data wrapper
void jid_free(jid_t jid)
free a jid
void pkt_router(pkt_t pkt)
DLLEXPORT int module_init(mod_instance_t mi, const char *arg)
packet was unhandled, should be passed to the next module
packet was handled (and freed)
pkt_t pkt_create(sm_t sm, const char *elem, const char *type, const char *to, const char *from)
mod_ret_t
module return values