I have done some work on opening a socket and waiting for a connection. This can be read line by line and I have started a request struct that it will accept. Also started on some docs. Not much is yet working. I am going to start learning µnit for unit tests: https://nemequ.github.io/munit/
13 lines
288 B
C
13 lines
288 B
C
#ifndef DATABASE_H
|
|
#define DATABASE_H
|
|
|
|
#include <stdio.h>
|
|
#include <sqlite3.h>
|
|
#include <stdbool.h>
|
|
|
|
sqlite3 *db_open(char *file);
|
|
bool db_file_exists(char *file);
|
|
//Returns true if the file was successfully created, false otherwise
|
|
bool db_create(char *file);
|
|
|
|
#endif /* ifndef LOG_H */
|