* Automatically add variables to XMLRPC unless added as private.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@898 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-05-04 16:15:16 +00:00
parent a864d5938d
commit c986357bab
11 changed files with 93 additions and 112 deletions
+6 -4
View File
@@ -40,6 +40,7 @@
#include <rak/functional_fun.h>
typedef struct _xmlrpc_env xmlrpc_env;
typedef struct _xmlrpc_value xmlrpc_value;
typedef struct _xmlrpc_registry xmlrpc_registry;
namespace torrent {
@@ -58,15 +59,16 @@ public:
bool process(const char* inBuffer, uint32_t length, slot_write slotWrite);
void set_slot_call_command_get(slot_call_command::base_type* s) { m_slotGet.set(s); }
void set_slot_call_command_set(slot_call_command::base_type* s) { m_slotSet.set(s); }
void insert_command(const char* name, const char* parm, const char* doc);
static xmlrpc_value* call_command(xmlrpc_env* env, xmlrpc_value* args, void* voidServerInfo);
static void set_slot_call_command(slot_call_command::base_type* s) { m_slotCall.set(s); }
private:
xmlrpc_env* m_env;
xmlrpc_registry* m_registry;
slot_call_command m_slotGet;
slot_call_command m_slotSet;
static slot_call_command m_slotCall;
};
}