summaryrefslogtreecommitdiff
path: root/kern/arg.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-07-13 20:07:07 +0200
committerRichard Braun <rbraun@sceen.net>2017-07-13 20:07:07 +0200
commitb2ad7d862388558556288877a65f2797528168f4 (patch)
tree4d3080abf0cbcca7c058cba5cad2ed71e5d5e1e5 /kern/arg.h
parentcacd797c0c1825301f21aab18a7ce2c410d14535 (diff)
Switch to initialization operations
Diffstat (limited to 'kern/arg.h')
-rw-r--r--kern/arg.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/kern/arg.h b/kern/arg.h
index 3a8d20ba..c7b70a37 100644
--- a/kern/arg.h
+++ b/kern/arg.h
@@ -27,12 +27,16 @@
#include <stdbool.h>
+#include <kern/init.h>
+
#define ARG_CMDLINE_MAX_SIZE 256
/*
- * Initialize the arg module.
+ * Set the command line string.
+ *
+ * This function must be called before calling the kernel main entry point.
*/
-void arg_setup(const char *cmdline);
+void arg_set_cmdline(const char *cmdline);
/*
* Log command line information.
@@ -54,4 +58,10 @@ bool arg_present(const char *name);
*/
const char * arg_value(const char *name);
+/*
+ * This init operation provides :
+ * - command line arguments can be retrieved
+ */
+INIT_OP_DECLARE(arg_setup);
+
#endif /* _KERN_ARG_H */