blob: 775b87cee55e94fb03073e69f7cedcb326b0b749 (
plain)
ofs | hex dump | ascii |
---|
0000 | 67 69 6d 70 20 78 63 66 20 66 69 6c 65 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 11 00 00 | gimp.xcf.file................... |
0020 | 00 01 01 00 00 00 13 00 00 00 08 42 90 04 9c 42 90 04 9c 00 00 00 14 00 00 00 04 00 00 00 26 00 | ...........B...B..............&. |
0040 | 00 00 16 00 00 00 04 00 00 00 01 00 00 00 15 00 00 01 1c 00 00 00 10 67 69 6d 70 2d 69 6d 61 67 | .......................gimp-imag |
0060 | 65 2d 67 72 69 64 00 00 00 00 01 00 00 01 00 28 73 74 79 6c 65 20 73 6f 6c 69 64 29 0a 28 66 67 | e-grid.........(style.solid).(fg |
/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef DATABASE_LEVELDB_HEADER
#define DATABASE_LEVELDB_HEADER
#include "config.h"
#if USE_LEVELDB
#include "database.h"
#include "leveldb/db.h"
#include <string>
class ServerMap;
class Database_LevelDB : public Database
{
public:
Database_LevelDB(ServerMap *map, std::string savedir);
virtual void beginSave();
virtual void endSave();
virtual bool saveBlock(v3s16 blockpos, std::string &data);
virtual std::string loadBlock(v3s16 blockpos);
virtual bool deleteBlock(v3s16 blockpos);
virtual void listAllLoadableBlocks(std::list<v3s16> &dst);
virtual int Initialized(void);
~Database_LevelDB();
private:
ServerMap *srvmap;
leveldb::DB* m_database;
};
#endif
#endif