X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=include%2Fpreferencesystem.h;h=a82676ec0b65e920006b03c694a8ad3cb4cd1b10;hb=2a1cfc426e60b77c7b212d827e2592de01041266;hp=45678024ffd8ec0a6df23e509a7d708fc8ed5369;hpb=62d99f889c0e98be65f779d3983109c84ce58cec;p=xonotic%2Fnetradiant.git diff --git a/include/preferencesystem.h b/include/preferencesystem.h index 45678024..a82676ec 100644 --- a/include/preferencesystem.h +++ b/include/preferencesystem.h @@ -23,10 +23,7 @@ #define INCLUDED_PREFERENCESYSTEM_H #include "generic/constant.h" -#include "generic/callbackfwd.h" - -typedef Callback1 StringImportCallback; -typedef Callback1 StringExportCallback; +#include "generic/callback.h" class PreferenceSystem { @@ -34,7 +31,7 @@ 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"