summaryrefslogtreecommitdiff
path: root/include/leveldb/db.h
diff options
context:
space:
mode:
authorVictor Costan <pwnall@chromium.org>2017-09-22 17:56:37 -0700
committerVictor Costan <pwnall@chromium.org>2017-09-22 21:24:02 -0700
commitbfe0d519b9e28305288ba906c14b8f87294eb85f (patch)
treec45954ad511a674c6f426057d192ddbd0f6813c0 /include/leveldb/db.h
parent09a3c8e7417547829b94bcdaa62cdf9e896f29a9 (diff)
downloadleveldb-chrome_dynamic_lib.tar.gz
WiP: Dynamic library support.chrome_dynamic_lib
Diffstat (limited to 'include/leveldb/db.h')
-rw-r--r--include/leveldb/db.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/leveldb/db.h b/include/leveldb/db.h
index bfab10a..11492e4 100644
--- a/include/leveldb/db.h
+++ b/include/leveldb/db.h
@@ -10,6 +10,8 @@
#include "leveldb/iterator.h"
#include "leveldb/options.h"
+#include "../../../leveldb_exports.h"
+
namespace leveldb {
// Update Makefile if you change these
@@ -41,7 +43,7 @@ struct Range {
// A DB is a persistent ordered map from keys to values.
// A DB is safe for concurrent access from multiple threads without
// any external synchronization.
-class DB {
+class LEVELDB_EXPORT DB {
public:
// Open the database with the specified "name".
// Stores a pointer to a heap-allocated database in *dbptr and returns
@@ -150,13 +152,13 @@ class DB {
// Destroy the contents of the specified database.
// Be very careful using this method.
-Status DestroyDB(const std::string& name, const Options& options);
+LEVELDB_EXPORT Status DestroyDB(const std::string& name, const Options& options);
// If a DB cannot be opened, you may attempt to call this method to
// resurrect as much of the contents of the database as possible.
// Some data may be lost, so be careful when calling this function
// on a database that contains important information.
-Status RepairDB(const std::string& dbname, const Options& options);
+LEVELDB_EXPORT Status RepairDB(const std::string& dbname, const Options& options);
} // namespace leveldb