basic shell commands implemented

This commit is contained in:
tkl
2016-08-11 11:04:54 +02:00
parent 94b4ddb9c8
commit c7af671814
10 changed files with 197 additions and 36 deletions

View File

@@ -20,5 +20,6 @@ struct list {
int list_init(struct list *head);
int list_add(struct list *head, struct list_node *node);
int list_get_len(struct list *head);
#endif /* SOURCE_FIRMWARE_KERNEL_LIST_H_ */

View File

@@ -12,6 +12,7 @@ typedef void *(*command_callback)(const char*);
struct command {
const char *command;
const char *description;
const command_callback command_callback;
struct list_node item;
};