Transformer SDK For C  6.2.11.309924
persistence_interface_t Struct Reference

Persistence execution functions. More...

Data Fields

int patch
 
int(* persist_add_key )(const char *key, const char *value, int flags)
 
int(* persist_delete_key )(const char *key, int flags)
 
char *(* persist_get )(const char *identifier)
 
void(* persist_query )(const char *query, persistence_query_cb callback, void *context)
 
void(* replicate_add_change_listener )(const char *prefix, persistence_listener_t *listener, void *ctx)
 
int version
 

Detailed Description

Persistence execution functions.

Modules that require the persistence module, should call the appropriate function pointer in the persistence_interface_t structure

Field Documentation

int persistence_interface_t::patch

Patch version of the persistence module

int(* persistence_interface_t::persist_add_key) (const char *key, const char *value, int flags)

Handle insert/put

int(* persistence_interface_t::persist_delete_key) (const char *key, int flags)

Handle delete

char*(* persistence_interface_t::persist_get) (const char *identifier)

Handle get

void(* persistence_interface_t::persist_query) (const char *query, persistence_query_cb callback, void *context)

Handle a query, callback gets called for every entry matching the query

void(* persistence_interface_t::replicate_add_change_listener) (const char *prefix, persistence_listener_t *listener, void *ctx)

Add a change listener to get notified of changes to data

int persistence_interface_t::version

Version number of the persistence module


The documentation for this struct was generated from the following file:

Generated on Sat Aug 26 2017 12:36:32 for Transformer SDK For C