Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
kv_store_cb Struct Reference

KV store callback structure. More...

#include <kv_store.h>

Data Fields

void(* value_changed )(uint16_t key, const void *data, size_t data_len, void *user_ctx)
 The value for a key has changed.
 
void * user_ctx
 
sys_snode_t node
 

Detailed Description

KV store callback structure.

Field Documentation

◆ node

sys_snode_t kv_store_cb::node

◆ user_ctx

void* kv_store_cb::user_ctx

◆ value_changed

void(* kv_store_cb::value_changed) (uint16_t key, const void *data, size_t data_len, void *user_ctx)

The value for a key has changed.

This callback notifies the application that the value stored for a key has changed or been deleted.

Parameters
keyKey that has changed
dataPointer to value, or NULL if deleted
data_lenLength of value in bytes
user_ctxUser context pointer

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