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