Loading...
Searching...
No Matches
constfs.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 Eistec AB
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 */
8
24#ifndef FS_CONSTFS_H
25#define FS_CONSTFS_H
26
27#include <stddef.h>
28#include <stdint.h>
29
30#include "vfs.h"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
39typedef struct {
40 const char *path;
41 const size_t size;
42 const void *data;
44
48typedef struct {
49 const size_t nfiles;
51} constfs_t;
52
59
60#ifdef __cplusplus
61}
62#endif
63
64#endif /* FS_CONSTFS_H */
65
const vfs_file_system_t constfs_file_system
ConstFS file system driver.
A file in ConstFS (file name + contents)
Definition constfs.h:39
const void * data
pointer to file contents
Definition constfs.h:42
const char * path
file system relative path to file
Definition constfs.h:40
const size_t size
length of data
Definition constfs.h:41
ConstFS file system superblock.
Definition constfs.h:48
const size_t nfiles
Number of files.
Definition constfs.h:49
const constfs_file_t * files
Files array.
Definition constfs.h:50
A file system driver.
Definition vfs.h:375