mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
add xmlrpc-c 1.03.14 to in tree libs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3772 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
48
libs/xmlrpc-c/tools/xml-rpc-api2cpp/SystemProxy.hpp
Normal file
48
libs/xmlrpc-c/tools/xml-rpc-api2cpp/SystemProxy.hpp
Normal file
@@ -0,0 +1,48 @@
|
||||
// SystemProxy.h - xmlrpc-c C++ proxy class
|
||||
// Auto-generated by xml-rpc-api2cpp.
|
||||
|
||||
#ifndef _SystemProxy_H_
|
||||
#define _SystemProxy_H_ 1
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "xmlrpc-c/oldcppwrapper.hpp"
|
||||
|
||||
class SystemProxy {
|
||||
XmlRpcClient mClient;
|
||||
|
||||
public:
|
||||
SystemProxy (const XmlRpcClient& client)
|
||||
: mClient(client) {}
|
||||
SystemProxy (const std::string& server_url)
|
||||
: mClient(XmlRpcClient(server_url)) {}
|
||||
SystemProxy (const SystemProxy& o)
|
||||
: mClient(o.mClient) {}
|
||||
|
||||
SystemProxy& operator= (const SystemProxy& o) {
|
||||
if (this != &o) mClient = o.mClient;
|
||||
return *this;
|
||||
}
|
||||
|
||||
/* Return an array of all available XML-RPC methods on this server. */
|
||||
XmlRpcValue /*array*/ listMethods ();
|
||||
|
||||
/* Given the name of a method, return an array of legal
|
||||
signatures. Each signature is an array of strings. The first item of
|
||||
each signature is the return type, and any others items are
|
||||
parameter types. */
|
||||
XmlRpcValue /*array*/ methodSignature (std::string string1);
|
||||
|
||||
/* Given the name of a method, return a help string. */
|
||||
std::string methodHelp (std::string string1);
|
||||
|
||||
/* Process an array of calls, and return an array of results. Calls
|
||||
should be structs of the form {'methodName': string, 'params':
|
||||
array}. Each result will either be a single-item array containg the
|
||||
result value, or a struct of the form {'faultCode': int,
|
||||
'faultString': string}. This is useful when you need to make lots of
|
||||
small calls without lots of round trips. */
|
||||
XmlRpcValue /*array*/ multicall (XmlRpcValue /*array*/ array1);
|
||||
};
|
||||
|
||||
#endif /* _SystemProxy_H_ */
|
Reference in New Issue
Block a user