aboutsummaryrefslogtreecommitdiff
path: root/include/kv_manager.h
diff options
context:
space:
mode:
authorThorsten Töpper <atsutane@freethoughts.de>2026-02-18 21:51:53 +0100
committerThorsten Töpper <atsutane@freethoughts.de>2026-02-18 21:51:53 +0100
commitd513977a3566b14d9357906615d045d71741537f (patch)
tree3e707d2de9da71d98650fa8bb1b92ed11ab724ba /include/kv_manager.h
parenteed2d1323441861f2d41f0ecc0a72fcc9190fa5f (diff)
downloadduplicate_finder-d513977a3566b14d9357906615d045d71741537f.tar.gz
duplicate_finder-d513977a3566b14d9357906615d045d71741537f.tar.bz2
squash initial implementation
Diffstat (limited to 'include/kv_manager.h')
-rw-r--r--include/kv_manager.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/kv_manager.h b/include/kv_manager.h
new file mode 100644
index 0000000..068841b
--- /dev/null
+++ b/include/kv_manager.h
@@ -0,0 +1,25 @@
+/* SPDX-License-Identifier: Apache-2.0 */
+
+/* Copyright 2026 Thorsten Töpper
+ *
+ * vim:ts=4:sw=4:expandtab
+ */
+#ifndef KV_MANAGER_H
+#define KV_MANAGER_H
+
+/*=========== FUNCTIONS ===========*/
+int kv_open_storage(char *fname);
+bool kv_close_storage();
+bool kv_add_bool_type(char *key, bool value, char type);
+bool kv_set_bool(char *key, bool value);
+bool kv_get_bool(char *key);
+char kv_get_type(char *key);
+char *kv_get_raw(char *key);
+bool kv_entry_exists(char *key);
+char *kv_first_key();
+char *kv_next_key(char *key);
+
+void kv_dump(FILE *out);
+
+#endif
+