|
|
@ -29,13 +29,13 @@ static long __cmp_cstr(const void *a, const void *b)
|
|
|
|
return strcmp((char *)a, (char *)b);
|
|
|
|
return strcmp((char *)a, (char *)b);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int sntl_rpclist_init(usrtc_t *tree)
|
|
|
|
int sxmp_rpclist_init(usrtc_t *tree)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
usrtc_init(tree, USRTC_REDBLACK, MAX_RPC_LIST, __cmp_int);
|
|
|
|
usrtc_init(tree, USRTC_REDBLACK, MAX_RPC_LIST, __cmp_int);
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int sntl_rpclist_add(usrtc_t *tree, int type, const char *description,
|
|
|
|
int sxmp_rpclist_add(usrtc_t *tree, int type, const char *description,
|
|
|
|
const char *version)
|
|
|
|
const char *version)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
rpc_typed_list_t *nlist = NULL;
|
|
|
|
rpc_typed_list_t *nlist = NULL;
|
|
|
@ -81,7 +81,7 @@ int sntl_rpclist_add(usrtc_t *tree, int type, const char *description,
|
|
|
|
return r;
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int sntl_rpclist_add_function(usrtc_t *tree, int type, const char *fu_name,
|
|
|
|
int sxmp_rpclist_add_function(usrtc_t *tree, int type, const char *fu_name,
|
|
|
|
int (*rpcf)(void *, sexp_t *))
|
|
|
|
int (*rpcf)(void *, sexp_t *))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
usrtc_node_t *node;
|
|
|
|
usrtc_node_t *node;
|
|
|
@ -112,7 +112,7 @@ int sntl_rpclist_add_function(usrtc_t *tree, int type, const char *fu_name,
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int sntl_rpclist_filter(usrtc_t *source, usrtc_t **dest, int flag, int *filter)
|
|
|
|
int sxmp_rpclist_filter(usrtc_t *source, usrtc_t **dest, int flag, int *filter)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int r = 0, *f = filter, i;
|
|
|
|
int r = 0, *f = filter, i;
|
|
|
|
usrtc_t *destination = NULL;
|
|
|
|
usrtc_t *destination = NULL;
|
|
|
|