btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / kernel / safemode.h
blob461f1b039f59b4b7343dff86144254cc24cbbeda
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
9 #include <driver_settings.h>
11 #include <safemode_defs.h>
14 struct kernel_args;
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
22 status_t get_safemode_option(const char* parameter, char* buffer,
23 size_t* _bufferSize);
24 bool get_safemode_boolean(const char* parameter, bool defaultValue);
26 // before driver_settings_init() has been called (limited parsing support)
27 status_t get_safemode_option_early(struct kernel_args* args,
28 const char* parameter, char* buffer, size_t* _bufferSize);
29 bool get_safemode_boolean_early(struct kernel_args* args,
30 const char* parameter, bool defaultValue);
32 status_t _user_get_safemode_option(const char* parameter, char* buffer,
33 size_t* _bufferSize);
36 #ifdef __cplusplus
38 #endif
41 #endif /* _KERNEL_SAFEMODE_H */