mirror of
https://github.com/Wessel/c-websocket-server.git
synced 2026-06-06 07:15:42 +02:00
18 lines
317 B
C
18 lines
317 B
C
#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 |