comparison database.h @ 0:15a06aa20298

misc: initial import
author David Demelier <markand@malikania.fr>
date Tue, 04 Feb 2020 13:35:52 +0100
parents
children 98ef2713eb0d
comparison
equal deleted inserted replaced
-1:000000000000 0:15a06aa20298
1 #ifndef PASTER_DATABASE_H
2 #define PASTER_DATABASE_H
3
4 #include <stdbool.h>
5 #include <stddef.h>
6
7 struct paste;
8
9 bool
10 database_open(const char *path);
11
12 bool
13 database_recents(struct paste *pastes, size_t *max);
14
15 bool
16 database_get(struct paste *paste, const char *uuid);
17
18 bool
19 database_insert(struct paste *paste);
20
21 void
22 database_clear(void);
23
24 void
25 database_finish(void);
26
27 #endif /* !PASTER_DATABASE_H */