blob: df54ebac2633130f28034b1fbf069aa10bade041 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef _DBHANDLING_
#define _DBHANDLING_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sqlite3.h>
#include "enum.h"
void exit_with_error(sqlite3 *db, const char *msg);
void select_from_table(sqlite3 *db, target_e target, char *qp);
void update_entry(sqlite3 *db, target_e target, char *qp, char *value, char *status);
void add_entry(sqlite3 *db, target_e target, char *name, char *value, char *status);
#endif
|