Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_config.h>
Go to the source code of this file.
Functions | |
static void | rz_config_hold_char_free (RzConfigHoldChar *hc) |
static void | rz_config_hold_num_free (RzConfigHoldNum *hc) |
static int | key_cmp_hold_s (const void *a, const void *b) |
static int | key_cmp_hold_i (const void *a, const void *b) |
RZ_API bool | rz_config_hold_s (RzConfigHold *h,...) |
Save the current values of a list of config options that have string values. More... | |
RZ_API bool | rz_config_hold_i (RzConfigHold *h,...) |
Save the current values of a list of config options that have integer values. More... | |
RZ_API RzConfigHold * | rz_config_hold_new (RzConfig *cfg) |
Create an opaque object to save/restore some configuration options. More... | |
RZ_API void | rz_config_hold_restore (RzConfigHold *h) |
Restore whatever config options were previously saved in h . More... | |
RZ_API void | rz_config_hold_free (RzConfigHold *h) |
Free a RzConfigHold object h . More... | |
Definition at line 23 of file hold.c.
References a, b, and rz_config_hold_num_t::key.
Referenced by rz_config_hold_i().
Definition at line 17 of file hold.c.
References a, b, and rz_config_hold_char_t::key.
Referenced by rz_config_hold_s().
|
static |
Definition at line 6 of file hold.c.
References free(), rz_config_hold_char_t::key, and rz_config_hold_char_t::value.
Referenced by rz_config_hold_s().
RZ_API void rz_config_hold_free | ( | RzConfigHold * | h | ) |
Free a RzConfigHold object h
.
h | Reference to RzConfigHold |
Definition at line 152 of file hold.c.
References h, RZ_FREE, and rz_list_free().
Referenced by analysis_emul_restore(), cmd_analysis_graph(), core_analysis_graph_construct_nodes(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), ds_print_esil_analysis(), get_body(), graph_construct_nodes(), rz_analyze_cycles_handler(), rz_cmd_heap_chunks_print_handler(), rz_cmd_print(), rz_core_analysis_graph(), rz_core_analysis_types_propagation(), rz_core_disasm_pde(), rz_core_print_bb_custom(), rz_core_print_disasm(), rz_core_visual_graph(), and rz_core_visual_toggle_decompiler_disasm().
RZ_API bool rz_config_hold_i | ( | RzConfigHold * | h, |
... | |||
) |
Save the current values of a list of config options that have integer values.
Get the current values of a list of config variables (terminated by NULL) and save them in the RzConfigHold object h
. rz_config_get_i
is used to retrieve the current config values.
h | Reference to RzConfigHold instance |
... | List of config variables to save, terminated by NULL. |
Definition at line 81 of file hold.c.
References h, rz_config_hold_num_t::key, key, key_cmp_hold_i(), rz_config_get_i(), rz_config_hold_num_free(), rz_list_append(), rz_list_find(), rz_list_newf(), RZ_NEW0, strdup(), and rz_config_hold_num_t::value.
Referenced by analysis_emul_init(), cmd_analysis_graph(), core_analysis_graph_construct_nodes(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), ds_print_esil_analysis(), get_body(), graph_construct_nodes(), rz_analyze_cycles_handler(), rz_cmd_print(), rz_core_analysis_graph(), rz_core_analysis_types_propagation(), rz_core_disasm_pde(), rz_core_print_bb_custom(), rz_core_print_disasm(), and rz_core_visual_graph().
RZ_API RzConfigHold* rz_config_hold_new | ( | RzConfig * | cfg | ) |
Create an opaque object to save/restore some configuration options.
cfg | RzConfig reference |
Definition at line 116 of file hold.c.
References rz_config_hold_t::cfg, NULL, and RZ_NEW0.
Referenced by cmd_analysis_graph(), core_analysis_graph_construct_nodes(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), ds_print_esil_analysis(), get_body(), graph_construct_nodes(), rz_analyze_cycles_handler(), rz_cmd_heap_chunks_print_handler(), rz_cmd_print(), rz_core_analysis_graph(), rz_core_analysis_type_match(), rz_core_analysis_types_propagation(), rz_core_disasm_pde(), rz_core_print_bb_custom(), rz_core_print_disasm(), rz_core_visual_graph(), and rz_core_visual_toggle_decompiler_disasm().
|
static |
Definition at line 12 of file hold.c.
References free(), and rz_config_hold_num_t::key.
Referenced by rz_config_hold_i().
RZ_API void rz_config_hold_restore | ( | RzConfigHold * | h | ) |
Restore whatever config options were previously saved in h
.
h | Reference to RzConfigHold |
Definition at line 132 of file hold.c.
References h, rz_config_hold_num_t::key, rz_config_hold_char_t::key, rz_config_set(), rz_config_set_i(), rz_config_hold_num_t::value, and rz_config_hold_char_t::value.
Referenced by analysis_emul_restore(), cmd_analysis_graph(), DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), ds_print_esil_analysis(), get_body(), graph_construct_nodes(), rz_analyze_cycles_handler(), rz_cmd_heap_chunks_print_handler(), rz_cmd_print(), rz_core_analysis_graph(), rz_core_analysis_types_propagation(), rz_core_disasm_pde(), rz_core_print_bb_custom(), rz_core_print_disasm(), rz_core_visual_graph(), and rz_core_visual_toggle_decompiler_disasm().
RZ_API bool rz_config_hold_s | ( | RzConfigHold * | h, |
... | |||
) |
Save the current values of a list of config options that have string values.
Get the current values of a list of config variables (terminated by NULL) and save them in the RzConfigHold object h
. rz_config_get
is used to retrieve the current config values.
h | Reference to RzConfigHold instance |
... | List of config variables to save, terminated by NULL. |
Definition at line 40 of file hold.c.
References h, rz_config_hold_char_t::key, key, key_cmp_hold_s(), rz_config_get(), rz_config_hold_char_free(), rz_list_append(), rz_list_find(), rz_list_newf(), RZ_NEW0, strdup(), val, and rz_config_hold_char_t::value.
Referenced by DEFINE_HANDLE_TS_FCN_AND_SYMBOL(), rz_core_print_disasm(), and rz_core_visual_toggle_decompiler_disasm().