aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/storage_sqlite.h
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-09-11 20:23:24 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-09-11 20:23:24 +0300
commit23f9521d1abdeb599fbe81d0c196a9ee92f5fd8a (patch)
tree5ee5e59339bf2af98039ec4584f8a01410a95c11 /src/storage_sqlite.h
parentlog: refactoring (diff)
downloadcimple-23f9521d1abdeb599fbe81d0c196a9ee92f5fd8a.tar.gz
cimple-23f9521d1abdeb599fbe81d0c196a9ee92f5fd8a.zip
create SQLite database on startup
Diffstat (limited to 'src/storage_sqlite.h')
-rw-r--r--src/storage_sqlite.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/storage_sqlite.h b/src/storage_sqlite.h
new file mode 100644
index 0000000..e565052
--- /dev/null
+++ b/src/storage_sqlite.h
@@ -0,0 +1,19 @@
+#ifndef __STORAGE_SQLITE_H__
+#define __STORAGE_SQLITE_H__
+
+struct storage_settings;
+
+struct storage_settings_sqlite {
+ char *path;
+};
+
+struct storage;
+struct storage_sqlite;
+
+int storage_settings_create_sqlite(struct storage_settings *, const char *path);
+void storage_settings_destroy_sqlite(const struct storage_settings *);
+
+int storage_create_sqlite(struct storage *, const struct storage_settings *);
+void storage_destroy_sqlite(struct storage *);
+
+#endif