1 #ifndef _FSSH_DRIVER_SETTINGS_H 2 #define _FSSH_DRIVER_SETTINGS_H 3 4 5 #include "fssh_defs.h" 6 7 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; 15 16 typedef struct fssh_driver_settings { 17 int parameter_count; 18 struct fssh_driver_parameter *parameters; 19 } fssh_driver_settings; 20 21 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 26 27 extern void* fssh_load_driver_settings(const char *driverName); 28 extern fssh_status_t fssh_unload_driver_settings(void *handle); 29 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 35 extern const char* fssh_get_driver_parameter(void *handle, const char *key, 36 const char *unknownValue, /* key not present */ 37 const char *noargValue); /* key has no value */ 38 extern bool fssh_get_driver_boolean_parameter(void *handle, 39 const char *key, bool unknownValue, 40 bool noargValue); 41 42 extern const fssh_driver_settings *fssh_get_driver_settings(void *handle); 43 44 /* Pass this in as drivername to access safe mode settings */ 45 #define FSSH_B_SAFEMODE_DRIVER_SETTINGS "/safemode/" 46 47 /* Pass this as the key value to check if safe mode is enabled */ 48 #define FSSH_B_SAFEMODE_SAFE_MODE "safemode" 49 50 51 #ifdef __cplusplus 52 } 53 #endif 54 55 #endif // _FSSH_DRIVER_SETTINGS_H 56