Fix Lint broken by b662a4577d692329b9ca83525e6039f2ddcd1ac1
[oweals/minetest.git] / src / database-redis.h
index 45e702c83463a29c9e0a0e3e84247137ff84f2ae..fa15dd8a7e8eb021995d8b83617ee458ff166780 100644 (file)
@@ -24,25 +24,25 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #if USE_REDIS
 
-#include "database.h"
 #include <hiredis.h>
 #include <string>
+#include "database.h"
 
 class Settings;
 
-class Database_Redis : public Database
+class Database_Redis : public MapDatabase
 {
 public:
        Database_Redis(Settings &conf);
        ~Database_Redis();
 
-       virtual void beginSave();
-       virtual void endSave();
+       void beginSave();
+       void endSave();
 
-       virtual bool saveBlock(const v3s16 &pos, const std::string &data);
-       virtual std::string loadBlock(const v3s16 &pos);
-       virtual bool deleteBlock(const v3s16 &pos);
-       virtual void listAllLoadableBlocks(std::vector<v3s16> &dst);
+       bool saveBlock(const v3s16 &pos, const std::string &data);
+       void loadBlock(const v3s16 &pos, std::string *block);
+       bool deleteBlock(const v3s16 &pos);
+       void listAllLoadableBlocks(std::vector<v3s16> &dst);
 
 private:
        redisContext *ctx;
@@ -52,4 +52,3 @@ private:
 #endif // USE_REDIS
 
 #endif
-