Open XVilka opened 3 years ago
See as well https://github.com/rizinorg/rizin/pull/637#issuecomment-779973443 . RzGraphDrawable was one first initial attempt by @karliss to improve the situation. I agree we should have some better way to deal with all those graph-drawing commands... How to do that exactly is another story :)
@XVilka can we remove this from 0.3.0? With you being loaded with types issues and me on commands, I think we don't have time in the next weeks/month to work on this. WDYT?
Yes, sure, it's a long term issue.
Currently the commands in
librz/core/cmd_analysis.c
and called functions inlibrz/core/canalysis.c
draw the graph directly. It would be very useful to introduce the API to return such graphs only once inRzGraph
data structure, then use such an API in these commands as well.Also split
librz/core/agraph.c
into two parts - purely graph things (probably move some of these intoRzUtil
(librz/util/
)), printing parts, and TUI parts (these should go intolibrz/core/tui/
).Also add unit/integration C tests