19 lines
736 B
C
19 lines
736 B
C
|
|
#ifndef __DORIS_KVDB_H__
|
||
|
|
#define __DORIS_KVDB_H__
|
||
|
|
|
||
|
|
struct doris_kvhandle;
|
||
|
|
|
||
|
|
struct doris_kvhandle *doris_kvdb_hanlde_new(const char *dir);
|
||
|
|
void doris_kvdb_handle_destroy(struct doris_kvhandle *handle);
|
||
|
|
|
||
|
|
bool doris_kvdb_update_keyint_valint(struct doris_kvhandle *handle, u_int64_t key, int64_t value);
|
||
|
|
bool doris_kvdb_update_keystr_valint(struct doris_kvhandle *handle, const char *key, int64_t value);
|
||
|
|
|
||
|
|
int doris_kvdb_delete_keyint(struct doris_kvhandle *handle, u_int64_t key);
|
||
|
|
int doris_kvdb_delete_keystr(struct doris_kvhandle *handle, const char *key);
|
||
|
|
|
||
|
|
int64_t doris_kvdb_get_keyint_valint(struct doris_kvhandle *handle, u_int64_t key);
|
||
|
|
int64_t doris_kvdb_get_keystr_valint(struct doris_kvhandle *handle, const char *key);
|
||
|
|
|
||
|
|
#endif
|