28#ifndef PROTOCORE_CONFIG_STORE_H
29#define PROTOCORE_CONFIG_STORE_H
33#if PROTOCORE_ENABLE_CONFIG_STORE
45} ConfigStoreBeginArgs;
52} ConfigStoreSetStrArgs;
61} ConfigStoreGetStrArgs;
68} ConfigStoreSetU32Args;
75} ConfigStoreGetU32Args;
83} ConfigStoreSetBlobArgs;
91} ConfigStoreGetBlobArgs;
97} ConfigStoreEraseArgs;
100 ConfigStoreBeginArgs begin_args;
101 ConfigStoreSetStrArgs set_str_args;
102 ConfigStoreGetStrArgs get_str_args;
103 ConfigStoreSetU32Args set_u32_args;
104 ConfigStoreGetU32Args get_u32_args;
105 ConfigStoreSetBlobArgs set_blob_args;
106 ConfigStoreGetBlobArgs get_blob_args;
107 ConfigStoreEraseArgs erase_args;
114extern ConfigStoreVars ConfigStoreV;
119 void (*
const begin)(uint8_t *work);
120 void (*
const set_str)(uint8_t *work);
121 void (*
const get_str)(uint8_t *work);
122 void (*
const set_u32)(uint8_t *work);
123 void (*
const get_u32)(uint8_t *work);
124 void (*
const set_blob)(uint8_t *work);
125 void (*
const get_blob)(uint8_t *work);
126 void (*
const erase)(uint8_t *work);
127 void (*
const clear)(uint8_t *work);
132void protocore_config_store_begin(uint8_t *work);
133void protocore_config_store_set_str(uint8_t *work);
134void protocore_config_store_get_str(uint8_t *work);
135void protocore_config_store_set_u32(uint8_t *work);
136void protocore_config_store_get_u32(uint8_t *work);
137void protocore_config_store_set_blob(uint8_t *work);
138void protocore_config_store_get_blob(uint8_t *work);
139void protocore_config_store_erase(uint8_t *work);
140void protocore_config_store_clear(uint8_t *work);
146static const ConfigStoreNs ConfigStore __attribute__((unused)) = {
147 .begin = protocore_config_store_begin,
148 .set_str = protocore_config_store_set_str,
149 .get_str = protocore_config_store_get_str,
150 .set_u32 = protocore_config_store_set_u32,
151 .get_u32 = protocore_config_store_get_u32,
152 .set_blob = protocore_config_store_set_blob,
153 .get_blob = protocore_config_store_get_blob,
154 .erase = protocore_config_store_erase,
155 .clear = protocore_config_store_clear,
167uint8_t *protocore_config_store_span(
void);
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS