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