Lines Matching +full:key +full:- +full:string
5 * SPDX-License-Identifier: Apache-2.0
46 #define SETTINGS_EXTRA_LEN ((SETTINGS_MAX_DIR_DEPTH - 1) + 2)
58 * @return positive: Number of bytes read, 0: key-value pair is deleted.
59 * On error returns -ERRNO code.
76 int (*h_get)(const char *key, char *val, int val_len_max);
80 * - key[in] the name with skipped part that was used as name in
82 * - val[out] buffer to receive value.
83 * - val_len_max[in] size of that buffer.
88 int (*h_set)(const char *key, size_t len, settings_read_cb read_cb,
93 * - key[in] the name with skipped part that was used as name in
95 * - len[in] the size of the data found in the backend.
96 * - read_cb[in] function provided to read the data from the backend.
97 * - cb_arg[in] arguments for the read function provided by the
100 * Return: 0 on success, non-zero on failure.
107 * Return: 0 on success, non-zero on failure.
116 * - export_func: the pointer to the internal function which appends
117 * a single key-value pair to persisted settings. Don't store
118 * duplicated value. The name is subtree/key string, val is the string
122 * only one keyword at one call - what will impose limit to get/set
123 * values using full subtree/key name.
125 * Return: 0 on success, non-zero on failure.
145 int (*h_get)(const char *key, char *val, int val_len_max);
149 * - key[in] the name with skipped part that was used as name in
151 * - val[out] buffer to receive value.
152 * - val_len_max[in] size of that buffer.
157 int (*h_set)(const char *key, size_t len, settings_read_cb read_cb,
162 * - key[in] the name with skipped part that was used as name in
164 * - len[in] the size of the data found in the backend.
165 * - read_cb[in] function provided to read the data from the backend.
166 * - cb_arg[in] arguments for the read function provided by the
169 * Return: 0 on success, non-zero on failure.
183 * - export_func: the pointer to the internal function which appends
184 * a single key-value pair to persisted settings. Don't store
185 * duplicated value. The name is subtree/key string, val is the string
189 * only one keyword at one call - what will impose limit to get/set
190 * values using full subtree/key name.
192 * Return: 0 on success, non-zero on failure.
236 * @return 0 on success, non-zero on failure.
247 * @return 0 on success, non-zero on failure.
258 * @return 0 on success, non-zero on failure.
267 * @return 0 on success, non-zero on failure.
277 * @return 0 on success, non-zero on failure.
285 * @param[in] key the name with skipped part that was used as name in
297 const char *key,
318 * @return 0 on success, non-zero on failure.
329 * @return 0 on success, non-zero on failure.
339 * @return 0 on success, non-zero on failure.
347 * @param name Name/key of the settings item.
352 * @return 0 on success, non-zero on failure.
359 * Deleting an existing key-value pair in the settings mean
362 * @param name Name/key of the settings item.
364 * @return 0 on success, non-zero on failure.
372 * @return 0 on success, non-zero on failure.
382 * @return 0 on success, non-zero on failure.
450 * - cs - Corresponding backend handler node,
451 * - arg - Structure that holds additional data for data loading.
464 * - cs - Corresponding backend handler node
469 /**< Save a single key-value pair to storage.
472 * - cs - Corresponding backend handler node
473 * - name - Key in string format
474 * - value - Binary value
475 * - val_len - Length of value in bytes.
482 * - cs - Corresponding backend handler node
488 * - cs - Corresponding backend handler node
515 * Parses a key to an array of elements and locate corresponding module handler.
517 * @param[in] name in string format
555 * Compares the start of name with a key
557 * @param[in] name in string format
558 * @param[in] key comparison string
574 int settings_name_steq(const char *name, const char *key, const char **next);
579 * @param[in] name in string format
601 * Set a value with a specific key to a module handler.
603 * @param name Key in string format.
607 * @return 0 on success, non-zero on failure.
612 * Get a value corresponding to a key from a module handler.
614 * @param name Key in string format.
625 * @param name Key in string format.
627 * @return 0 on success, non-zero on failure.
640 * It might pointer to: `struct nvs_fs`, `struct fcb` or string witch file name