Rizin
unix-like reverse engineering framework and cli tools
|
#include "rz_config.h"
Go to the source code of this file.
Definition at line 193 of file config.c.
References rz_str_casecmp(), and s.
Referenced by rz_config_set().
|
static |
Definition at line 555 of file config.c.
References k, rz_config_node_get(), rz_config_set(), and v.
Referenced by rz_config_unserialize().
Appends the given node to the config cfg
.
cfg | The configuration the node is appended. |
node | The node to append. |
Definition at line 362 of file config.c.
References rz_config_node_free(), rz_list_append(), RZ_LOG_WARN, and rz_return_val_if_fail.
Referenced by set_plugin_configs().
Definition at line 539 of file config.c.
References free(), key, rz_config_get(), rz_config_set(), and strdup().
Definition at line 507 of file config.c.
References c, rz_config_t::lock, rz_config_node_t::name, rz_config_t::nodes, NULL, rz_config_new(), rz_config_node_clone(), rz_list_append(), and rz_config_t::user.
Referenced by rz_core_rtr_http_run().
RZ_API const char* rz_config_desc | ( | RzConfig * | cfg, |
RZ_NONNULL const char * | name, | ||
RZ_NULLABLE const char * | desc | ||
) |
Definition at line 377 of file config.c.
References desc, NULL, rz_config_node_desc(), rz_config_node_get(), rz_return_val_if_fail, and RZ_STR_ISNOTEMPTY.
Referenced by rz_core_config_init().
RZ_API bool rz_config_eval | ( | RZ_NONNULL RzConfig * | cfg, |
RZ_NONNULL const char * | str | ||
) |
Sets the configuration variable and its value passed as argument.
cfg | reference to RzConfig |
str | reference the configuration variable string (eg, 'asm.arch=x86') |
Definition at line 575 of file config.c.
References free(), rz_config_set(), rz_return_val_if_fail, rz_str_trim_dup(), cmd_descs_generate::str, and value.
Referenced by rz_diff_load_file_with_core(), rz_main_rizin(), and rz_main_rz_sign().
Definition at line 523 of file config.c.
References rz_list_t::free, free(), rz_config_t::ht, rz_config_t::nodes, rz_config_node_free(), and rz_list_free().
Referenced by rz_core_fini(), and rz_core_rtr_http_run().
Returns the value of the config variable of name
as a string
Definition at line 75 of file config.c.
References rz_config_node_t::getter, NULL, rz_config_node_get(), rz_config_node_is_bool(), RZ_LOG_DEBUG, rz_return_val_if_fail, rz_str_bool(), rz_str_is_true(), RZ_STR_ISNOTEMPTY, rz_config_t::user, and rz_config_node_t::value.
Referenced by __cons_cb_fkey(), __core_analysis_fcn(), __core_cmd_search_asm_infinite(), __init_menu_disasm_asm_settings_layout(), __init_menu_disasm_settings_layout(), __init_menu_screen_settings_layout(), __panels_process(), _CbInRangeSearchV(), agraph_print(), can_emulate_metadata(), cb_analysis_arch(), cb_asmarch(), cb_asmbits(), cb_asmcpu(), cb_asmos(), cb_asmplatform(), cb_cfgdebug(), cfgget(), cmd_pCd(), cmd_pCD(), cmd_print_format(), convert_dot_to_image(), core_analysis_graph_construct_nodes(), core_bin_file_print(), core_esil_init(), core_file_do_load_for_debug(), core_walk_function_blocks(), cursor_nextrow(), cursor_prevrow(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), do_asm_search(), dot_trace_traverse(), ds_init(), ds_print_data_type(), ds_print_fcn_name(), ds_print_ptr(), ds_print_relocs(), ds_print_str(), ds_show_flags(), ds_show_functions(), func_walk_blocks(), get_bits_comment(), getcommapath(), GetHeapGlobalsOffset(), graph_construct_nodes(), http_logf(), initialize_stack(), initializeEsil(), is_apple_target(), loadSystemPlugins(), mipsTweak(), myregwrite(), objc_analyze(), on_fcn_delete(), on_fcn_new(), on_fcn_rename(), parse_format(), parse_tmp_evals(), pr_bb(), print_graph_dot(), readline_callback(), reloc_set_flag(), rz_cmd_debug(), rz_cmd_info_pdb_download_handler(), rz_cmd_search(), rz_config_bump(), rz_config_hold_s(), rz_core_agraph_print_ascii(), rz_core_agraph_print_dot(), rz_core_agraph_print_interactive(), rz_core_analysis_callgraph(), rz_core_analysis_cc_init(), rz_core_analysis_esil_default(), rz_core_analysis_esil_init_mem(), rz_core_analysis_everything(), rz_core_analysis_fcn_name(), rz_core_analysis_function_until(), rz_core_analysis_graph(), rz_core_analysis_resolve_golang_strings(), rz_core_analysis_sigdb_apply(), rz_core_analysis_sigdb_list(), rz_core_analysis_type_init(), rz_core_analysis_value_pointers(), rz_core_bin_apply_symbols(), rz_core_bin_load(), rz_core_bin_pdb_get_filename(), rz_core_bin_relocs_print(), rz_core_cmd_foreach(), rz_core_cmd_subst_i(), rz_core_debug_breakpoint_hit(), rz_core_debug_syscall_hit(), rz_core_diff_show_function(), rz_core_disasm_pde(), rz_core_editor(), rz_core_egg_setup(), rz_core_file_loadlib(), rz_core_file_open(), rz_core_flirt_convert_file(), rz_core_flirt_create_file(), rz_core_fortune_get_random(), rz_core_fortune_list(), rz_core_get_boundaries_prot(), rz_core_graph_print(), rz_core_hack(), rz_core_hint_begin(), rz_core_magic_at(), rz_core_print_function_disasm_json(), rz_core_rtr_gdb_run(), rz_core_rtr_http_run(), rz_core_rtr_http_stop(), rz_core_run_script(), rz_core_search_preludes(), rz_core_search_rop(), rz_core_seek_next(), rz_core_seek_prev(), rz_core_serve(), rz_core_setup_debugger(), rz_core_sysenv_begin(), rz_core_visual(), rz_core_visual_cmd(), rz_core_visual_config_hud(), rz_core_visual_graph(), rz_core_visual_hud(), rz_core_visual_panels_root(), rz_core_visual_title(), rz_core_visual_xrefs(), rz_eval_editor_handler(), rz_eval_getset_handler(), rz_flirt_scan_handler(), rz_main_rizin(), rz_main_rz_bin(), rz_project_save_handler(), rz_seek_next_handler(), rz_seek_prev_handler(), rz_seek_search(), rz_types_open_file(), set_profile_string(), set_prompt(), set_tmp_arch(), set_tmp_bits(), step_until_inst(), symbols_print(), system_exec(), update_asmcpu_options(), visual_nkey(), and visual_refresh().
RZ_API bool rz_config_get_b | ( | RzConfig * | cfg, |
RZ_NONNULL const char * | name | ||
) |
Reads the value of the config variable of name
only and only if the variable is boolean. Returns false in case of the failure.
Definition at line 142 of file config.c.
References rz_config_node_get(), rz_config_node_is_bool(), RZ_LOG_DEBUG, rz_return_val_if_fail, rz_str_is_true(), RZ_STR_ISNOTEMPTY, and rz_config_node_t::value.
Referenced by __handle_print_rotate(), __init(), __init_almighty_db(), __insert_value(), __panels_process(), __panels_refresh(), __print_disassembly_cb(), __rotate_asmemu(), __set_breakpoints_on_cursor(), __watch_points_cb(), _CbInRangeAav(), analyze_function_at_flag(), basefind_create_pointer_map(), canWrite(), cb_asmarch(), cmd_print_bars(), core_analysis_graph_label(), core_file_do_load_for_debug(), debug_trace_calls(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), do_esil_search(), ds_build_op_str(), ds_init(), ds_newline(), ds_print_calls_hints(), ds_print_data_type(), ds_print_offset(), ds_print_relocs(), ds_show_flags(), ds_show_functions(), get_brks(), get_va_symbol(), hex_disasm_with_templates(), hex_set_pkt_info(), is_tcache(), meta_string_guess_add(), mipsTweak(), prompt_add_file(), prompt_add_offset(), prompt_add_section(), propagate_types_among_used_variables(), rotateAsmemu(), rz_analysis_function_add_recu_handler(), rz_analysis_function_analyze_args_handler(), rz_analyze_all_consecutive_functions_in_section_handler(), rz_analyze_all_functions_handler(), rz_analyze_symbols_entries_handler(), rz_cmd_debug_add_bp_handler(), rz_cmd_debug_add_bp_module_handler(), rz_cmd_debug_add_watchpoint_handler(), rz_cmd_disassemble_ropchain_handler(), rz_cmd_print(), rz_cmd_print_timestamp_hfs_handler(), rz_cmd_print_timestamp_ntfs_handler(), rz_cmd_print_timestamp_unix_handler(), rz_core_analysis_bytes(), rz_core_analysis_everything(), rz_core_analysis_il_step_with_events(), rz_core_analysis_refs(), rz_core_analysis_resolve_jumps(), rz_core_analysis_search_xrefs(), rz_core_analysis_sigdb_list(), rz_core_analysis_types_propagation(), rz_core_analysis_value_pointers(), rz_core_asm_bb_middle(), rz_core_bin_apply_classes(), rz_core_bin_apply_info(), rz_core_bin_apply_symbols(), rz_core_bin_basefind_print(), rz_core_bin_load(), rz_core_bin_options_init(), rz_core_debug_single_step_over(), rz_core_debug_step_over(), rz_core_debug_step_skip(), rz_core_diff_show(), rz_core_disasm_pde(), rz_core_disasm_pdi_with_buf(), rz_core_file_open(), rz_core_file_reopen(), rz_core_flirt_convert_file(), rz_core_flirt_create_file(), rz_core_get_boundaries_prot(), rz_core_io_file_open(), rz_core_notify_begin(), rz_core_notify_done(), rz_core_notify_error(), rz_core_print_disasm(), rz_core_print_scrollbar(), rz_core_print_scrollbar_bottom(), rz_core_prompt_loop(), rz_core_search_value_in_range(), rz_core_sym_name_init(), rz_core_sysenv_begin(), rz_core_visual(), rz_core_visual_bit_editor(), rz_core_visual_cmd(), rz_core_visual_disasm_down(), rz_core_visual_prompt(), rz_core_visual_prompt_input(), rz_core_visual_showcursor(), rz_core_visual_title(), rz_core_visual_toggle_hints(), rz_core_visual_xrefs(), rz_core_write_seq_at(), rz_heap_chunks_list(), rz_heap_resolve_main_arena(), rz_main_rizin(), rz_main_rz_bin(), rz_meta_string_wide16_handler(), rz_meta_string_wide32_handler(), rz_print_hexdump_hexl_common_handler(), rz_project_save_handler(), rz_write_debruijn_find_handler(), stackPrintCommand(), step_until_optype(), visual_comma(), and visual_responsive().
RZ_API ut64 rz_config_get_i | ( | RzConfig * | cfg, |
RZ_NONNULL const char * | name | ||
) |
Reads the value of the config variable of name
only and only if the variable is integer.
Definition at line 119 of file config.c.
References rz_config_node_t::getter, rz_config_node_t::i_value, rz_config_t::num, rz_config_node_get(), rz_num_math(), rz_return_val_if_fail, RZ_STR_ISNOTEMPTY, rz_config_t::user, ut64(), and rz_config_node_t::value.
Referenced by __call_visual_graph(), __check_if_mouse_x_on_edge(), __check_if_mouse_y_on_edge(), __core_analysis_fcn(), __core_visual_gogo(), __core_visual_print_command(), __create_new_canvas(), __direction_graph_cb(), __direction_hexdump_cb(), __direction_panels_cursor_cb(), __direction_stack_cb(), __handle_cursor_mode(), __init_panel_param(), __panels_check_stackbase(), __panels_process(), __prelude_cb_hit(), __print_stack_cb(), _analysis_calls(), _CbInRangeAav(), activateDieTime(), add_seek_history(), agraph_print(), agraph_refresh(), agraph_toggle_speed(), annotated_hexdump(), bin_dwarf(), cb_analysis_from(), cb_analysis_limits(), cb_asmos(), cfggeti(), check_changes(), check_function_modified(), cmd_aea(), cmd_analysis_esil(), cmd_analysis_graph(), cmd_analysis_trampoline(), cmd_p_minus_e(), cmd_pCd(), cmd_pCD(), cmd_pCx(), cmd_prc(), cmd_print_bars(), cmd_print_blocks(), cmd_print_pxA(), cmd_pxr(), config_visual_hit_i(), construct_rop_gadget(), core_analysis_bytes_desc(), core_analysis_bytes_esil(), core_analysis_bytes_size(), core_analysis_color_curr_node(), core_analysis_graph_construct_nodes(), core_analysis_graph_label(), core_bin_strings(), core_cmp_bits(), core_esil_init(), core_file_do_load_for_debug(), core_file_do_load_for_io_plugin(), core_perform_auto_analysis(), core_print_2bpp_tiles(), core_print_columns(), core_walk_function_blocks(), cursor_nextrow(), cursor_prevrow(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), disasm_strings(), disassemble_till_return_is_found(), do_asm_search(), do_debug_trace_calls(), do_esil_search(), do_handle_substitution_cmd(), do_syscall_search(), ds_init(), ds_print_data_type(), ds_print_esil_analysis_init(), ds_print_lines_left(), ds_print_offset(), ev_iowrite_cb(), find_autocomplete(), func_walk_blocks(), get_bbnodes(), get_bbupdate(), get_body(), get_esil_stack_name(), get_graph_string(), get_reg_color(), GetHeapGlobalsOffset(), handleMidFlags(), http_logf(), initializeEsil(), is_tcache(), mipsTweak(), mustSaveHistory(), num_callback(), objc_analyze(), open_core_file(), perform_mapped_file_yank(), pr_bb(), prevop_addr(), print_arena_stats(), print_color_node(), print_double_linked_list_bin(), print_double_linked_list_bin_graph(), print_heap_bin(), print_heap_fastbin(), print_rop(), prompt_add_offset(), readline_callback(), references_handler(), reloc_set_flag(), rizin_compare_words(), rop_classify_arithmetic(), rop_classify_arithmetic_const(), rop_classify_constant(), rop_classify_mov(), rop_classify_nops(), rotateAsmBits(), rotateAsmemu(), rotateColor(), rz_analysis_function_list_ascii_handler(), rz_analysis_functions_map_handler(), rz_cmd_debug(), rz_cmd_debug_list_maps_ascii_handler(), rz_cmd_disassemble_ropchain_handler(), rz_cmd_disassembly_all_possible_opcodes_handler(), rz_cmd_disassembly_all_possible_opcodes_treeview_handler(), rz_cmd_heap_chunks_print_handler(), rz_cmd_heap_tcache_print_handler(), rz_cmd_info_hashes_handler(), rz_cmd_info_pdb_download_handler(), rz_cmd_print(), rz_cmd_print_timestamp_hfs_handler(), rz_cmd_print_timestamp_unix_handler(), rz_cmd_search(), rz_config_hold_i(), rz_config_visual_hit_i(), rz_core_agraph_print_ascii(), rz_core_agraph_print_interactive(), rz_core_agraph_print_tiny(), rz_core_analysis_all(), rz_core_analysis_bbs_asciiart(), rz_core_analysis_bytes(), rz_core_analysis_callgraph(), rz_core_analysis_data(), rz_core_analysis_esil(), rz_core_analysis_esil_default(), rz_core_analysis_esil_emulate(), rz_core_analysis_everything(), rz_core_analysis_fcn(), rz_core_analysis_fcn_name(), rz_core_analysis_function_add(), rz_core_analysis_function_until(), rz_core_analysis_graph(), rz_core_analysis_graph_to(), rz_core_analysis_hasrefs_to_depth(), rz_core_analysis_optype_colorfor(), rz_core_analysis_paths(), rz_core_analysis_resolve_golang_strings(), rz_core_analysis_search(), rz_core_analysis_search_xrefs(), rz_core_analysis_sigdb_apply(), rz_core_analysis_value_pointers(), rz_core_bin_apply_dwarf(), rz_core_bin_basefind_print(), rz_core_bin_imports_print(), rz_core_bin_info_print(), rz_core_bin_load(), rz_core_bin_print_source_line_sample(), rz_core_bin_relocs_print(), rz_core_bin_whole_strings(), rz_core_clippy(), rz_core_cmd_pipe_old(), rz_core_cmd_subst_i(), rz_core_cmp_disasm_print(), rz_core_dbg_follow_seek_register(), rz_core_debug_bp_add_noreturn_func(), rz_core_debug_breakpoint_toggle(), rz_core_debug_esil(), rz_core_debug_step_over(), rz_core_debug_sync_bits(), rz_core_diff_show(), rz_core_disasm_instruction(), rz_core_disasm_pdi_with_buf(), rz_core_egg_setup(), rz_core_esil_step(), rz_core_extend_at(), rz_core_file_info_print(), rz_core_file_open(), rz_core_file_reopen(), rz_core_file_reopen_debug(), rz_core_file_reopen_remote_debug(), rz_core_flirt_convert_file(), rz_core_flirt_create_file(), rz_core_fortune_print_random(), rz_core_get_boundaries_prot(), rz_core_graph_print(), rz_core_help_vars_print(), rz_core_link_stroff(), rz_core_loadlibs(), rz_core_magic(), rz_core_magic_at(), rz_core_notify_begin(), rz_core_notify_done(), rz_core_notify_error(), rz_core_pdb_info_print(), rz_core_pdb_load_info(), rz_core_print_disasm_all(), rz_core_print_disasm_json(), rz_core_print_func_args(), rz_core_print_hexdump_or_hexdiff_str(), rz_core_print_scrollbar(), rz_core_rtr_add(), rz_core_rtr_cmd(), rz_core_rtr_cmds(), rz_core_rtr_gdb_cb(), rz_core_rtr_gdb_run(), rz_core_rtr_http_run(), rz_core_search_rop(), rz_core_seek_mark(), rz_core_serve(), rz_core_sysenv_begin(), rz_core_visual(), rz_core_visual_analysis(), rz_core_visual_analysis_refresh(), rz_core_visual_bit_editor(), rz_core_visual_cmd(), rz_core_visual_debugtraces(), rz_core_visual_disasm_down(), rz_core_visual_esil(), rz_core_visual_graph(), rz_core_visual_show_char(), rz_core_visual_title(), rz_core_visual_trackflags(), rz_core_write_at(), rz_core_write_value_at(), rz_core_write_value_inc_at(), rz_diff_graphs_files(), rz_flirt_scan_handler(), rz_heap_bin_content(), rz_heap_chunks_list(), rz_heap_tcache_content(), rz_heap_update_main_arena(), rz_main_rizin(), rz_main_rz_bin(), rz_open_binary_list_ascii_handler(), rz_open_maps_list_ascii_handler(), rz_print_hexdump_hexii_handler(), rz_regs_show_valgroup(), rz_seek_search(), rz_write_from_file_handler(), set_prompt(), set_tmp_bits(), show_analysis_classes(), show_class(), showcursor(), strings_print(), symbols_print(), type_match(), var_functions_show(), visual_refresh(), and visual_seek_animation().
Definition at line 476 of file config.c.
References cmp(), rz_config_t::lock, rz_config_t::nodes, and rz_list_sort().
Referenced by rz_asm_use(), and rz_core_config_init().
Definition at line 490 of file config.c.
References rz_config_t::ht, rz_config_t::lock, rz_config_t::nodes, NULL, rz_config_t::num, rz_config_node_free(), RZ_FREE, rz_list_newf(), RZ_NEW0, and rz_config_t::user.
Referenced by rz_config_clone(), and rz_core_config_init().
RZ_API RZ_OWN RzConfigNode* rz_config_node_clone | ( | RzConfigNode * | n | ) |
Definition at line 20 of file config.c.
References rz_config_node_t::desc, rz_config_node_t::flags, rz_config_node_t::i_value, n, rz_config_node_t::name, NULL, rz_config_node_t::options, rz_list_clone(), RZ_NEW0, rz_return_val_if_fail, rz_config_node_t::setter, strdup(), and rz_config_node_t::value.
Referenced by rz_config_clone(), and set_plugin_configs().
RZ_API const char* rz_config_node_desc | ( | RzConfigNode * | node, |
RZ_NULLABLE const char * | desc | ||
) |
Definition at line 383 of file config.c.
References desc, rz_config_node_t::desc, free(), NULL, rz_return_val_if_fail, and strdup().
Referenced by rz_config_desc().
RZ_API void rz_config_node_free | ( | RZ_NULLABLE void * | n | ) |
Definition at line 36 of file config.c.
References rz_config_node_t::desc, free(), n, rz_config_node_t::name, rz_config_node_t::options, rz_list_free(), and rz_config_node_t::value.
Referenced by rz_config_add_node(), rz_config_free(), and rz_config_new().
RZ_API RZ_BORROW RzConfigNode* rz_config_node_get | ( | RzConfig * | cfg, |
RZ_NONNULL const char * | name | ||
) |
Definition at line 48 of file config.c.
References rz_config_t::ht, NULL, rz_return_val_if_fail, and RZ_STR_ISNOTEMPTY.
Referenced by autocmplt_cmd_arg_eval_full(), cb_asmarch(), cb_asmos(), config_visual_hit(), config_visual_hit_i(), find_e_opts(), load_config_cb(), rz_config_desc(), rz_config_get(), rz_config_get_b(), rz_config_get_i(), rz_config_readonly(), rz_config_rm(), rz_config_set(), rz_config_set_b(), rz_config_set_getter(), rz_config_set_i(), rz_config_set_setter(), rz_config_toggle(), rz_config_visual_hit_i(), rz_core_config_init(), rz_eval_type_handler(), and show_config_options().
RZ_API RZ_OWN RzConfigNode* rz_config_node_new | ( | RZ_NONNULL const char * | name, |
RZ_NONNULL const char * | value | ||
) |
Definition at line 6 of file config.c.
References CN_RW, CN_STR, rz_config_node_t::flags, rz_config_node_t::i_value, rz_config_node_t::name, NULL, rz_config_node_t::options, rz_list_new(), RZ_NEW0, rz_num_get(), rz_return_val_if_fail, RZ_STR_ISNOTEMPTY, strdup(), value, and rz_config_node_t::value.
Referenced by rz_config_set(), rz_config_set_b(), and rz_config_set_i().
RZ_API const char* rz_config_node_type | ( | RzConfigNode * | node | ) |
Definition at line 155 of file config.c.
References rz_config_node_is_bool(), rz_config_node_is_int(), rz_config_node_is_str(), rz_return_val_if_fail, and rz_config_node_t::value.
Referenced by config_print_node(), and rz_eval_type_handler().
RZ_API void rz_config_node_value_format_i | ( | char * | buf, |
size_t | buf_size, | ||
const ut64 | i, | ||
RZ_NULLABLE RzConfigNode * | node | ||
) |
Definition at line 403 of file config.c.
References buf_size, i, PFMT64d, PFMT64x, rz_config_node_is_bool(), rz_str_bool(), rz_str_ncpy(), and snprintf.
Referenced by cb_color_getter(), and rz_config_set_i().
Definition at line 481 of file config.c.
References CN_RO, key, n, and rz_config_node_get().
Referenced by rz_eval_readonly_handler().
RZ_API bool rz_config_rm | ( | RzConfig * | cfg, |
RZ_NONNULL const char * | name | ||
) |
Definition at line 392 of file config.c.
References rz_config_t::ht, rz_config_node_t::name, rz_config_t::nodes, NULL, rz_config_node_get(), rz_list_delete_data(), rz_return_val_if_fail, and RZ_STR_ISNOTEMPTY.
Referenced by unset_plugins_config().
RZ_API void rz_config_serialize | ( | RZ_NONNULL RzConfig * | config, |
RZ_NONNULL Sdb * | db | ||
) |
Definition at line 547 of file config.c.
References rz_config_node_t::name, sdb_set(), and rz_config_node_t::value.
Referenced by config_path(), and rz_core_sysenv_begin().
RZ_API RzConfigNode* rz_config_set | ( | RzConfig * | cfg, |
RZ_NONNULL const char * | name, | ||
const char * | value | ||
) |
Writes the string value
in the config variable of name
.
Definition at line 267 of file config.c.
References __is_true_or_false(), b, CN_BOOL, CN_INT, eprintf, rz_config_node_t::flags, free(), rz_config_t::ht, rz_config_node_t::i_value, IS_DIGIT, rz_config_t::lock, rz_config_node_t::name, rz_config_t::nodes, NULL, rz_config_t::num, rz_config_node_get(), rz_config_node_is_bool(), rz_config_node_is_ro(), rz_config_node_new(), rz_list_append(), rz_num_get(), rz_num_math(), rz_return_val_if_fail, rz_str_bool(), rz_str_is_true(), RZ_STR_ISNOTEMPTY, rz_config_node_t::setter, strdup(), rz_config_t::user, ut64(), UT64_MAX, value, and rz_config_node_t::value.
Referenced by __config_value_cb(), __handle_mouse_on_panel(), __rotate_asmemu(), __setsegoff(), analysis_emul_init(), applyDisMode(), cb_analysis_strings(), cb_asmarch(), cb_asmcpu(), cb_cfgdebug(), cb_dbgbackend(), cb_emustr(), cb_filepath(), cfgset(), cmd_pCd(), cmd_pCD(), cmd_Quit(), config_visual_hit(), core_analysis_graph_label(), core_esil_init(), core_walk_function_blocks(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), ds_print_esil_analysis(), func_walk_blocks(), initializeEsil(), load_config_cb(), loadGP(), parse_tmp_evals(), pr_bb(), rotateAsmemu(), rz_cmd_debug_handler_set_handler(), rz_cmd_info_purge_string_handler(), rz_cmd_panels(), rz_config_bump(), rz_config_eval(), rz_config_hold_restore(), rz_config_set_cb(), rz_core_analysis_everything(), rz_core_analysis_function_until(), rz_core_analysis_value_pointers(), rz_core_bin_apply_all_info(), rz_core_bin_apply_config(), rz_core_bin_load(), rz_core_cmd_foreach(), rz_core_cmd_subst_i(), rz_core_config_init(), rz_core_file_open(), rz_core_hint_begin(), rz_core_init(), rz_core_print_function_disasm_json(), rz_core_rtr_http_run(), rz_core_run_script(), rz_core_seek_arch_bits(), rz_core_set_asm_configs(), rz_core_setup_debugger(), rz_core_visual_applyDisMode(), rz_core_visual_applyHexMode(), rz_core_visual_cmd(), rz_core_visual_config_hud(), rz_core_visual_graph(), rz_core_visual_toggle_decompiler_disasm(), rz_core_visual_view_graph(), rz_core_visual_xrefs(), rz_diff_load_file_with_core(), rz_eval_editor_handler(), rz_eval_getset_handler(), rz_main_rizin(), rz_main_rz_bin(), rz_plugins_debug_print_handler(), rz_project_load(), rz_project_save_file(), rz_reopen_debug_rzrun_handler(), set_profile_string(), set_tmp_arch(), setab(), and setdiff().
RZ_API RzConfigNode* rz_config_set_b | ( | RzConfig * | cfg, |
RZ_NONNULL const char * | name, | ||
bool | value | ||
) |
Writes the boolean value
in the config variable of name
only and only if the variable is boolean.
Definition at line 201 of file config.c.
References CN_BOOL, CN_RW, rz_config_node_t::flags, free(), rz_config_t::ht, rz_config_node_t::i_value, rz_config_t::lock, rz_config_node_t::name, rz_config_t::nodes, NULL, rz_config_node_get(), rz_config_node_is_bool(), rz_config_node_is_ro(), rz_config_node_new(), rz_list_append(), RZ_LOG_DEBUG, RZ_LOG_ERROR, rz_return_val_if_fail, rz_str_bool(), RZ_STR_ISNOTEMPTY, rz_config_node_t::setter, strdup(), rz_config_t::user, ut64(), UT64_MAX, value, and rz_config_node_t::value.
Referenced by __insert_value(), __io_cache_off_cb(), __io_cache_on_cb(), __panels_refresh(), cb_cfgdebug(), cb_iopcache(), cb_iopcacheread(), cb_iopcachewrite(), rz_analyze_all_consecutive_functions_in_section_handler(), rz_analyze_all_functions_handler(), rz_core_analysis_esil_init_mem(), rz_core_analysis_everything(), rz_core_analysis_types_propagation(), rz_core_bin_load(), rz_core_debug_single_step_over(), rz_core_file_reopen_debug(), rz_core_file_reopen_remote_debug(), rz_core_io_file_open(), rz_core_visual_toggle_hints(), rz_core_visual_xrefs(), rz_diff_load_file_with_core(), rz_main_rz_sign(), and visual_responsive().
RZ_API RzConfigNode* rz_config_set_cb | ( | RzConfig * | cfg, |
const char * | name, | ||
const char * | value, | ||
RzConfigCallback | cb | ||
) |
Definition at line 173 of file config.c.
References cb, NULL, rz_config_set(), rz_config_node_t::setter, rz_config_t::user, and value.
Referenced by rz_core_config_init().
RZ_API bool rz_config_set_getter | ( | RzConfig * | cfg, |
const char * | key, | ||
RzConfigCallback | cb | ||
) |
Definition at line 53 of file config.c.
References cb, rz_config_node_t::getter, key, rz_config_node_get(), and rz_return_val_if_fail.
Referenced by rz_core_config_init().
RZ_API RzConfigNode* rz_config_set_i | ( | RzConfig * | cfg, |
RZ_NONNULL const char * | name, | ||
const ut64 | i | ||
) |
Writes the integer value
in the config variable of name
only and only if the variable is integer.
Definition at line 419 of file config.c.
References CN_INT, CN_RW, rz_config_node_t::flags, free(), rz_config_t::ht, i, rz_config_node_t::i_value, rz_config_t::lock, rz_config_node_t::name, rz_config_t::nodes, NULL, rz_config_node_get(), rz_config_node_is_ro(), rz_config_node_new(), rz_config_node_value_format_i(), rz_list_append(), RZ_LOG_ERROR, rz_return_val_if_fail, rz_config_node_t::setter, strdup(), rz_config_t::user, ut64(), and rz_config_node_t::value.
Referenced by __call_visual_graph(), __direction_stack_cb(), __handle_cursor_mode(), __panels_process(), _analysis_calls(), agraph_print(), analysis_emul_init(), cb_analysis_cpu(), cb_asmarch(), cb_asmbits(), cfgseti(), cmd_analysis_graph(), cmd_pCx(), config_visual_hit(), config_visual_hit_i(), core_analysis_graph_construct_nodes(), core_analysis_graph_label(), core_file_do_load_for_debug(), core_walk_function_blocks(), cursor_nextrow(), cursor_prevrow(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), disasm_strings(), do_esil_search(), do_handle_substitution_cmd(), ds_disassemble(), func_walk_blocks(), get_body(), get_graph_string(), graph_construct_nodes(), handle_tmp_desc(), loadGP(), objc_analyze(), pr_bb(), references_handler(), rotateColor(), rz_analyze_cycles_handler(), rz_cmd_print(), rz_cmd_search(), rz_config_hold_restore(), rz_config_set_i_cb(), rz_config_toggle(), rz_config_visual_hit_i(), rz_core_agraph_print(), rz_core_agraph_print_interactive(), rz_core_agraph_print_tiny(), rz_core_analysis_esil_trace_start(), rz_core_analysis_esil_trace_stop(), rz_core_analysis_everything(), rz_core_analysis_function_until(), rz_core_analysis_graph(), rz_core_analysis_value_pointers(), rz_core_bin_apply_all_info(), rz_core_bin_apply_config(), rz_core_bin_load(), rz_core_cmd_pipe_old(), rz_core_cmd_subst_i(), rz_core_config_init(), rz_core_debug_attach(), rz_core_debug_sync_bits(), rz_core_disasm_pde(), rz_core_disasm_pdi_with_buf(), rz_core_file_open(), rz_core_file_reopen(), rz_core_file_reopen_debug(), rz_core_file_reopen_remote_debug(), rz_core_graph_print(), rz_core_init(), rz_core_link_stroff(), rz_core_print_bb_custom(), rz_core_print_function_disasm_json(), rz_core_rtr_http_run(), rz_core_seek_arch_bits(), rz_core_serve(), rz_core_set_asm_configs(), rz_core_setup_debugger(), rz_core_visual(), rz_core_visual_analysis(), rz_core_visual_cmd(), rz_core_visual_debugtraces(), rz_core_visual_graph(), rz_diff_load_file_with_core(), rz_heap_resolve_main_arena(), rz_main_rizin(), rz_main_rz_sign(), rz_seek_search(), set_color_default(), set_tmp_bits(), setab(), setprintmode(), and visual_responsive().
RZ_API RzConfigNode* rz_config_set_i_cb | ( | RzConfig * | cfg, |
const char * | name, | ||
int | ivalue, | ||
RzConfigCallback | cb | ||
) |
Definition at line 183 of file config.c.
References cb, NULL, rz_config_set_i(), rz_config_node_t::setter, and rz_config_t::user.
RZ_API bool rz_config_set_setter | ( | RzConfig * | cfg, |
const char * | key, | ||
RzConfigCallback | cb | ||
) |
Definition at line 63 of file config.c.
References cb, key, rz_config_node_get(), and rz_config_node_t::setter.
RZ_API bool rz_config_toggle | ( | RzConfig * | cfg, |
RZ_NONNULL const char * | name | ||
) |
Reads the value of the config variable of name
only and only if the variable is boolean, then tries to write back the inverted value. Returns true in case of success.
Definition at line 97 of file config.c.
References rz_config_node_t::i_value, NULL, rz_config_node_get(), rz_config_node_is_bool(), rz_config_node_is_ro(), rz_config_set_i(), RZ_LOG_DEBUG, rz_return_val_if_fail, and RZ_STR_ISNOTEMPTY.
Referenced by __config_toggle_cb(), __handle_print_rotate(), rz_core_visual_analysis_classes(), rz_core_visual_classes(), rz_core_visual_cmd(), rz_core_visual_graph(), rz_core_visual_toggle_hints(), rz_core_visual_trackflags(), and rz_eval_bool_invert_handler().
RZ_API bool rz_config_unserialize | ( | RZ_NONNULL RzConfig * | config, |
RZ_NONNULL Sdb * | db, | ||
RZ_NULLABLE char ** | err | ||
) |
Definition at line 564 of file config.c.
References load_config_cb(), and sdb_foreach().
Referenced by rz_main_rz_bin().
Definition at line 532 of file config.c.
References delta, rz_config_get_i(), rz_config_node_get(), rz_config_node_is_int(), and rz_config_set_i().