`settings_mount_fs_backend()` has been deprecated for more than 2 releases, remove it. Signed-off-by: Yong Cong Sin <ycsin@meta.com>
40 lines
855 B
C
40 lines
855 B
C
/*
|
|
* Copyright (c) 2018 Nordic Semiconductor ASA
|
|
* Copyright (c) 2015 Runtime Inc
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef __SETTINGS_FILE_H_
|
|
#define __SETTINGS_FILE_H_
|
|
|
|
#include <zephyr/toolchain.h>
|
|
#include <zephyr/settings/settings.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define SETTINGS_FILE_NAME_MAX 32 /* max length for settings filename */
|
|
|
|
struct settings_file {
|
|
struct settings_store cf_store;
|
|
const char *cf_name; /* filename */
|
|
int cf_maxlines; /* max # of lines before compressing */
|
|
int cf_lines; /* private */
|
|
};
|
|
|
|
/* register file to be source of settings */
|
|
int settings_file_src(struct settings_file *cf);
|
|
|
|
/* settings saves go to a file */
|
|
int settings_file_dst(struct settings_file *cf);
|
|
|
|
void settings_mount_file_backend(struct settings_file *cf);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __SETTINGS_FILE_H_ */
|