mirror of
https://github.com/Wessel/c-websocket-server.git
synced 2026-07-14 04:24:08 +02:00
feat: Populate repo
This commit is contained in:
18
include/database.h
Normal file
18
include/database.h
Normal 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
|
||||
Reference in New Issue
Block a user