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

24 lines
420 B
C

#ifndef H_ORDERDB
#define H_ORDERDB
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct order_data {
const char *_str;
int _refcount;
} order_data;
void odata_create(order_data **pdata, size_t len, const char *str);
void odata_release(order_data * od);
order_data *odata_load(int id);
int odata_save(order_data *od);
#ifdef __cplusplus
}
#endif
#endif