2018-05-05 16:30:25 +02:00
|
|
|
#ifndef FUSEE_FS_DEV_H
|
|
|
|
#define FUSEE_FS_DEV_H
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
2018-05-13 19:53:55 +02:00
|
|
|
#include "device_partition.h"
|
2018-05-05 16:30:25 +02:00
|
|
|
|
2018-05-13 19:53:55 +02:00
|
|
|
int fsdev_mount_device(const char *name, const device_partition_t *devpart, bool initialize_immediately);
|
2018-05-17 01:53:32 +02: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 16:30:25 +02:00
|
|
|
|
|
|
|
int fsdev_unmount_all(void);
|
|
|
|
|
|
|
|
#endif
|