2017-10-12 18:11:21 +02:00
|
|
|
#ifndef H_ORDERDB
|
|
|
|
#define H_ORDERDB
|
|
|
|
|
2017-10-14 09:01:14 +02:00
|
|
|
#include <stddef.h>
|
|
|
|
|
2017-10-12 18:11:21 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct order_data {
|
|
|
|
const char *_str;
|
|
|
|
int _refcount;
|
|
|
|
} order_data;
|
|
|
|
|
2017-10-14 09:01:14 +02:00
|
|
|
void odata_create(order_data **pdata, size_t len, const char *str);
|
|
|
|
void odata_release(order_data * od);
|
|
|
|
|
2017-10-12 18:11:21 +02:00
|
|
|
order_data *odata_load(int id);
|
|
|
|
int odata_save(order_data *od);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|