EPICS Base  7.0.6.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
epicsMemFs.h
1 /*************************************************************************\
2 * Copyright (c) 2014 Brookhaven National Laboratory.
3 * SPDX-License-Identifier: EPICS
4 * EPICS BASE is distributed subject to a Software License Agreement found
5 * in file LICENSE that is included with this distribution.
6 \*************************************************************************/
7 #ifndef EPICSMEMFS_H
8 #define EPICSMEMFS_H
9 
10 #include <stdlib.h>
11 
12 typedef struct {
13  const char * const *directory; /* NULL terminated list of directories */
14  const char *name; /* file name */
15  const char *data; /* file contents */
16  size_t size; /* size of file contents in bytes */
17 } epicsMemFile;
18 
19 typedef struct {
20  const epicsMemFile * const *files;
21 } epicsMemFS;
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 int epicsMemFsLoad(const epicsMemFS *fs);
28 
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 #endif // EPICSMEMFS_H