vfs.h
1 /*
2  * Copyright (C) 2022 Inria
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
33 #ifndef SUIT_STORAGE_VFS_H
34 #define SUIT_STORAGE_VFS_H
35 
36 #include "suit.h"
37 #include "../../sys/include/vfs.h"
38 #include "vfs_default.h"
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
47 #ifndef CONFIG_SUIT_STORAGE_MOUNT_POINT
48 #define CONFIG_SUIT_STORAGE_MOUNT_POINT VFS_DEFAULT_DATA
49 #endif
50 
54 #ifndef CONFIG_SUIT_STORAGE_SEQ_NO_LOCATION
55 #define CONFIG_SUIT_STORAGE_SEQ_NO_LOCATION (CONFIG_SUIT_STORAGE_MOUNT_POINT "/SEQNO.txt")
56 #endif
57 
61 typedef struct {
63  const char **files;
64  uint8_t active_region;
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif /* SUIT_STORAGE_VFS_H */
riotboot vfs SUIT storage context
Definition: vfs.h:61
const char ** files
storage file array
Definition: vfs.h:63
suit_storage_t storage
parent struct
Definition: vfs.h:62
uint8_t active_region
Active file idx to write to.
Definition: vfs.h:64
Generic storage backend state.
Definition: storage.h:293
VFS default mount points.