refactor backend
This commit is contained in:
parent
042522ac7a
commit
8f7ad2bd90
|
@ -116,7 +116,7 @@ typedef int (*__db_key_decode_fn_t)(void* key, char* buf);
|
|||
typedef int (*__db_key_tostr_fn_t)(void* key, char* buf);
|
||||
typedef const char* (*__db_key_cmpname_fn_t)(void* statue);
|
||||
typedef int (*__db_key_cmp_fn_t)(void* state, const char* aBuf, size_t aLen, const char* bBuf, size_t bLen);
|
||||
typedef void (*__db_destroy_cmp_fn_t)(void* state);
|
||||
typedef void (*__db_key_cmp_destroy_fn_t)(void* state);
|
||||
typedef int32_t (*__db_value_encode_fn_t)(void* value, int32_t vlen, int64_t ttl, char** dest);
|
||||
typedef int32_t (*__db_value_decode_fn_t)(void* value, int32_t vlen, int64_t* ttl, char** dest);
|
||||
|
||||
|
@ -132,7 +132,7 @@ typedef struct {
|
|||
__db_key_decode_fn_t deFunc;
|
||||
__db_key_tostr_fn_t toStrFunc;
|
||||
__db_key_cmpname_fn_t cmpName;
|
||||
__db_destroy_cmp_fn_t destroyCmp;
|
||||
__db_key_cmp_destroy_fn_t destroyCmp;
|
||||
__db_value_encode_fn_t enValueFunc;
|
||||
__db_value_decode_fn_t deValueFunc;
|
||||
|
||||
|
|
Loading…
Reference in New Issue