Functions

rpc_lookup.c File Reference

SIP-router core ::Module: SIP-router core. More...

#include "rpc.h"
#include "str_hash.h"
#include "ut.h"
#include "dprint.h"
Include dependency graph for rpc_lookup.c:

Go to the source code of this file.

Functions


Detailed Description

Definition in file rpc_lookup.c.


Function Documentation

int init_rpcs ( void   ) 
Returns:
0 on success, -1 on error

Definition at line 55 of file rpc_lookup.c.

static int rpc_hash_add ( struct rpc_export *  rpc  )  [static]
Returns:
0 on success, -1 on error, 1 on duplicate

Definition at line 92 of file rpc_lookup.c.

Referenced by rpc_register().

Here is the caller graph for this function:

rpc_export_t* rpc_lookup ( const char *  name,
int  len 
)
Returns:
pointer to rpc export on success, 0 on error

Definition at line 184 of file rpc_lookup.c.

Referenced by rpc_register().

Here is the caller graph for this function:

int rpc_register ( rpc_export_t *  rpc  ) 
Returns:
0 on success, -1 on error, 1 on duplicate

Definition at line 197 of file rpc_lookup.c.

References rpc_hash_add(), and rpc_lookup().

Referenced by rpc_register_array().

Here is the call graph for this function:

Here is the caller graph for this function:

int rpc_register_array ( rpc_export_t *  rpc_array  ) 
Returns:
0 on success, >0 if duplicates were found (number of duplicates), -1 on error

Definition at line 215 of file rpc_lookup.c.

References rpc_register().

Referenced by ds_init_rpc(), and mod_init().

Here is the call graph for this function:

Here is the caller graph for this function: