1 // Settings.h 2 3 #ifndef USERLAND_FS_SETTINGS_H 4 #define USERLAND_FS_SETTINGS_H 5 6 #include <SupportDefs.h> 7 8 struct driver_settings; 9 struct driver_parameter; 10 struct IOCtlInfo; 11 12 // Settings 13 class Settings { 14 public: 15 Settings(); 16 ~Settings(); 17 18 status_t SetTo(const char *fsName); 19 void Unset(); 20 21 const IOCtlInfo* GetIOCtlInfo(int command) const; 22 23 void Dump() const; 24 25 private: 26 status_t _Init(const driver_settings *settings, 27 const driver_parameter *fsParams); 28 29 private: 30 struct IOCtlInfoMap; 31 32 IOCtlInfoMap* fIOCtlInfos; 33 }; 34 35 #endif // USERLAND_FS_SETTINGS_H 36