9bdb5e0a92
Add get_safemode_option_early() and get_safemode_boolean_early() to get safemode options before the kernel heap has been initialized. They use a simplified parser.
42 lines
937 B
C
42 lines
937 B
C
/*
|
|
* Copyright 2004-2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _KERNEL_SAFEMODE_H
|
|
#define _KERNEL_SAFEMODE_H
|
|
|
|
|
|
#include <driver_settings.h>
|
|
|
|
#include <safemode_defs.h>
|
|
|
|
|
|
struct kernel_args;
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
status_t get_safemode_option(const char* parameter, char* buffer,
|
|
size_t* _bufferSize);
|
|
bool get_safemode_boolean(const char* parameter, bool defaultValue);
|
|
|
|
// before driver_settings_init() has been called (limited parsing support)
|
|
status_t get_safemode_option_early(kernel_args* args, const char* parameter,
|
|
char* buffer, size_t* _bufferSize);
|
|
bool get_safemode_boolean_early(kernel_args* args, const char* parameter,
|
|
bool defaultValue);
|
|
|
|
status_t _user_get_safemode_option(const char* parameter, char* buffer,
|
|
size_t* _bufferSize);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif /* _KERNEL_SAFEMODE_H */
|