24 lines
510 B
C
Raw Normal View History

2016-08-01 16:53:06 +02:00
/*
* shell.h
*
* Created on: Aug 1, 2016
* Author: tkl
*/
#ifndef SOURCE_FIRMWARE_KERNEL_INTERFACE_SHELL_H_
#define SOURCE_FIRMWARE_KERNEL_INTERFACE_SHELL_H_
2016-08-02 11:41:47 +02:00
typedef void *(*command_callback)(const char*);
struct command {
const char *command;
2016-08-11 11:04:54 +02:00
const char *description;
2016-08-02 11:41:47 +02:00
const command_callback command_callback;
struct list_node item;
};
2016-08-01 16:53:06 +02:00
int shell_init(const struct driver *shell_device);
2016-08-02 11:41:47 +02:00
int shell_add_command(struct command *command);
2016-08-01 16:53:06 +02:00
#endif /* SOURCE_FIRMWARE_KERNEL_INTERFACE_SHELL_H_ */