/* --- END LICENSE --- */
#include "ms_db.h"
+
+#include <stdio.h>
+#include <stdlib.h>
+
+struct ms_db* mandshurica_db_open(const char* path) {
+ FILE* fp = fopen(path, "rb");
+ if(fp != NULL) {
+ struct ms_db* db = malloc(sizeof(*db));
+ db->fp = fp;
+ return db;
+ }
+ return NULL;
+}
+
+void mandshurica_db_close(struct ms_db* db) {
+ fclose(db->fp);
+ free(db);
+}
+
+char* mandshurica_db_get(struct ms_db* db, const char* key) {}
struct ms_db* mandshurica_db_open(const char* path);
void mandshurica_db_close(struct ms_db* db);
+char* mandshurica_db_get(struct ms_db* db, const char* key);
#endif