main: add a command line option for dumping remote node data

Run for a given number of seconds and dump all found remote hosts/nodes as
JSON data

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau
2021-07-07 11:37:50 +02:00
parent 07a2f767e5
commit ab4d89e742
4 changed files with 82 additions and 26 deletions

View File

@@ -53,6 +53,7 @@ enum usteer_node_type {
struct sta_info;
struct usteer_local_node;
struct usteer_remote_host;
struct usteer_node {
struct avl_node avl;
@@ -269,4 +270,7 @@ int usteer_lua_init(void);
int usteer_lua_ubus_init(void);
void usteer_run_hook(const char *name, const char *arg);
void usteer_dump_node(struct blob_buf *buf, struct usteer_node *node);
void usteer_dump_host(struct blob_buf *buf, struct usteer_remote_host *host);
#endif