2017-11-19 12:31:50 +01:00
|
|
|
#ifndef H_DATABASE
|
|
|
|
#define H_DATABASE
|
2017-11-09 19:55:28 +01:00
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct order_data;
|
|
|
|
|
2017-11-19 12:31:50 +01:00
|
|
|
void dblib_open(void);
|
|
|
|
void dblib_close(void);
|
2017-11-09 19:55:28 +01:00
|
|
|
|
2017-11-19 12:31:50 +01:00
|
|
|
struct order_data *dblib_load_order(int id);
|
|
|
|
int dblib_save_order(struct order_data *od);
|
2017-11-09 19:55:28 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|