123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #ifndef _LSUP_STORE_H
- #define _LSUP_STORE_H
- #include "store_htable.h"
- #include "store_mdb.h"
- #define BACKEND_TBL \
- \
- ENTRY( HTABLE, htstore_int ) \
- ENTRY( MDB, mdbstore_int ) \
- typedef enum {
- #define ENTRY(a, b) \
- LSUP_STORE_##a,
- BACKEND_TBL
- #undef ENTRY
- } LSUP_StoreType;
- const LSUP_StoreInt *LSUP_store_int (LSUP_StoreType type);
- typedef struct store_t {
- LSUP_StoreType type;
- char * id;
- const LSUP_StoreInt * sif;
- void * data;
- } LSUP_Store;
- #endif
|