summaryrefslogtreecommitdiffstats
path: root/src/db.h
blob: 8470e6ff003fb0f4cf5fdf84971f8869af64cfc2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: BSD-3-Clause */
/*
 * Copyright © 2020 rsiddharth <s@ricketyspace.net>
 */

#ifndef _db_h
#define _db_h

#include <gdbm.h>
#include <dbg.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>

int db_init();
int db_store(char *key, char *value);
char *db_load(char *key);

#endif