haiku/headers/private/kernel/safemode.h

42 lines
937 B
C
Raw Normal View History

/*
* 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
2013-12-10 20:07:20 +04:00
#include <driver_settings.h>
#include <safemode_defs.h>
struct kernel_args;
#ifdef __cplusplus
extern "C" {
#endif
2013-12-10 20:07:20 +04:00
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);
2013-12-10 20:07:20 +04:00
status_t _user_get_safemode_option(const char* parameter, char* buffer,
size_t* _bufferSize);
#ifdef __cplusplus
}
#endif
2013-12-10 20:07:20 +04:00
#endif /* _KERNEL_SAFEMODE_H */