1 | // SPDX-License-Identifier: GPL-3.0-or-later |
---|---|
2 | |
3 | #pragma once |
4 | |
5 | #include <mos/types.h> |
6 | |
7 | typedef struct |
8 | { |
9 | const char *name; |
10 | const char *arg; |
11 | bool used; |
12 | } cmdline_option_t; |
13 | |
14 | __BEGIN_DECLS |
15 | |
16 | void mos_cmdline_init(const char *bootloader_cmdline); |
17 | cmdline_option_t *cmdline_get_option(const char *option_name); |
18 | bool cmdline_string_truthiness(const char *arg, bool default_value); |
19 | |
20 | __END_DECLS |
21 |