59#define SHELL_ARGS_INIT(args, next_args) (next_args) = (args);
61#define SHELL_ARGS_NEXT(args, next_args) do { \
62 (args) = (next_args); \
63 if((args) != NULL) { \
64 if(*(args) == '\0') { \
67 (next_args) = strchr((args), ' '); \
68 if((next_args) != NULL) { \
69 *(next_args) = '\0'; \
79#define SHELL_OUTPUT(output_func, format, ...) do { \
81 snprintf(buffer, sizeof(buffer), format, ##__VA_ARGS__); \
82 (output_func)(buffer); \
85typedef void (shell_output_func)(
const char *str);
95PT_THREAD(shell_input(
struct pt *pt, shell_output_func output,
const char *cmd));
103void shell_output_6addr(shell_output_func output,
const uip_ipaddr_t *
ipaddr);
111void shell_output_lladdr(shell_output_func output,
const linkaddr_t *lladdr);
#define PT_THREAD(name_args)
Declaration of a protothread.
void shell_init(void)
Initializes Shell module.
Header file for the link-layer address representation.
Header file for the Contiki process interface.
static uip_ipaddr_t ipaddr
Pointer to prefix information option in uip_buf.
Header file for the uIP TCP/IP stack.