haiku/headers/private/kernel/safemode.h
Ingo Weinhold 9bdb5e0a92 kernel safemode: Add functions to get options early
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.
2013-12-10 19:05:47 +01:00

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 */