X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=include%2Fpreferencesystem.h;h=a82676ec0b65e920006b03c694a8ad3cb4cd1b10;hb=2a1cfc426e60b77c7b212d827e2592de01041266;hp=bbc838ad11d5ae55f984ec5190ee9c7b4af61375;hpb=f6b4543bd54926411cb71a776bc5b37eea846c4f;p=xonotic%2Fnetradiant.git diff --git a/include/preferencesystem.h b/include/preferencesystem.h index bbc838ad..a82676ec 100644 --- a/include/preferencesystem.h +++ b/include/preferencesystem.h @@ -25,16 +25,13 @@ #include "generic/constant.h" #include "generic/callback.h" -typedef Callback1 StringImportCallback; -typedef Callback1 StringExportCallback; - class PreferenceSystem { public: INTEGER_CONSTANT( Version, 1 ); STRING_CONSTANT( Name, "preferences" ); -virtual void registerPreference( const char* name, const StringImportCallback& importer, const StringExportCallback& exporter ) = 0; +virtual void registerPreference( const char* name, const ImportExportCallback::Import_t& importer, const ImportExportCallback::Export_t& exporter ) = 0; }; #include "modulesystem.h"