Ticket #52477: patch-extra-clang.diff
File patch-extra-clang.diff, 23.5 KB (added by 3add3287 (3add3287), 8 years ago) |
---|
-
src/command_download.cc
initialize_command_download() { 813 813 CMD2_DL_V ("d.disconnect.seeders", tr1::bind(&torrent::ConnectionList::erase_seeders, CMD2_BIND_CL)); 814 814 815 815 CMD2_DL ("d.accepting_seeders", CMD2_ON_INFO(is_accepting_seeders)); 816 CMD2_DL_V ("d.accepting_seeders.enable", tr1::bind(&torrent::DownloadInfo::public_set_flags, CMD2_BIND_INFO, torrent::DownloadInfo::flag_accepting_seeders));817 CMD2_DL_V ("d.accepting_seeders.disable", tr1::bind(&torrent::DownloadInfo::public_unset_flags, CMD2_BIND_INFO, torrent::DownloadInfo::flag_accepting_seeders));816 CMD2_DL_V ("d.accepting_seeders.enable", tr1::bind(&torrent::DownloadInfo::public_set_flags, CMD2_BIND_INFO, (1<<4))); 817 CMD2_DL_V ("d.accepting_seeders.disable", tr1::bind(&torrent::DownloadInfo::public_unset_flags, CMD2_BIND_INFO, (1<<4))); 818 818 819 819 CMD2_DL ("d.throttle_name", tr1::bind(&download_get_variable, tr1::placeholders::_1, "rtorrent", "throttle_name")); 820 820 CMD2_DL_STRING_V("d.throttle_name.set", tr1::bind(&core::Download::set_throttle_name, tr1::placeholders::_1, std::placeholders::_2)); -
src/command_dynamic.cc
system_method_insert_object(const torren 127 127 128 128 torrent::Object value; 129 129 130 switch (flags & rpc:: object_storage::mask_type) {131 case rpc:: object_storage::flag_bool_type:132 case rpc:: object_storage::flag_value_type:130 switch (flags & rpc::mask_type) { 131 case rpc::flag_bool_type: 132 case rpc::flag_value_type: 133 133 value = itrArgs != args.end() ? rpc::convert_to_value(*itrArgs) : int64_t(); 134 134 break; 135 case rpc:: object_storage::flag_string_type:135 case rpc::flag_string_type: 136 136 value = itrArgs != args.end() ? rpc::convert_to_string(*itrArgs) : ""; 137 137 break; 138 case rpc:: object_storage::flag_function_type:138 case rpc::flag_function_type: 139 139 system_method_generate_command2(&value, itrArgs, args.end()); 140 140 break; 141 case rpc:: object_storage::flag_multi_type:141 case rpc::flag_multi_type: 142 142 break; 143 143 default: 144 144 throw torrent::input_error("Invalid type."); … … system_method_insert_object(const torren 146 146 147 147 int cmd_flags = 0; 148 148 149 if (!(flags & rpc:: object_storage::flag_static))149 if (!(flags & rpc::flag_static)) 150 150 cmd_flags |= rpc::CommandMap::flag_modifiable; 151 if (!(flags & rpc:: object_storage::flag_private))151 if (!(flags & rpc::flag_private)) 152 152 cmd_flags |= rpc::CommandMap::flag_public_xmlrpc; 153 153 154 154 control->object_storage()->insert_str(rawKey, value, flags); 155 155 156 if ((flags & rpc:: object_storage::mask_type) == rpc::object_storage::flag_function_type ||157 (flags & rpc:: object_storage::mask_type) == rpc::object_storage::flag_multi_type) {156 if ((flags & rpc::mask_type) == rpc::flag_function_type || 157 (flags & rpc::mask_type) == rpc::flag_multi_type) { 158 158 159 159 rpc::commands.insert_slot<rpc::command_base_is_type<rpc::command_base_call<rpc::target_type> >::type> 160 160 (create_new_key(rawKey), … … system_method_insert_object(const torren 172 172 } 173 173 174 174 // Not the right argument. 175 // if (flags & rpc:: object_storage::flag_rlookup) {175 // if (flags & rpc::flag_rlookup) { 176 176 // rpc::commands.insert_slot<rpc::command_base_is_type<rpc::command_base_call_string<rpc::target_type> >::type> 177 177 // (create_new_key<9>(rawKey, ".rlookup"), 178 178 // tr1::bind(&rpc::object_storage::rlookup_obj_list, control->object_storage(), rawKey), … … system_method_insert_object(const torren 184 184 185 185 // // Ehm... no proper handling if these throw. 186 186 187 if (!(flags & rpc:: object_storage::flag_constant)) {188 switch (flags & rpc:: object_storage::mask_type) {189 case rpc:: object_storage::flag_bool_type:187 if (!(flags & rpc::flag_constant)) { 188 switch (flags & rpc::mask_type) { 189 case rpc::flag_bool_type: 190 190 rpc::commands.insert_slot<rpc::command_base_is_type<rpc::command_base_call_value<rpc::target_type> >::type> 191 191 (create_new_key<5>(rawKey, ".set"), 192 192 tr1::bind(&rpc::object_storage::set_str_bool, control->object_storage(), rawKey, tr1::placeholders::_2), 193 193 &rpc::command_base_call_value<rpc::target_type>, 194 194 cmd_flags, NULL, NULL); 195 195 break; 196 case rpc:: object_storage::flag_value_type:196 case rpc::flag_value_type: 197 197 rpc::commands.insert_slot<rpc::command_base_is_type<rpc::command_base_call_value<rpc::target_type> >::type> 198 198 (create_new_key<5>(rawKey, ".set"), 199 199 tr1::bind(&rpc::object_storage::set_str_value, control->object_storage(), rawKey, tr1::placeholders::_2), 200 200 &rpc::command_base_call_value<rpc::target_type>, 201 201 cmd_flags, NULL, NULL); 202 202 break; 203 case rpc:: object_storage::flag_string_type:203 case rpc::flag_string_type: 204 204 rpc::commands.insert_slot<rpc::command_base_is_type<rpc::command_base_call_string<rpc::target_type> >::type> 205 205 (create_new_key<5>(rawKey, ".set"), 206 206 tr1::bind(&rpc::object_storage::set_str_string, control->object_storage(), rawKey, tr1::placeholders::_2), 207 207 &rpc::command_base_call_string<rpc::target_type>, 208 208 cmd_flags, NULL, NULL); 209 209 break; 210 case rpc:: object_storage::flag_function_type:211 case rpc:: object_storage::flag_multi_type:210 case rpc::flag_function_type: 211 case rpc::flag_multi_type: 212 212 default: break; 213 213 } 214 214 } … … system_method_insert(const torrent::Obje 256 256 new_args.push_back(rawKey); 257 257 new_args.push_back(system_method_generate_command(++itrArgs, args.end())); 258 258 259 int new_flags = rpc:: object_storage::flag_multi_type;259 int new_flags = rpc::flag_multi_type; 260 260 261 261 if (options.find("static") != std::string::npos) 262 new_flags |= rpc:: object_storage::flag_static;262 new_flags |= rpc::flag_static; 263 263 if (options.find("private") != std::string::npos) 264 new_flags |= rpc:: object_storage::flag_private;264 new_flags |= rpc::flag_private; 265 265 if (options.find("const") != std::string::npos) 266 new_flags |= rpc:: object_storage::flag_constant;266 new_flags |= rpc::flag_constant; 267 267 if (options.find("rlookup") != std::string::npos) 268 new_flags |= rpc:: object_storage::flag_rlookup;268 new_flags |= rpc::flag_rlookup; 269 269 270 270 return system_method_insert_object(new_args, new_flags); 271 271 … … system_method_insert(const torrent::Obje 274 274 new_args.push_back(rawKey); 275 275 new_args.push_back(system_method_generate_command(++itrArgs, args.end())); 276 276 277 int new_flags = rpc:: object_storage::flag_function_type;277 int new_flags = rpc::flag_function_type; 278 278 279 279 if (options.find("static") != std::string::npos) 280 new_flags |= rpc:: object_storage::flag_static;280 new_flags |= rpc::flag_static; 281 281 if (options.find("private") != std::string::npos) 282 new_flags |= rpc:: object_storage::flag_private;282 new_flags |= rpc::flag_private; 283 283 if (options.find("const") != std::string::npos) 284 new_flags |= rpc:: object_storage::flag_constant;284 new_flags |= rpc::flag_constant; 285 285 286 286 return system_method_insert_object(new_args, new_flags); 287 287 … … system_method_insert(const torrent::Obje 299 299 int new_flags; 300 300 301 301 if (options.find("value") != std::string::npos) 302 new_flags = rpc:: object_storage::flag_value_type;302 new_flags = rpc::flag_value_type; 303 303 else if (options.find("bool") != std::string::npos) 304 new_flags = rpc:: object_storage::flag_bool_type;304 new_flags = rpc::flag_bool_type; 305 305 else if (options.find("string") != std::string::npos) 306 new_flags = rpc:: object_storage::flag_string_type;306 new_flags = rpc::flag_string_type; 307 307 else if (options.find("list") != std::string::npos) 308 new_flags = rpc:: object_storage::flag_list_type;308 new_flags = rpc::flag_list_type; 309 309 else if (options.find("simple") != std::string::npos) 310 new_flags = rpc:: object_storage::flag_function_type;310 new_flags = rpc::flag_function_type; 311 311 else 312 312 throw torrent::input_error("No support for 'list' variable type."); 313 313 314 314 if (options.find("static") != std::string::npos) 315 new_flags |= rpc:: object_storage::flag_static;315 new_flags |= rpc::flag_static; 316 316 if (options.find("private") != std::string::npos) 317 new_flags |= rpc:: object_storage::flag_private;317 new_flags |= rpc::flag_private; 318 318 if (options.find("const") != std::string::npos) 319 new_flags |= rpc:: object_storage::flag_constant;319 new_flags |= rpc::flag_constant; 320 320 321 321 return system_method_insert_object(new_args, new_flags); 322 322 … … system_method_set_function(const torrent 369 369 rpc::object_storage::local_iterator itr = 370 370 control->object_storage()->find_local(torrent::raw_string::from_string(args.front().as_string())); 371 371 372 if (itr == control->object_storage()->end(0) || itr->second.flags & rpc:: object_storage::flag_constant)372 if (itr == control->object_storage()->end(0) || itr->second.flags & rpc::flag_constant) 373 373 throw torrent::input_error("Command is not modifiable."); 374 374 375 375 return control->object_storage()->set_str_function(args.front().as_string(), … … initialize_command_dynamic() { 442 442 CMD2_VAR_VALUE ("method.use_intermediate", 1); 443 443 444 444 CMD2_ANY_LIST ("method.insert", tr1::bind(&system_method_insert, tr1::placeholders::_2)); 445 CMD2_ANY_LIST ("method.insert.value", tr1::bind(&system_method_insert_object, tr1::placeholders::_2, rpc:: object_storage::flag_value_type));445 CMD2_ANY_LIST ("method.insert.value", tr1::bind(&system_method_insert_object, tr1::placeholders::_2, rpc::flag_value_type)); 446 446 447 CMD2_METHOD_INSERT("method.insert.simple", rpc:: object_storage::flag_function_type);448 CMD2_METHOD_INSERT("method.insert.c_simple", rpc:: object_storage::flag_constant | rpc::object_storage::flag_function_type);449 CMD2_METHOD_INSERT("method.insert.s_c_simple", rpc:: object_storage::flag_static |450 rpc:: object_storage::flag_constant |rpc::object_storage::flag_function_type);447 CMD2_METHOD_INSERT("method.insert.simple", rpc::flag_function_type); 448 CMD2_METHOD_INSERT("method.insert.c_simple", rpc::flag_constant | rpc::flag_function_type); 449 CMD2_METHOD_INSERT("method.insert.s_c_simple", rpc::flag_static | 450 rpc::flag_constant |rpc::flag_function_type); 451 451 452 452 CMD2_ANY_STRING ("method.erase", tr1::bind(&system_method_erase, tr1::placeholders::_2)); 453 453 CMD2_ANY_LIST ("method.redirect", tr1::bind(&system_method_redirect, tr1::placeholders::_2)); … … initialize_command_dynamic() { 456 456 CMD2_ANY_LIST ("method.set", tr1::bind(&system_method_set_function, tr1::placeholders::_2)); 457 457 458 458 CMD2_ANY_STRING ("method.const", tr1::bind(&rpc::object_storage::has_flag_str, control->object_storage(), 459 tr1::placeholders::_2, rpc:: object_storage::flag_constant));459 tr1::placeholders::_2, rpc::flag_constant)); 460 460 CMD2_ANY_STRING_V("method.const.enable", tr1::bind(&rpc::object_storage::enable_flag_str, control->object_storage(), 461 tr1::placeholders::_2, rpc:: object_storage::flag_constant));461 tr1::placeholders::_2, rpc::flag_constant)); 462 462 463 463 CMD2_ANY_LIST ("method.has_key", tr1::bind(&system_method_has_key, tr1::placeholders::_2)); 464 464 CMD2_ANY_LIST ("method.set_key", tr1::bind(&system_method_set_key, tr1::placeholders::_2)); -
src/command_events.cc
initialize_command_events() { 321 321 CMD2_ANY_STRING_V("import", tr1::bind(&apply_import, tr1::placeholders::_2)); 322 322 CMD2_ANY_STRING_V("try_import", tr1::bind(&apply_try_import, tr1::placeholders::_2)); 323 323 324 CMD2_ANY_LIST ("load.normal", tr1::bind(&apply_load, tr1::placeholders::_2, core:: Manager::create_quiet | core::Manager::create_tied));325 CMD2_ANY_LIST ("load.verbose", tr1::bind(&apply_load, tr1::placeholders::_2, core:: Manager::create_tied));324 CMD2_ANY_LIST ("load.normal", tr1::bind(&apply_load, tr1::placeholders::_2, core::create_quiet | core::create_tied)); 325 CMD2_ANY_LIST ("load.verbose", tr1::bind(&apply_load, tr1::placeholders::_2, core::create_tied)); 326 326 CMD2_ANY_LIST ("load.start", tr1::bind(&apply_load, tr1::placeholders::_2, 327 core:: Manager::create_quiet | core::Manager::create_tied | core::Manager::create_start));328 CMD2_ANY_LIST ("load.start_verbose", tr1::bind(&apply_load, tr1::placeholders::_2, core:: Manager::create_tied | core::Manager::create_start));329 CMD2_ANY_LIST ("load.raw", tr1::bind(&apply_load, tr1::placeholders::_2, core:: Manager::create_quiet | core::Manager::create_raw_data));330 CMD2_ANY_LIST ("load.raw_verbose", tr1::bind(&apply_load, tr1::placeholders::_2, core:: Manager::create_raw_data));327 core::create_quiet | core::create_tied | core::create_start)); 328 CMD2_ANY_LIST ("load.start_verbose", tr1::bind(&apply_load, tr1::placeholders::_2, core::create_tied | core::create_start)); 329 CMD2_ANY_LIST ("load.raw", tr1::bind(&apply_load, tr1::placeholders::_2, core::create_quiet | core::create_raw_data)); 330 CMD2_ANY_LIST ("load.raw_verbose", tr1::bind(&apply_load, tr1::placeholders::_2, core::create_raw_data)); 331 331 CMD2_ANY_LIST ("load.raw_start", tr1::bind(&apply_load, tr1::placeholders::_2, 332 core:: Manager::create_quiet | core::Manager::create_start | core::Manager::create_raw_data));332 core::create_quiet | core::create_start | core::create_raw_data)); 333 333 334 334 CMD2_ANY_VALUE ("close_low_diskspace", tr1::bind(&apply_close_low_diskspace, tr1::placeholders::_2)); 335 335 -
src/command_helpers.h
void initialize_commands(); 98 98 #define CMD2_TRACKER_VALUE_V(key, slot) CMD2_A_FUNCTION(key, command_base_call_value<torrent::Tracker*>, object_convert_void(slot), "i:i", "") 99 99 100 100 #define CMD2_VAR_BOOL(key, value) \ 101 control->object_storage()->insert_c_str(key, int64_t(value), rpc:: object_storage::flag_bool_type); \101 control->object_storage()->insert_c_str(key, int64_t(value), rpc::flag_bool_type); \ 102 102 CMD2_ANY(key, tr1::bind(&rpc::object_storage::get, control->object_storage(), \ 103 103 torrent::raw_string::from_c_str(key))); \ 104 104 CMD2_ANY_VALUE(key ".set", tr1::bind(&rpc::object_storage::set_bool, control->object_storage(), \ 105 105 torrent::raw_string::from_c_str(key), tr1::placeholders::_2)); 106 106 107 107 #define CMD2_VAR_VALUE(key, value) \ 108 control->object_storage()->insert_c_str(key, int64_t(value), rpc:: object_storage::flag_value_type); \108 control->object_storage()->insert_c_str(key, int64_t(value), rpc::flag_value_type); \ 109 109 CMD2_ANY(key, tr1::bind(&rpc::object_storage::get, control->object_storage(), \ 110 110 torrent::raw_string::from_c_str(key))); \ 111 111 CMD2_ANY_VALUE(key ".set", tr1::bind(&rpc::object_storage::set_value, control->object_storage(), \ 112 112 torrent::raw_string::from_c_str(key), tr1::placeholders::_2)); 113 113 114 114 #define CMD2_VAR_STRING(key, value) \ 115 control->object_storage()->insert_c_str(key, value, rpc:: object_storage::flag_string_type); \115 control->object_storage()->insert_c_str(key, value, rpc::flag_string_type); \ 116 116 CMD2_ANY(key, tr1::bind(&rpc::object_storage::get, control->object_storage(), \ 117 117 torrent::raw_string::from_c_str(key))); \ 118 118 CMD2_ANY_STRING(key ".set", tr1::bind(&rpc::object_storage::set_string, control->object_storage(), \ … … void initialize_commands(); 120 120 121 121 122 122 #define CMD2_VAR_C_STRING(key, value) \ 123 control->object_storage()->insert_c_str(key, value, rpc:: object_storage::flag_string_type); \123 control->object_storage()->insert_c_str(key, value, rpc::flag_string_type); \ 124 124 CMD2_ANY(key, tr1::bind(&rpc::object_storage::get, control->object_storage(), \ 125 125 torrent::raw_string::from_c_str(key))); 126 126 127 127 #define CMD2_VAR_LIST(key) \ 128 control->object_storage()->insert_c_str(key, torrent::Object::create_list(), rpc:: object_storage::flag_list_type); \128 control->object_storage()->insert_c_str(key, torrent::Object::create_list(), rpc::flag_list_type); \ 129 129 CMD2_ANY(key, tr1::bind(&rpc::object_storage::get, control->object_storage(), \ 130 130 torrent::raw_string::from_c_str(key))); \ 131 131 CMD2_ANY_LIST(key ".set", tr1::bind(&rpc::object_storage::set_list, control->object_storage(), \ -
src/command_local.cc
initialize_command_local() { 401 401 #define CMD2_EXECUTE(key, flags) \ 402 402 CMD2_ANY(key, tr1::bind(&rpc::ExecFile::execute_object, &rpc::execFile, tr1::placeholders::_2, flags)); 403 403 404 CMD2_EXECUTE ("execute2", rpc:: ExecFile::flag_expand_tilde | rpc::ExecFile::flag_throw);405 CMD2_EXECUTE ("execute.throw", rpc:: ExecFile::flag_expand_tilde | rpc::ExecFile::flag_throw);406 CMD2_EXECUTE ("execute.throw.bg", rpc:: ExecFile::flag_expand_tilde | rpc::ExecFile::flag_throw | rpc::ExecFile::flag_background);407 CMD2_EXECUTE ("execute.nothrow", rpc:: ExecFile::flag_expand_tilde);408 CMD2_EXECUTE ("execute.nothrow.bg", rpc:: ExecFile::flag_expand_tilde | rpc::ExecFile::flag_background);409 CMD2_EXECUTE ("execute.raw", rpc:: ExecFile::flag_throw);410 CMD2_EXECUTE ("execute.raw.bg", rpc:: ExecFile::flag_throw | rpc::ExecFile::flag_background);404 CMD2_EXECUTE ("execute2", rpc::flag_expand_tilde | rpc::flag_throw); 405 CMD2_EXECUTE ("execute.throw", rpc::flag_expand_tilde | rpc::flag_throw); 406 CMD2_EXECUTE ("execute.throw.bg", rpc::flag_expand_tilde | rpc::flag_throw | rpc::flag_background); 407 CMD2_EXECUTE ("execute.nothrow", rpc::flag_expand_tilde); 408 CMD2_EXECUTE ("execute.nothrow.bg", rpc::flag_expand_tilde | rpc::flag_background); 409 CMD2_EXECUTE ("execute.raw", rpc::flag_throw); 410 CMD2_EXECUTE ("execute.raw.bg", rpc::flag_throw | rpc::flag_background); 411 411 CMD2_EXECUTE ("execute.raw_nothrow", 0); 412 CMD2_EXECUTE ("execute.raw_nothrow.bg", rpc:: ExecFile::flag_background);413 CMD2_EXECUTE ("execute.capture", rpc:: ExecFile::flag_throw | rpc::ExecFile::flag_expand_tilde | rpc::ExecFile::flag_capture);414 CMD2_EXECUTE ("execute.capture_nothrow", rpc:: ExecFile::flag_expand_tilde | rpc::ExecFile::flag_capture);412 CMD2_EXECUTE ("execute.raw_nothrow.bg", rpc::flag_background); 413 CMD2_EXECUTE ("execute.capture", rpc::flag_throw | rpc::flag_expand_tilde | rpc::flag_capture); 414 CMD2_EXECUTE ("execute.capture_nothrow", rpc::flag_expand_tilde | rpc::flag_capture); 415 415 416 416 CMD2_ANY_LIST ("log.open_file", tr1::bind(&apply_log_open_file, tr1::placeholders::_2)); 417 417 CMD2_ANY_LIST ("log.add_output", tr1::bind(&apply_log_add_output, tr1::placeholders::_2)); -
src/core/manager.h
typedef std::map<std::string, torrent::T 64 64 65 65 class View; 66 66 67 static const int create_start = 0x1; 68 static const int create_tied = 0x2; 69 static const int create_quiet = 0x4; 70 static const int create_raw_data = 0x8; 71 67 72 class Manager { 68 73 public: 69 74 typedef DownloadList::iterator DListItr; … … public: 118 123 119 124 void handshake_log(const sockaddr* sa, int msg, int err, const torrent::HashString* hash); 120 125 121 static const int create_start = 0x1;122 static const int create_tied = 0x2;123 static const int create_quiet = 0x4;124 static const int create_raw_data = 0x8;125 126 126 typedef std::vector<std::string> command_list_type; 127 127 128 128 // Temporary, find a better place for this. -
src/rpc/exec_file.h
41 41 42 42 namespace rpc { 43 43 44 const unsigned int max_args = 128; 45 const unsigned int buffer_size = 4096; 46 47 const int flag_expand_tilde = 0x1; 48 const int flag_throw = 0x2; 49 const int flag_capture = 0x4; 50 const int flag_background = 0x8; 51 44 52 class ExecFile { 45 53 public: 46 static const unsigned int max_args = 128;47 static const unsigned int buffer_size = 4096;48 49 static const int flag_expand_tilde = 0x1;50 static const int flag_throw = 0x2;51 static const int flag_capture = 0x4;52 static const int flag_background = 0x8;53 54 54 55 ExecFile() : m_logFd(-1) {} 55 56 -
src/rpc/object_storage.h
struct object_storage_node { 58 58 59 59 typedef std::unordered_map<fixed_key_type<64>, object_storage_node, hash_fixed_key_type> object_storage_base_type; 60 60 61 static const unsigned int flag_generic_type = 0x1; 62 static const unsigned int flag_bool_type = 0x2; 63 static const unsigned int flag_value_type = 0x3; 64 static const unsigned int flag_string_type = 0x4; 65 static const unsigned int flag_list_type = 0x5; 66 static const unsigned int flag_function_type = 0x6; 67 static const unsigned int flag_multi_type = 0x7; 68 69 static const unsigned int mask_type = 0xf; 70 71 static const unsigned int flag_constant = 0x10; 72 static const unsigned int flag_static = 0x20; 73 static const unsigned int flag_private = 0x40; 74 static const unsigned int flag_rlookup = 0x80; 75 61 76 class object_storage : private object_storage_base_type { 62 77 public: 63 78 // Should really change rlookup_type into a set with pair values. … … public: 90 105 using base_type::find; 91 106 using base_type::erase; 92 107 93 static const unsigned int flag_generic_type = 0x1;94 static const unsigned int flag_bool_type = 0x2;95 static const unsigned int flag_value_type = 0x3;96 static const unsigned int flag_string_type = 0x4;97 static const unsigned int flag_list_type = 0x5;98 static const unsigned int flag_function_type = 0x6;99 static const unsigned int flag_multi_type = 0x7;100 101 static const unsigned int mask_type = 0xf;102 103 static const unsigned int flag_constant = 0x10;104 static const unsigned int flag_static = 0x20;105 static const unsigned int flag_private = 0x40;106 static const unsigned int flag_rlookup = 0x80;107 108 108 static const size_t key_size = key_type::max_size; 109 109 110 110 local_iterator find_local(const torrent::raw_string& key); -
src/ui/download_list.cc
DownloadList::receive_exit_input(Input t 304 304 if (input->str().empty()) 305 305 break; 306 306 307 control->core()->try_create_download_expand(input->str(), type == INPUT_LOAD_DEFAULT ? core:: Manager::create_start : 0);307 control->core()->try_create_download_expand(input->str(), type == INPUT_LOAD_DEFAULT ? core::create_start : 0); 308 308 break; 309 309 310 310 case INPUT_CHANGE_DIRECTORY: