Make UEFI boot-platform build again
[haiku.git] / headers / private / fs_shell / fssh_driver_settings.h
bloba0d51f241666bda21a6045d68fe262fe7e4288f8
1 #ifndef _FSSH_DRIVER_SETTINGS_H
2 #define _FSSH_DRIVER_SETTINGS_H
5 #include "fssh_defs.h"
8 typedef struct fssh_driver_parameter {
9 char *name;
10 int value_count;
11 char **values;
12 int parameter_count;
13 struct fssh_driver_parameter *parameters;
14 } fssh_driver_parameter;
16 typedef struct fssh_driver_settings {
17 int parameter_count;
18 struct fssh_driver_parameter *parameters;
19 } fssh_driver_settings;
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
27 extern void* fssh_load_driver_settings(const char *driverName);
28 extern fssh_status_t fssh_unload_driver_settings(void *handle);
30 extern void* fssh_parse_driver_settings_string(
31 const char *settingsString);
32 extern fssh_status_t fssh_get_driver_settings_string(void *_handle,
33 char *buffer, fssh_size_t *_bufferSize, bool flat);
34 extern fssh_status_t fssh_delete_driver_settings(void *handle);
36 extern const char* fssh_get_driver_parameter(void *handle, const char *key,
37 const char *unknownValue, /* key not present */
38 const char *noargValue); /* key has no value */
39 extern bool fssh_get_driver_boolean_parameter(void *handle,
40 const char *key, bool unknownValue,
41 bool noargValue);
43 extern const fssh_driver_settings *fssh_get_driver_settings(void *handle);
45 /* Pass this in as drivername to access safe mode settings */
46 #define FSSH_B_SAFEMODE_DRIVER_SETTINGS "/safemode/"
48 /* Pass this as the key value to check if safe mode is enabled */
49 #define FSSH_B_SAFEMODE_SAFE_MODE "safemode"
52 #ifdef __cplusplus
54 #endif
56 #endif // _FSSH_DRIVER_SETTINGS_H