Lines Matching +full:max +full:- +full:load +full:- +full:value

5  * SPDX-License-Identifier: Apache-2.0
37 #define SETTINGS_MAX_DIR_DEPTH 8 /* max depth of settings tree */
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.
74 /**< Priority of commit, lower value is higher priority */
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.
90 /**< Set value handler of settings items identified by keyword names.
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
119 * with value.
122 * only one keyword at one call - what will impose limit to get/set
125 * Return: 0 on success, non-zero on failure.
143 /**< Priority of commit, lower value is higher priority */
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.
159 /**< Set value handler of settings items identified by keyword names.
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
186 * with value.
189 * only one keyword at one call - what will impose limit to get/set
192 * Return: 0 on success, non-zero on failure.
205 * @param _cprio commit priority (lower value is higher priority)
236 * @return 0 on success, non-zero on failure.
245 * @param cprio Commit priority (lower value is higher priority).
247 * @return 0 on success, non-zero on failure.
258 * @return 0 on success, non-zero on failure.
263 * Load serialized items from registered persistence sources. Handlers for
267 * @return 0 on success, non-zero on failure.
272 * Load limited set of serialized items from registered persistence sources.
277 * @return 0 on success, non-zero on failure.
294 * @return When nonzero value is returned, further subtree searching is stopped.
304 * Load limited set of serialized items using given callback.
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.
344 * Write a single serialized value to persisted storage (if it has
345 * changed value).
348 * @param value Pointer to the value of the settings item. This value will
350 * @param val_len Length of the value.
352 * @return 0 on success, non-zero on failure.
354 int settings_save_one(const char *name, const void *value, size_t val_len);
359 * Deleting an existing key-value pair in the settings mean
360 * to set its value to NULL.
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.
457 * load callback only on the final entity.
464 * - cs - Corresponding backend handler node
468 const char *value, size_t val_len);
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
601 * Set a value with a specific key to a module handler.
604 * @param data Binary value.
605 * @param len Value length in bytes.
607 * @return 0 on success, non-zero on failure.
612 * Get a value corresponding to a key from a module handler.
615 * @param data Returned binary value.
616 * @param len requested value length in bytes.
627 * @return 0 on success, non-zero on failure.