safemode.h revision 04dbe5b1
1/*
2 * Copyright 2004-2008, Axel D��rfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef _KERNEL_SAFEMODE_H
6#define _KERNEL_SAFEMODE_H
7
8
9#include <driver_settings.h>
10
11#include <safemode_defs.h>
12
13
14struct kernel_args;
15
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21
22status_t	get_safemode_option(const char* parameter, char* buffer,
23				size_t* _bufferSize);
24bool		get_safemode_boolean(const char* parameter, bool defaultValue);
25
26// before driver_settings_init() has been called (limited parsing support)
27status_t	get_safemode_option_early(struct kernel_args* args,
28				const char* parameter, char* buffer, size_t* _bufferSize);
29bool		get_safemode_boolean_early(struct kernel_args* args,
30				const char* parameter, bool defaultValue);
31
32status_t	_user_get_safemode_option(const char* parameter, char* buffer,
33				size_t* _bufferSize);
34
35
36#ifdef __cplusplus
37}
38#endif
39
40
41#endif	/* _KERNEL_SAFEMODE_H */
42