Files
epics-base/modules/libcom/RTEMS/epicsMemFs.h
2018-10-26 17:04:53 -05:00

25 lines
784 B
C

/*************************************************************************\
* Copyright (c) 2014 Brookhaven National Laboratory.
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/
#ifndef EPICSMEMFS_H
#define EPICSMEMFS_H
#include <stdlib.h>
typedef struct {
const char * const *directory; /* NULL terminated list of directories */
const char *name; /* file name */
const char *data; /* file contents */
size_t size; /* size of file contents in bytes */
} epicsMemFile;
typedef struct {
const epicsMemFile * const *files;
} epicsMemFS;
int epicsMemFsLoad(const epicsMemFS *fs);
#endif // EPICSMEMFS_H