~ruther/CTU-FEE-B0B35APO-Semestral-project

ref: 7fcd884c79d420631b9b5a208f4a82a04cca95cd CTU-FEE-B0B35APO-Semestral-project/file-browser/include/device_mount.h -rw-r--r-- 600 bytes
7fcd884c — František Boháček refactor: minimize filebrowser main functions 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef __MOUNT_UTILS_H__
#define __MOUNT_UTILS_H__

#include <sys/mount.h>
#include "file_access.h"

/**
 * @brief Mount device to target path
 * 
 * @param device device to be mounted
 * @param target folder to mount device to
 * @return file_operation_error_t
 */
file_operation_error_t device_mount(char *device, char *target);

/**
 * @brief Unmount device from target path
 *
 * @param device device to be unmounted
 * @param target folder device is mounted to
 * @return file_operation_error_t
 */
file_operation_error_t device_umount(char *device, char *target);

#endif // __MOUNT_UTILS_H__