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 14 struct kernel_args; 15 16 17 #ifdef __cplusplus 18 extern "C" { 19 #endif 20 21 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); 25 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); 31 32 status_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