2018-05-05 15:30:25 +01:00
|
|
|
#ifndef FUSEE_FS_DEV_H
|
|
|
|
#define FUSEE_FS_DEV_H
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
2018-05-13 18:53:55 +01:00
|
|
|
#include "device_partition.h"
|
2018-05-05 15:30:25 +01:00
|
|
|
|
2018-05-13 18:53:55 +01:00
|
|
|
int fsdev_mount_device(const char *name, const device_partition_t *devpart, bool initialize_immediately);
|
2018-05-17 00:53:32 +01:00
|
|
|
int fsdev_register_device(const char *name);
|
|
|
|
int fsdev_set_default_device(const char *name); /* must be registered. */
|
|
|
|
|
|
|
|
int fsdev_unregister_device(const char *name);
|
|
|
|
int fsdev_unmount_device(const char *name); /* also unregisters. */
|
2018-05-05 15:30:25 +01:00
|
|
|
|
|
|
|
int fsdev_unmount_all(void);
|
|
|
|
|
|
|
|
#endif
|