Add Network Tools And Nested Command Completion
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/* SPDX-License-Identifier: GPL-3.0-only */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "esp_err.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Register ping, nslookup, and traceroute as root-level console commands. */
|
||||
esp_err_t network_console_register_root_commands(void);
|
||||
|
||||
/* Return true only for a root command handled by network_console_execute(). */
|
||||
bool network_console_is_command(const char *name);
|
||||
|
||||
/* Execute ping, nslookup, or traceroute; argv[0] selects the operation. */
|
||||
int network_console_execute(int argc, char **argv);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user