Loading...
Searching...
No Matches
vfs.h
1/*
2 * SPDX-FileCopyrightText: 2022 Inria
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
32
33#include "suit.h"
34#include "../../sys/include/vfs.h"
35#include "vfs_default.h"
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
44#ifndef CONFIG_SUIT_STORAGE_MOUNT_POINT
45#define CONFIG_SUIT_STORAGE_MOUNT_POINT VFS_DEFAULT_DATA
46#endif
47
51#ifndef CONFIG_SUIT_STORAGE_SEQ_NO_LOCATION
52#define CONFIG_SUIT_STORAGE_SEQ_NO_LOCATION (CONFIG_SUIT_STORAGE_MOUNT_POINT "/SEQNO.txt")
53#endif
54
58typedef struct {
60 const char **files;
61 uint8_t active_region;
63
64#ifdef __cplusplus
65}
66#endif
67
struct suit_storage suit_storage_t
Forward declaration for storage struct.
Definition storage.h:107
riotboot vfs SUIT storage context
Definition vfs.h:58
const char ** files
storage file array
Definition vfs.h:60
suit_storage_t storage
parent struct
Definition vfs.h:59
uint8_t active_region
Active file idx to write to.
Definition vfs.h:61
VFS default mount points.