mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-15 14:42:30 +00:00
* 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:
+6
-4
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user