54#ifndef MUTT_STORE_LIB_H
55#define MUTT_STORE_LIB_H
156 const char *(*version)(void);
163#define STORE_BACKEND_OPS(_name) \
164 const struct StoreOps store_##_name##_ops = { \
166 .open = store_##_name##_open, \
167 .fetch = store_##_name##_fetch, \
168 .free = store_##_name##_free, \
169 .store = store_##_name##_store, \
170 .delete_record = store_##_name##_delete_record, \
171 .close = store_##_name##_close, \
172 .version = store_##_name##_version, \
void StoreHandle
Opaque type for store backend.
bool store_is_valid_backend(const char *str)
Is the string a valid Store backend.
const struct StoreOps * store_get_backend_ops(const char *str)
Get the API functions for an store backend.
const char * store_backend_list(void)
Get a list of backend names.
void(* close)(StoreHandle **ptr)
int(* store)(StoreHandle *store, const char *key, size_t klen, void *value, size_t vlen)
const char * name
Store name.
int(* delete_record)(StoreHandle *store, const char *key, size_t klen)
void(* free)(StoreHandle *store, void **ptr)