zephyr/subsys/net/ip/net_shell.h
Paul Sokolovsky ff3b019054 net: shell: Make shell commands non-static to allow reuse.
Some applications may want to reuse implementations of these
commands for debugging/diagnostics purpose even if they don't
use net shell per se, or implement an alternative shell.

Jira: ZEP-2064

Change-Id: I48cb66ccc41bd41a75a4eb8eb3c366316ec5a096
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2017-04-28 15:01:12 +03:00

36 lines
958 B
C

/** @file
@brief Network shell handler
This is not to be included by the application.
*/
/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __NET_SHELL_H
#define __NET_SHELL_H
#if defined(CONFIG_NET_SHELL)
void net_shell_init(void);
#else
#define net_shell_init(...)
#endif /* CONFIG_NET_SHELL */
int net_shell_cmd_allocs(int argc, char *argv[]);
int net_shell_cmd_conn(int argc, char *argv[]);
int net_shell_cmd_dns(int argc, char *argv[]);
int net_shell_cmd_iface(int argc, char *argv[]);
int net_shell_cmd_mem(int argc, char *argv[]);
int net_shell_cmd_nbr(int argc, char *argv[]);
int net_shell_cmd_ping(int argc, char *argv[]);
int net_shell_cmd_route(int argc, char *argv[]);
int net_shell_cmd_stacks(int argc, char *argv[]);
int net_shell_cmd_stats(int argc, char *argv[]);
int net_shell_cmd_tcp(int argc, char *argv[]);
int net_shell_cmd_help(int argc, char *argv[]);
#endif /* __NET_SHELL_H */