1 #ifndef _FSSH_DRIVER_SETTINGS_H
2 #define _FSSH_DRIVER_SETTINGS_H
8 typedef struct fssh_driver_parameter
{
13 struct fssh_driver_parameter
*parameters
;
14 } fssh_driver_parameter
;
16 typedef struct fssh_driver_settings
{
18 struct fssh_driver_parameter
*parameters
;
19 } fssh_driver_settings
;
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
,
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"
56 #endif // _FSSH_DRIVER_SETTINGS_H