aboutsummaryrefslogtreecommitdiff
path: root/include/kv_manager.h
blob: 068841bb8873d947445d5008fc62600a7e3c0bf4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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