mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 14:12:31 +00:00
* More commands moved to the new system.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@897 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+15
-6
@@ -56,12 +56,6 @@ extern utils::CommandSlot* commandSlotsItr;
|
||||
extern utils::CommandVariable commandVariables[COMMAND_VARIABLES_SIZE];
|
||||
extern utils::CommandVariable* commandVariablesItr;
|
||||
|
||||
void initialize_variables();
|
||||
void initialize_download_variables();
|
||||
void initialize_command_events();
|
||||
void initialize_command_network();
|
||||
void initialize_command_ui();
|
||||
|
||||
void initialize_commands();
|
||||
|
||||
void
|
||||
@@ -85,4 +79,19 @@ add_variable("get_" key, "set_" key, key, &utils::CommandVariable::get_string, &
|
||||
#define ADD_COMMAND_COPY(key, function) \
|
||||
variables->insert(key, (commandSlotsItr - 1), &utils::CommandSlot::function, utils::VariableMap::flag_dont_delete);
|
||||
|
||||
#define ADD_COMMAND_VALUE_TRI(key, set, get) \
|
||||
ADD_COMMAND_SLOT(key, call_value, utils::object_value_fn(set)) \
|
||||
ADD_COMMAND_COPY("set_" key, call_value) \
|
||||
ADD_COMMAND_SLOT("get_" key, call_unknown, utils::object_void_fn(get))
|
||||
|
||||
#define ADD_COMMAND_VALUE_TRI_KB(key, set, get) \
|
||||
ADD_COMMAND_SLOT(key, call_value_kb, utils::object_value_fn(set)) \
|
||||
ADD_COMMAND_COPY("set_" key, call_value) \
|
||||
ADD_COMMAND_SLOT("get_" key, call_unknown, utils::object_void_fn(get))
|
||||
|
||||
#define ADD_COMMAND_STRING_TRI(key, set, get) \
|
||||
ADD_COMMAND_SLOT(key, call_string, utils::object_string_fn(set)) \
|
||||
ADD_COMMAND_COPY("set_" key, call_string) \
|
||||
ADD_COMMAND_SLOT("get_" key, call_unknown, utils::object_void_fn(get))
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user