Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_core.h>
Go to the source code of this file.
Classes | |
struct | RzCoreVisualViewGraph |
struct | RzCoreVisualViewGraphItem |
Macros | |
#define | SORT_ADDRESS 0 |
#define | SORT_NAME 1 |
Functions | |
RZ_API char * | rz_str_widget_list (void *user, RzList *list, int rows, int cur, PrintItemCallback cb) |
static char * | print_item (void *_core, void *_item, bool selected) |
static RzList * | __xrefs (RzCore *core, ut64 addr) |
static RzList * | __refs (RzCore *core, ut64 addr) |
static RzList * | __fcns (RzCore *core) |
static void | __seek_cursor (RzCoreVisualViewGraph *status) |
static int | cmpaddr (const void *_a, const void *_b) |
static int | cmpname (const void *_a, const void *_b) |
static void | __sort (RzCoreVisualViewGraph *status, RzList *list) |
static void | __toggleSort (RzCoreVisualViewGraph *status) |
static void | __reset_status (RzCoreVisualViewGraph *status) |
static void | __sync_status_with_cursor (RzCoreVisualViewGraph *status) |
RZ_API int | __core_visual_view_graph_update (RzCore *core, RzCoreVisualViewGraph *status) |
RZ_API int | rz_core_visual_view_graph (RzCore *core) |
#define SORT_ADDRESS 0 |
Definition at line 5 of file vmenus_graph.c.
#define SORT_NAME 1 |
Definition at line 6 of file vmenus_graph.c.
RZ_API int __core_visual_view_graph_update | ( | RzCore * | core, |
RzCoreVisualViewGraph * | status | ||
) |
Definition at line 216 of file vmenus_graph.c.
References free(), h, output, PFMT64x, print_item(), rz_cons_clear00(), rz_cons_flush(), rz_cons_get_size(), rz_cons_strcat_at(), rz_core_cmd_strf(), rz_str_newf(), rz_str_widget_list(), status, and w.
Referenced by rz_core_visual_view_graph().
Definition at line 119 of file vmenus_graph.c.
References RzCoreVisualViewGraphItem::addr, rz_analysis_function_t::addr, rz_core_t::analysis, RzCoreVisualViewGraphItem::fcn, rz_analysis_t::fcns, free(), RzCoreVisualViewGraphItem::name, rz_analysis_function_t::name, r, rz_list_append(), rz_list_newf(), and RZ_NEW0.
Referenced by __reset_status().
Definition at line 92 of file vmenus_graph.c.
References addr, RzCoreVisualViewGraphItem::addr, rz_core_t::analysis, f, RzCoreVisualViewGraphItem::fcn, rz_core_t::flags, free(), RzCoreVisualViewGraphItem::name, rz_analysis_function_t::name, NULL, r, rz_analysis_function_get_xrefs_from(), rz_analysis_get_fcn_in(), RZ_ANALYSIS_XREF_TYPE_CALL, rz_flag_get_at(), rz_list_append(), rz_list_newf(), RZ_NEW0, rz_analysis_ref_t::to, and rz_analysis_ref_t::type.
Referenced by __sync_status_with_cursor().
|
static |
Definition at line 182 of file vmenus_graph.c.
References __fcns(), __seek_cursor(), __sort(), rz_analysis_get_function_at(), and status.
Referenced by __sync_status_with_cursor(), and rz_core_visual_view_graph().
|
static |
Definition at line 133 of file vmenus_graph.c.
References RzCoreVisualViewGraphItem::addr, status, and ut64().
Referenced by __reset_status(), and __toggleSort().
|
static |
Definition at line 166 of file vmenus_graph.c.
References cmp(), cmpaddr(), cmpname(), list(), rz_list_sort(), rz_return_if_fail, SORT_ADDRESS, and status.
Referenced by __reset_status(), __sync_status_with_cursor(), and __toggleSort().
|
static |
Definition at line 193 of file vmenus_graph.c.
References __refs(), __reset_status(), __sort(), __xrefs(), RzCoreVisualViewGraphItem::addr, RzCoreVisualViewGraphItem::fcn, free(), rz_list_free(), rz_list_get_n(), rz_list_newf(), and status.
Referenced by rz_core_visual_view_graph().
|
static |
Definition at line 173 of file vmenus_graph.c.
References __seek_cursor(), __sort(), rz_return_if_fail, SORT_ADDRESS, SORT_NAME, and status.
Referenced by rz_core_visual_view_graph().
Definition at line 69 of file vmenus_graph.c.
References addr, RzCoreVisualViewGraphItem::addr, rz_core_t::analysis, f, RzCoreVisualViewGraphItem::fcn, rz_core_t::flags, free(), rz_analysis_ref_t::from, RzCoreVisualViewGraphItem::name, rz_analysis_function_t::name, NULL, r, rz_analysis_get_fcn_in(), RZ_ANALYSIS_XREF_TYPE_CALL, rz_analysis_xrefs_get_to(), rz_flag_get_at(), rz_list_append(), rz_list_newf(), RZ_NEW0, and rz_analysis_ref_t::type.
Referenced by __sync_status_with_cursor().
|
static |
Definition at line 56 of file vmenus_graph.c.
References RzCoreVisualViewGraphItem::addr, rz_analysis_function_t::addr, delta, RzCoreVisualViewGraphItem::fcn, RzCoreVisualViewGraphItem::name, PFMT64x, rz_str_newf(), and st64.
Referenced by __core_visual_view_graph_update().
Definition at line 255 of file vmenus_graph.c.
References __core_visual_view_graph_update(), __reset_status(), __sync_status_with_cursor(), __toggleSort(), RzCoreVisualViewGraphItem::addr, rz_analysis_function_t::addr, rz_core_t::analysis, cmd, rz_core_t::config, length, NULL, rz_analysis_get_fcn_in(), rz_config_set(), rz_cons_any_key(), rz_cons_arrow_to_hjkl(), rz_cons_clear(), rz_cons_clear00(), rz_cons_fgets(), rz_cons_flush(), rz_cons_printf(), rz_cons_readchar(), rz_cons_set_raw(), rz_cons_show_cursor(), rz_core_cmd0(), rz_core_seek(), rz_core_visual_hudstuff(), rz_line_set_prompt(), rz_list_free(), rz_list_get_n(), rz_list_length(), SORT_NAME, and status.
Referenced by rz_core_visual_browse().
RZ_API char* rz_str_widget_list | ( | void * | user, |
RzList * | list, | ||
int | rows, | ||
int | cur, | ||
PrintItemCallback | cb | ||
) |
Definition at line 9 of file vmenus_graph.c.
References cb, count, free(), setup::line, list(), rz_strbuf_appendf(), rz_strbuf_drain(), rz_strbuf_new(), sb, and skip().
Referenced by __core_visual_view_graph_update(), and rz_core_visual_view_rop().