Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
RZ_API void | rz_graph_free_node_info (void *ptr) |
RZ_API RzGraphNodeInfo * | rz_graph_create_node_info (const char *title, const char *body, ut64 offset) |
RZ_API RzGraphNode * | rz_graph_add_node_info (RzGraph *graph, const char *title, const char *body, ut64 offset) |
RZ_API char * | rz_graph_drawable_to_dot (RzGraph *graph, const char *node_properties, const char *edge_properties) |
Convert graph to Graphviz dot format. More... | |
RZ_API void | rz_graph_drawable_to_json (RzGraph *graph, PJ *pj, bool use_offset) |
Convert graph to JSON. More... | |
RZ_API RzGraphNode* rz_graph_add_node_info | ( | RzGraph * | graph, |
const char * | title, | ||
const char * | body, | ||
ut64 | offset | ||
) |
Definition at line 28 of file graph_drawable.c.
References NULL, rz_graph_add_nodef(), rz_graph_create_node_info(), rz_graph_free_node_info(), and rz_return_val_if_fail.
Referenced by add_single_addr_xrefs(), rz_analysis_class_get_inheritance_graph(), and rz_core_analysis_importxrefs().
RZ_API RzGraphNodeInfo* rz_graph_create_node_info | ( | const char * | title, |
const char * | body, | ||
ut64 | offset | ||
) |
Definition at line 18 of file graph_drawable.c.
References rz_analysis_graph_node_info_t::body, rz_analysis_graph_node_info_t::offset, RZ_NEW0, RZ_STR_DUP, and rz_analysis_graph_node_info_t::title.
Referenced by rz_graph_add_node_info().
RZ_API char* rz_graph_drawable_to_dot | ( | RzGraph * | graph, |
const char * | node_properties, | ||
const char * | edge_properties | ||
) |
Convert graph to Graphviz dot format.
graph | Graph with RzGraphNodeInfo used as node user data |
node_properties | List node styling attributes. Can be set to NULL. |
edge_properties | List edge styling attributes. Can be set to NULL. |
Definition at line 41 of file graph_drawable.c.
References rz_analysis_graph_node_info_t::body, rz_graph_node_t::data, rz_graph_node_t::idx, if(), rz_graph_t::nodes, NULL, rz_graph_node_t::out_nodes, rz_strbuf_append(), rz_strbuf_appendf(), rz_strbuf_drain_nofree(), rz_strbuf_init(), and rz_analysis_graph_node_info_t::title.
Referenced by print_graph_dot().
Convert graph to JSON.
[in] | graph | Graph to convert |
[out] | pj | Json output structure. Can be used to include the resulting JSON value inside bigger JSON. |
[in] | use_offset | Set this to true if graph uses RzGraphNodeInfo::offset offset field. |
Definition at line 73 of file graph_drawable.c.
References rz_analysis_graph_node_info_t::body, rz_graph_node_t::data, rz_graph_node_t::idx, rz_graph_t::nodes, NULL, rz_analysis_graph_node_info_t::offset, rz_graph_node_t::out_nodes, pj_a(), pj_end(), pj_i(), pj_k(), pj_ki(), pj_kn(), pj_ks(), pj_o(), and rz_analysis_graph_node_info_t::title.
Referenced by rz_core_graph_print().
RZ_API void rz_graph_free_node_info | ( | void * | ptr | ) |
Definition at line 8 of file graph_drawable.c.
References free(), and info().
Referenced by rz_graph_add_node_info().