Interface


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)

Function Documentation

int rs_register ( rs_reg_t preg  ) 

Register the calling process to registration server

Parameters:
preq pointer to registration information filled by user
Returns:
  • 0:OK
  • !0: error

int rs_register_ext ( rs_reg_t preg  ) 

Register a process to registration server, the calling process has to register before

Parameters:
preq pointer to registration information filled by user
Returns:
  • 0:OK
  • !0: error

int rs_scan ( rs_reg_t ppat,
rs_reg_t pret,
int *  nret 
)

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)

Parameters:
pret fitting processes are stored here
nret number of fitting processes
pret pointer to at least RS_REG_MAX entries
Returns:
  • 0: OK
  • !0: error or no fitting process

int rs_unregister ( rs_reg_t preg  ) 

unregister the calling process in registration server

Parameters:
preq pointer to registration information filled by user
Returns:
  • 0: OK
  • !0: error

int rs_unregister_ext ( rs_reg_t preg  ) 

unregister a process in registration server

Parameters:
preq pointer to registration information filled by user
Returns:
  • 0: OK
  • !0: error


Generated on 4 Mar 2014 for rsintf by  doxygen 1.4.7