Lines Matching +full:positive +full:- +full:cs

5  * SPDX-License-Identifier: Apache-2.0
44 #define SETTINGS_EXTRA_LEN ((SETTINGS_MAX_DIR_DEPTH - 1) + 2)
56 * @return positive: Number of bytes read, 0: key-value pair is deleted.
57 * On error returns -ERRNO code.
75 * - key[in] the name with skipped part that was used as name in
77 * - val[out] buffer to receive value.
78 * - val_len_max[in] size of that buffer.
88 * - key[in] the name with skipped part that was used as name in
90 * - len[in] the size of the data found in the backend.
91 * - read_cb[in] function provided to read the data from the backend.
92 * - cb_arg[in] arguments for the read function provided by the
95 * Return: 0 on success, non-zero on failure.
102 * Return: 0 on success, non-zero on failure.
111 * - export_func: the pointer to the internal function which appends
112 * a single key-value pair to persisted settings. Don't store
117 * only one keyword at one call - what will impose limit to get/set
120 * Return: 0 on success, non-zero on failure.
141 * - key[in] the name with skipped part that was used as name in
143 * - val[out] buffer to receive value.
144 * - val_len_max[in] size of that buffer.
154 * - key[in] the name with skipped part that was used as name in
156 * - len[in] the size of the data found in the backend.
157 * - read_cb[in] function provided to read the data from the backend.
158 * - cb_arg[in] arguments for the read function provided by the
161 * Return: 0 on success, non-zero on failure.
175 * - export_func: the pointer to the internal function which appends
176 * a single key-value pair to persisted settings. Don't store
181 * only one keyword at one call - what will impose limit to get/set
184 * Return: 0 on success, non-zero on failure.
220 * @return 0 on success, non-zero on failure.
229 * @return 0 on success, non-zero on failure.
238 * @return 0 on success, non-zero on failure.
248 * @return 0 on success, non-zero on failure.
289 * @return 0 on success, non-zero on failure.
300 * @return 0 on success, non-zero on failure.
313 * @return 0 on success, non-zero on failure.
320 * Deleting an existing key-value pair in the settings mean
325 * @return 0 on success, non-zero on failure.
333 * @return 0 on success, non-zero on failure.
343 * @return 0 on success, non-zero on failure.
406 int (*csi_load)(struct settings_store *cs,
411 * - cs - Corresponding backend handler node,
412 * - arg - Structure that holds additional data for data loading.
421 int (*csi_save_start)(struct settings_store *cs);
425 * - cs - Corresponding backend handler node
428 int (*csi_save)(struct settings_store *cs, const char *name,
430 /**< Save a single key-value pair to storage.
433 * - cs - Corresponding backend handler node
434 * - name - Key in string format
435 * - value - Binary value
436 * - val_len - Length of value in bytes.
439 int (*csi_save_end)(struct settings_store *cs);
443 * - cs - Corresponding backend handler node
449 * - cs - Corresponding backend handler node
451 void *(*csi_storage_get)(struct settings_store *cs);
457 * @param cs Backend handler node containing handler information.
460 void settings_src_register(struct settings_store *cs);
465 * @param cs Backend handler node containing handler information.
468 void settings_dst_register(struct settings_store *cs);
568 * @return 0 on success, non-zero on failure.
588 * @return 0 on success, non-zero on failure.