本文整理汇总了C++中rpc_register_array函数的典型用法代码示例。如果您正苦于以下问题:C++ rpc_register_array函数的具体用法?C++ rpc_register_array怎么用?C++ rpc_register_array使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了rpc_register_array函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: mod_init
/**
* init module function
*/
static int mod_init(void)
{
evrexec_task_t *it;
if(rpc_register_array(evr_rpc_methods)!=0) {
LM_ERR("failed to register RPC commands\n");
return -1;
}
if(_evrexec_list==NULL)
return 0;
/* init faked sip msg */
if(faked_msg_init()<0) {
LM_ERR("failed to init evrexec local sip msg\n");
return -1;
}
/* register additional processes */
it = _evrexec_list;
while(it) {
register_procs(it->workers);
it = it->next;
}
return 0;
}
示例2: ds_init_rpc
/**
* register RPC commands
*/
static int ds_init_rpc(void)
{
if(rpc_register_array(dispatcher_rpc_cmds) != 0) {
LM_ERR("failed to register RPC commands\n");
return -1;
}
return 0;
}
示例3: statsc_init_rpc
int statsc_init_rpc(void)
{
if (rpc_register_array(statsc_rpc)!=0) {
LM_ERR("failed to register RPC commands\n");
return -1;
}
return 0;
}
示例4: domain_init_rpc
static int domain_init_rpc(void)
{
if (rpc_register_array(domain_rpc_list) != 0) {
LM_ERR("failed to register RPC commands\n");
return -1;
}
return 0;
}
示例5: sctp_register_rpc
int sctp_register_rpc(void)
{
if(rpc_register_array(sctp_rpc_methods) != 0) {
LM_ERR("failed to register RPC commands\n");
return -1;
}
return 0;
}
示例6: permissions_init_rpc
static int permissions_init_rpc(void)
{
if (rpc_register_array(permissions_rpc)!=0)
{
LM_ERR("failed to register RPC commands\n");
return -1;
}
return 0;
}
示例7: presence_init_rpc
static int presence_init_rpc(void)
{
if (rpc_register_array(presence_rpc)!=0)
{
LM_ERR("failed to register RPC commands\n");
return -1;
}
return 0;
}
示例8: mqueue_rpc_init
static int mqueue_rpc_init(void)
{
if (rpc_register_array(mqueue_rpc)!=0)
{
LM_ERR("failed to register RPC commands\n");
return -1;
}
return 0;
}
示例9: curl_init_rpc
/**
* register RPC commands
*/
int curl_init_rpc(void)
{
if (rpc_register_array(curl_rpc_cmds)!=0)
{
LM_ERR("failed to register RPC commands\n");
return -1;
}
return 0;
}
示例10: ap_init_rpc
/**
* register RPC commands
*/
static int ap_init_rpc(void)
{
if (rpc_register_array(app_perl_rpc_cmds)!=0)
{
LM_ERR("failed to register RPC commands\n");
return -1;
}
return 0;
}
示例11: pkg_proc_stats_init_rpc
int pkg_proc_stats_init_rpc(void)
{
if (rpc_register_array(kex_pkg_rpc)!=0)
{
LM_ERR("failed to register RPC commands\n");
return -1;
}
return 0;
}
示例12: xcap_client_init_rpc
/**
* register RPC commands
*/
static int xcap_client_init_rpc(void)
{
if (rpc_register_array(xcap_client_rpc_cmds)!=0)
{
LM_ERR("failed to register RPC commands\n");
return -1;
}
return 0;
}
示例13: matrix_rpc_init
int matrix_rpc_init(void)
{
if (rpc_register_array(matrix_rpc_cmds)!=0)
{
LM_ERR("failed to register RPC commands\n");
return -1;
}
return 0;
}
示例14: mod_init
/*! \brief
* Module initialization function
*/
static int mod_init(void) {
if (usrloc_debug){
LM_INFO("Logging usrloc records to %.*s\n", usrloc_debug_file.len, usrloc_debug_file.s);
debug_file = fopen(usrloc_debug_file.s, "a");
fprintf(debug_file, "starting\n");
fflush(debug_file);
}
#ifdef STATISTICS
/* register statistics */
if (register_module_stats( exports.name, mod_stats)!=0 ) {
LM_ERR("failed to register core statistics\n");
return -1;
}
#endif
/* Compute the lengths of string parameters */
usrloc_debug_file.len = strlen(usrloc_debug_file.s);
if (ul_hash_size <= 1)
ul_hash_size = 512;
else
ul_hash_size = 1 << ul_hash_size;
ul_locks_no = ul_hash_size;
if (ul_init_locks() != 0) {
LM_ERR("locks array initialization failed\n");
return -1;
}
/* Regsiter RPC */
if (rpc_register_array(ul_rpc) != 0) {
LM_ERR("failed to register RPC commands\n");
return -1;
}
/* Register cache timer */
LM_DBG("Registering cache timer");
register_timer(timer, 0, timer_interval);
/* init the callbacks list */
if (init_ulcb_list() < 0) {
LM_ERR("usrloc/callbacks initialization failed\n");
return -1;
}
init_flag = 1;
return 0;
}
示例15: corex_init_rpc
/**
* register RPC commands
*/
int corex_init_rpc(void)
{
if (cfg_register_ctx(&_cfg_corex_ctx, NULL)) {
LOG(L_ERR, "failed to register cfg context\n");
return -1;
}
if (rpc_register_array(corex_rpc_cmds)!=0)
{
LM_ERR("failed to register RPC commands\n");
return -1;
}
return 0;
}