diff options
author | Richard Braun <rbraun@sceen.net> | 2017-07-13 20:07:07 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-07-13 20:07:07 +0200 |
commit | b2ad7d862388558556288877a65f2797528168f4 (patch) | |
tree | 4d3080abf0cbcca7c058cba5cad2ed71e5d5e1e5 /kern/shell.h | |
parent | cacd797c0c1825301f21aab18a7ce2c410d14535 (diff) |
Switch to initialization operations
Diffstat (limited to 'kern/shell.h')
-rw-r--r-- | kern/shell.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/kern/shell.h b/kern/shell.h index 81be314b..cf56cebf 100644 --- a/kern/shell.h +++ b/kern/shell.h @@ -21,6 +21,7 @@ #ifndef _KERN_SHELL_H #define _KERN_SHELL_H +#include <kern/init.h> #include <kern/error.h> #include <kern/macros.h> @@ -65,13 +66,6 @@ void shell_cmd_init(struct shell_cmd *cmd, const char *name, const char *short_desc, const char *long_desc); /* - * Initialize the shell module. - * - * On return, shell commands can be registered. - */ -void shell_setup(void); - -/* * Start the shell thread. */ void shell_start(void); @@ -93,4 +87,11 @@ int shell_cmd_register(struct shell_cmd *cmd); #define shell_start() #endif /* X15_SHELL */ +/* + * This init operation provides : + * - commands can be registered + * - module fully initialized + */ +INIT_OP_DECLARE(shell_setup); + #endif /* _KERN_SHELL_H */ |