server/src/kernel/db.h
Enno Rehling fee9b6d0a8 separate database logic from order_data.
laying groundwork for different database backends.
2017-11-09 19:55:28 +01:00

21 lines
290 B
C

#ifndef H_DB
#define H_DB
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
struct order_data;
void db_open(void);
void db_close(void);
struct order_data *db_load_order(int id);
int db_save_order(struct order_data *od);
#ifdef __cplusplus
}
#endif
#endif