Module: sip-router
Branch: master
Commit: 3e7a7b19e2d524c100cd09b01cf277950cd01d9e
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3e7a7b1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Aug 14 09:11:22 2014 +0200
corex: rpc corex.list_sockets and corex.list_aliases return array
- type of return value set to RET_ARRAY
---
modules/corex/corex_rpc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/corex/corex_rpc.c b/modules/corex/corex_rpc.c
index 969ff31..77ef0d3 100644
--- a/modules/corex/corex_rpc.c
+++ b/modules/corex/corex_rpc.c
@@ -174,9 +174,9 @@ static void corex_rpc_shm_summary(rpc_t* rpc, void* ctx)
rpc_export_t corex_rpc_cmds[] = {
{"corex.list_sockets", corex_rpc_list_sockets,
- corex_rpc_list_sockets_doc, 0},
+ corex_rpc_list_sockets_doc, RET_ARRAY},
{"corex.list_aliases", corex_rpc_list_aliases,
- corex_rpc_list_aliases_doc, 0},
+ corex_rpc_list_aliases_doc, RET_ARRAY},
{"corex.shm_status", corex_rpc_shm_status,
corex_rpc_shm_status_doc, 0},
{"corex.shm_summary", corex_rpc_shm_summary,