summaryrefslogtreecommitdiff
path: root/src/db/sqlite3/db.h
blob: 78353fb42e75fad12b982095a35620d34e9a9863 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef DB_H
#define DB_H

/* initialize data.db file
 * return values:
 *   0 -> success
 *   1 -> failure: could not create directory
 *   2 -> failure: could not create file
 */

#include "entry.h"
#include "group.h"

int db_init();

Group *db_load_groups(int *group_count);

Entry *db_load_entries(int *entry_count);

#endif