* Added a get_safemode_boolean() function for easy access to the safemode
options. * module_init() now sets sDisableUserAddOns to whatever the safemode settings say, ie. the B_SAFEMODE_DISABLE_USER_ADD_ONS setting is now respected by the module code. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24315 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2004-2007, Axel Dörfler, [email protected]. All rights reserved.
|
||||
* Copyright 2004-2008, Axel Dörfler, [email protected]. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _KERNEL_SAFEMODE_H
|
||||
@@ -25,6 +25,7 @@ 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);
|
||||
status_t _user_get_safemode_option(const char *parameter, char *buffer, size_t *_bufferSize);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user