forked from github/server
fee9b6d0a8
laying groundwork for different database backends.
21 lines
290 B
C
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
|