summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/database.h
diff options
context:
space:
mode:
authorpeterb12 <peterb12@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-17 15:00:59 +0000
committerpeterb12 <peterb12@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-17 15:00:59 +0000
commit05345016f1c62fbd02e3eb8302f1798ccdb425e9 (patch)
treeacba17fc138e5bf33b439df6bad6b9f3b086c1be /crawl-ref/source/database.h
parent77ea6aed5bf59f1c8deb2c47dd7d222494f25571 (diff)
downloadcrawl-ref-05345016f1c62fbd02e3eb8302f1798ccdb425e9.tar.gz
crawl-ref-05345016f1c62fbd02e3eb8302f1798ccdb425e9.zip
First cut at db/flat text file based descriptions.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1331 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/database.h')
-rw-r--r--crawl-ref/source/database.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/crawl-ref/source/database.h b/crawl-ref/source/database.h
new file mode 100644
index 0000000000..71b8474033
--- /dev/null
+++ b/crawl-ref/source/database.h
@@ -0,0 +1,38 @@
+/*
+ * database.h
+ * Crawl
+ *
+ * Created by Peter Berger on 4/15/07.
+ * $Id:$
+ */
+
+
+#ifndef DATABASE_H
+#define DATABASE_H
+
+#undef DEBUG // hack
+#define NDEBUG
+#include "externs.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <ndbm.h>
+
+// For convenience during shutdown.
+typedef struct dbList_s dbList_t;
+#ifdef __cplusplus
+}
+#endif
+extern dbList_t *openDBList;
+
+void databaseSystemInit();
+void databaseSystemShutdown();
+DBM *openDB(const char *dbFilename);
+datum *database_fetch(DBM *database, char *key);
+
+
+std::string getLongDescription(const char *key);
+
+#endif