49 return vlopen(path, VL_OWRITER | VL_OCREAT, VL_CMPLEX);
62 void *rv = vlget(db, key, klen, &sp);
78static int store_qdbm_store(
void *store,
const char *key,
size_t klen,
void *value,
size_t vlen)
86 bool success = vlput(db, key, klen, value, vlen, VL_DOVER);
87 return success ? 0 : dpecode ? dpecode : -1;
101 bool success = vlout(db, key, klen);
102 return success ? 0 : dpecode ? dpecode : -1;
123 return "qdbm " _QDBM_VERSION;
static void store_qdbm_close(void **ptr)
Implements StoreOps::close() -.
static int store_qdbm_delete_record(void *store, const char *key, size_t klen)
Implements StoreOps::delete_record() -.
static void * store_qdbm_fetch(void *store, const char *key, size_t klen, size_t *vlen)
Implements StoreOps::fetch() -.
static void store_qdbm_free(void *store, void **ptr)
Implements StoreOps::free() -.
static void * store_qdbm_open(const char *path)
Implements StoreOps::open() -.
static int store_qdbm_store(void *store, const char *key, size_t klen, void *value, size_t vlen)
Implements StoreOps::store() -.
static const char * store_qdbm_version(void)
Implements StoreOps::version() -.
Convenience wrapper for the library headers.
#define STORE_BACKEND_OPS(_name)