]> git.meshlink.io Git - meshlink/commit
Move meshlink_get_all_edges_state() to devtools_get_all_edges().
authorGuus Sliepen <guus@meshlink.io>
Tue, 15 Aug 2017 18:59:38 +0000 (20:59 +0200)
committerGuus Sliepen <guus@meshlink.io>
Tue, 15 Aug 2017 18:59:38 +0000 (20:59 +0200)
commit6a73467d16a57ca1645d805776c4dfcaf2b05798
treeac0a77585e80c05d4958c07b95896812e01fb5d9
parentb0f7726931e9339e91b8d49941626f015015bd98
Move meshlink_get_all_edges_state() to devtools_get_all_edges().

There should be no reason for the application to query the list of edges,
so move this functionality to devtools.[ch].

Also, flatten the array to reduce the amount of memory allocations and
bookkeeping necessary.
src/devtools.c
src/devtools.h
src/meshlink.c
src/meshlink.h