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:
4
usteer.h
4
usteer.h
@@ -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
|
||||
|
Reference in New Issue
Block a user