Module: sip-router
Branch: master
Commit: 67fa31e3f01c4d70ad9561949bca4aaa230d0f46
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=67fa31e…
Author: Elena-Ramona Modroiu <ramona(a)asipto.com>
Committer: Elena-Ramona Modroiu <ramona(a)asipto.com>
Date: Wed Apr 23 09:53:41 2014 +0200
htable: set RET_ARRAY flag for rpc commands returning more than one value
- fix failure in xmlrpc parsing
---
modules/htable/htable.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/htable/htable.c b/modules/htable/htable.c
index 63262c0..f96a751 100644
--- a/modules/htable/htable.c
+++ b/modules/htable/htable.c
@@ -1124,14 +1124,14 @@ static void htable_rpc_reload(rpc_t* rpc, void* c)
}
rpc_export_t htable_rpc[] = {
- {"htable.dump", htable_rpc_dump, htable_dump_doc, 0},
+ {"htable.dump", htable_rpc_dump, htable_dump_doc, RET_ARRAY},
{"htable.delete", htable_rpc_delete, htable_delete_doc, 0},
{"htable.get", htable_rpc_get, htable_get_doc, 0},
{"htable.sets", htable_rpc_sets, htable_sets_doc, 0},
{"htable.seti", htable_rpc_seti, htable_seti_doc, 0},
- {"htable.listTables", htable_rpc_list, htable_list_doc, 0},
+ {"htable.listTables", htable_rpc_list, htable_list_doc, RET_ARRAY},
{"htable.reload", htable_rpc_reload, htable_reload_doc, 0},
- {"htable.stats", htable_rpc_stats, htable_stats_doc, 0},
+ {"htable.stats", htable_rpc_stats, htable_stats_doc, RET_ARRAY},
{0, 0, 0, 0}
};