Lines Matching +full:positive +full:- +full:cs
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.
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.
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
122 * only one keyword at one call - what will impose limit to get/set
125 * Return: 0 on success, non-zero on failure.
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.
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
189 * only one keyword at one call - what will impose limit to get/set
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.
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.
352 * @return 0 on success, non-zero on failure.
359 * Deleting an existing key-value pair in the settings mean
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.
445 int (*csi_load)(struct settings_store *cs,
450 * - cs - Corresponding backend handler node,
451 * - arg - Structure that holds additional data for data loading.
460 int (*csi_save_start)(struct settings_store *cs);
464 * - cs - Corresponding backend handler node
467 int (*csi_save)(struct settings_store *cs, const char *name,
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.
478 int (*csi_save_end)(struct settings_store *cs);
482 * - cs - Corresponding backend handler node
488 * - cs - Corresponding backend handler node
490 void *(*csi_storage_get)(struct settings_store *cs);
496 * @param cs Backend handler node containing handler information.
499 void settings_src_register(struct settings_store *cs);
504 * @param cs Backend handler node containing handler information.
507 void settings_dst_register(struct settings_store *cs);
607 * @return 0 on success, non-zero on failure.
627 * @return 0 on success, non-zero on failure.