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

ref: a99d8c489e81f73ee946a882cd55056877c35a52 CTU-FEE-B0B35APO-Semestral-project/file-browser/include/device_mount.h -rw-r--r-- 600 bytes
a99d8c48 — František Boháček feat: add file browser main loop 3 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__
Do not follow this link