opensc
NPCI secure-component & UPI Lite / Lite X wallet reimplementation
Loading...
Searching...
No Matches
lite_store Struct Reference

SharedPreferences-shaped store, namespaced by file (e.g. "NPCICLVAULT", "DataUPI"). More...

#include <store.h>

Data Fields

void * ctx
 Backend-private state.
 
long(* get )(void *ctx, const char *file, const char *key, char *out, size_t cap)
 Reads file/key into out (NUL-terminated); returns length, or -1 if absent/too small. out may be NULL to query length.
 
int(* set )(void *ctx, const char *file, const char *key, const char *val)
 Writes file/key=val. 0 on success.
 
int(* remove )(void *ctx, const char *file, const char *key)
 Removes file/key. 0 on success.
 

Detailed Description

SharedPreferences-shaped store, namespaced by file (e.g. "NPCICLVAULT", "DataUPI").


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