[SR-Users] invalid xmlrpc response from pkg.stats?
Juha Heinanen
jh at tutpro.com
Wed Mar 5 03:15:50 CET 2014
i found the reason why pkg.stats result is not returned as an array:
RET_ARRAY flag was missing from the export. pkg.stats export needs to be
defined like this:
rpc_export_t kex_pkg_rpc[] = {
{"pkg.stats", rpc_pkg_stats, rpc_pkg_stats_doc, RET_ARRAY},
{0, 0, 0, 0}
};
i'll make the commit shortly. looks like there are other rpc functions
too where the flag should be there, but is missing.
-- juha
More information about the sr-users
mailing list