mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
merged new xmlrpc-c revision 1472 from https://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/trunk
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8545 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
57
libs/xmlrpc-c/tools/xmlrpc_cpp_proxy/systemProxy.cpp
Normal file
57
libs/xmlrpc-c/tools/xmlrpc_cpp_proxy/systemProxy.cpp
Normal file
@@ -0,0 +1,57 @@
|
||||
/*=============================================================================
|
||||
systemProxy
|
||||
===============================================================================
|
||||
|
||||
This is a proxy class for the introspection system methods of the server.
|
||||
|
||||
Note that you can use 'xmlrpc_cpp_proxy' itself to generate this
|
||||
file, but we hand-edit it to make it easier to read.
|
||||
|
||||
=============================================================================*/
|
||||
|
||||
#include "systemProxy.hpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
xmlrpc_c::value // array
|
||||
systemProxy::listMethods(string const& serverUrl) {
|
||||
|
||||
xmlrpc_c::paramList params;
|
||||
xmlrpc_c::value result;
|
||||
|
||||
this->call(serverUrl, "system.listMethods", &result);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
xmlrpc_c::value // array
|
||||
systemProxy::methodSignature(string const& serverUrl,
|
||||
string const& methodName) {
|
||||
|
||||
xmlrpc_c::paramList params;
|
||||
params.add(xmlrpc_c::value_string(methodName));
|
||||
|
||||
xmlrpc_c::value result;
|
||||
|
||||
this->call(serverUrl, "system.methodSignature", params, &result);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
string
|
||||
systemProxy::methodHelp(string const& serverUrl,
|
||||
string const& methodName) {
|
||||
|
||||
xmlrpc_c::paramList params;
|
||||
params.add(xmlrpc_c::value_string(methodName));
|
||||
|
||||
xmlrpc_c::value result;
|
||||
|
||||
this->call(serverUrl, "system.methodHelp", params, &result);
|
||||
|
||||
return xmlrpc_c::value_string(result);
|
||||
}
|
Reference in New Issue
Block a user