summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/database.h
diff options
context:
space:
mode:
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