Classes | |
struct | rs_reg_t |
registration info More... | |
Defines | |
#define | RS_REG_MAX 256 |
max number of registrations | |
#define | RS_RC_OK 0 |
#define | RS_RC_REG_MAX 1 |
#define | RS_RC_REG_ALREADY 2 |
#define | RS_RC_REG_EMPTY 3 |
#define | RS_RC_INT_001 101 |
#define | RS_RC_INT_002 102 |
#define | RS_RC_INT_003 103 |
#define | RS_RC_INT_004 104 |
#define | RS_RC_INT_005 105 |
#define | RS_NODE_WILD 0 |
matches any node in scan | |
Functions | |
int | rs_register (rs_reg_t *preg) |
int | rs_register_ext (rs_reg_t *preg) |
int | rs_unregister (rs_reg_t *preg) |
int | rs_unregister_ext (rs_reg_t *preg) |
int | rs_scan (rs_reg_t *ppat, rs_reg_t *pret, int *nret) |
int rs_register | ( | rs_reg_t * | preg | ) |
Register the calling process to registration server
preq | pointer to registration information filled by user |
int rs_register_ext | ( | rs_reg_t * | preg | ) |
Register a process to registration server, the calling process has to register before
preq | pointer to registration information filled by user |
scans for process in pattern node may be RS_NODE_WILD indicating all nodes (limits due to packet size limit, this should be improved by an protocoll to get a series of packets)
pret | fitting processes are stored here | |
nret | number of fitting processes | |
pret | pointer to at least RS_REG_MAX entries |
int rs_unregister | ( | rs_reg_t * | preg | ) |
unregister the calling process in registration server
preq | pointer to registration information filled by user |
int rs_unregister_ext | ( | rs_reg_t * | preg | ) |
unregister a process in registration server
preq | pointer to registration information filled by user |