1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::prelude::*;

pub const FS_FAT_MOUNT_READONLY: u32    = 0x00000000;
pub const FS_FAT_MOUNT_READWRITE: u32   = 0x00000001;

extern "C" {
    pub fn fs_fat_init() -> c_int;
    pub fn fs_fat_shutdown() -> c_int;
    pub fn fs_fat_mount(mp: *const c_char, dev: *mut crate::os::blockdev::kos_blockdev_t,
                        flags: u32) -> c_int;
    pub fn fs_fat_unmount(mp: *const c_char) -> c_int;
    pub fn fs_fat_sync(mp: *const c_char) -> c_int;
}