Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
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
{
62
suit_storage_t
storage
;
63
const
char
**
files
;
64
uint8_t
active_region
;
65
}
suit_storage_vfs_t
;
66
67
#ifdef __cplusplus
68
}
69
#endif
70
71
#endif
/* SUIT_STORAGE_VFS_H */
suit_storage_vfs_t
riotboot vfs SUIT storage context
Definition
vfs.h:61
suit_storage_vfs_t::files
const char ** files
storage file array
Definition
vfs.h:63
suit_storage_vfs_t::storage
suit_storage_t storage
parent struct
Definition
vfs.h:62
suit_storage_vfs_t::active_region
uint8_t active_region
Active file idx to write to.
Definition
vfs.h:64
suit_storage
Generic storage backend state.
Definition
storage.h:293
vfs_default.h
VFS default mount points.
Generated on Sat Nov 23 2024 19:57:25 by
1.9.8