MOS Source Code
Loading...
Searching...
No Matches
cmdline.h
Go to the documentation of this file.
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
mos_cmdline_init
__BEGIN_DECLS void mos_cmdline_init(const char *bootloader_cmdline)
Definition
cmdline.c:33
cmdline_string_truthiness
bool cmdline_string_truthiness(const char *arg, bool default_value)
Definition
cmdline.c:83
cmdline_get_option
cmdline_option_t * cmdline_get_option(const char *option_name)
Definition
cmdline.c:21
__END_DECLS
#define __END_DECLS
Definition
mos_global.h:23
__BEGIN_DECLS
#define __BEGIN_DECLS
Definition
mos_global.h:22
cmdline_option_t
Definition
cmdline.h:8
cmdline_option_t::name
const char * name
Definition
cmdline.h:9
cmdline_option_t::arg
const char * arg
Definition
cmdline.h:10
cmdline_option_t::used
bool used
Definition
cmdline.h:11
types.h
kernel
include
private
mos
misc
cmdline.h
Generated on Sun Sep 1 2024 18:22:52 for MOS Source Code by
1.12.0