embpart/mount/mount.h

20 lines
491 B
C

#ifndef EMBPART_MOUNT_H
#define EMBPART_MOUNT_H
#include <stdint.h>
#define MNT_MAX_MOUNTED_VOLUMES (4)
#define MNT_MAX_MOUNT_NAME_LENGTH (15)
typedef struct {
void * fs_control_block; // pointer to file system control block
uint32_t part_size; // partition size
char mnt_name[MNT_MAX_MOUNT_NAME_LENGTH + 1]; // name of the mount
} Mnt_MountEntry;
typedef struct {
Mnt_MountEntry vols[MNT_MAX_MOUNTED_VOLUMES]; // volume slots
} Mnt_MountTable;
#endif //EMBPART_MOUNT_H