feat: Populate repo

This commit is contained in:
2023-03-29 14:02:05 +02:00
commit 28bec5ebb8
168 changed files with 17860 additions and 0 deletions

18
include/database.h Normal file
View File

@@ -0,0 +1,18 @@
#include <mysql/mysql.h>
#ifndef DATABASE_H
#define DATABASE_H
extern char _server[56];
extern char _user[56];
extern char _password[56];
extern char _database[56];
MYSQL* init_mysql();
void kill_mysql();
void finish_with_error();
int construct_and_exec(char* command);
int get_sensor_state(int sensorId);
#endif