diff options
author | Anna Figueiredo Gomes <navi@vlhl.dev> | 2023-02-20 17:12:32 -0300 |
---|---|---|
committer | Anna Figueiredo Gomes <navi@vlhl.dev> | 2023-02-20 17:12:32 -0300 |
commit | 9483c8f1dbde014432c7a99416fcda3a6ccb3563 (patch) | |
tree | 973edfb0181bc03eb4643d66732c10573a1924bb /src/db.h |
Signed-off-by: Anna Figueiredo Gomes <navi@vlhl.dev>
Diffstat (limited to 'src/db.h')
-rw-r--r-- | src/db.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/db.h b/src/db.h new file mode 100644 index 0000000..d332365 --- /dev/null +++ b/src/db.h @@ -0,0 +1,20 @@ +#ifndef _DB_H_ +#define _DB_H_ + +#include <sqlite3.h> +#include <stdbool.h> +#include <stdio.h> +#include "feed.h" + +static sqlite3 *db; +static sqlite3_stmt *statement; + +bool db_init(); +void db_clean(); + +struct feed *get_db_feeds(); +size_t get_feed_count(); +//size_t get_item_count(); + + +#endif |