Files

25 lines
567 B
C

/* 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