Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Data Structures | Macros | Typedefs | Functions
fat32.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mfat_part_st
 
struct  mfat_stream_t
 
struct  mfat_dirent_t
 

Macros

#define MFAT_FIND_VOL   1
 
#define MFAT_FIND_DIR   2
 
#define MFAT_FIND_FILE   4
 
#define IS_MFAT_DIR(p)   (!!((p)&0x10))
 
#define IS_MFAT_VOL(p)   (!!((p)&0x08))
 
#define IS_MFAT_FILE(p)   (((p)&0x18)==0)
 

Typedefs

typedef int(* mfat_io_callback_func_t) (Uint32 block, Uint8 *data)
 

Functions

void mfat_init (mfat_io_callback_func_t reader, mfat_io_callback_func_t writer, Uint32 device_size)
 
int mfat_init_mbr (void)
 
int mfat_use_part (int part)
 
int mfat_normalize_name (char *d, const char *s)
 
int mfat_fatize_name (char *d, const char *s)
 
int mfat_read_directory (mfat_dirent_t *p, int type_filter)
 
int mfat_search_in_directory (mfat_dirent_t *p, const char *name, int type_filter)
 
void mfat_open_rootdir (mfat_stream_t *p)
 
Uint32 mfat_get_real_size (mfat_stream_t *p, int *fragmented)
 
Uint32 mfat_overwrite_file_with_direct_linear_device_block_write (mfat_dirent_t *dirent, const char *name, Uint32 size)
 

Macro Definition Documentation

◆ IS_MFAT_DIR

#define IS_MFAT_DIR (   p)    (!!((p)&0x10))

Definition at line 26 of file fat32.h.

◆ IS_MFAT_FILE

#define IS_MFAT_FILE (   p)    (((p)&0x18)==0)

Definition at line 28 of file fat32.h.

◆ IS_MFAT_VOL

#define IS_MFAT_VOL (   p)    (!!((p)&0x08))

Definition at line 27 of file fat32.h.

◆ MFAT_FIND_DIR

#define MFAT_FIND_DIR   2

Definition at line 23 of file fat32.h.

◆ MFAT_FIND_FILE

#define MFAT_FIND_FILE   4

Definition at line 24 of file fat32.h.

◆ MFAT_FIND_VOL

#define MFAT_FIND_VOL   1

Definition at line 22 of file fat32.h.

Typedef Documentation

◆ mfat_io_callback_func_t

typedef int(* mfat_io_callback_func_t) (Uint32 block, Uint8 *data)

Definition at line 30 of file fat32.h.

Function Documentation

◆ mfat_fatize_name()

int mfat_fatize_name ( char *  d,
const char *  s 
)

Definition at line 921 of file fat32.c.

Here is the caller graph for this function:

◆ mfat_get_real_size()

Uint32 mfat_get_real_size ( mfat_stream_t p,
int *  fragmented 
)

Definition at line 560 of file fat32.c.

◆ mfat_init()

void mfat_init ( mfat_io_callback_func_t  reader,
mfat_io_callback_func_t  writer,
Uint32  device_size 
)

Definition at line 323 of file fat32.c.

◆ mfat_init_mbr()

int mfat_init_mbr ( void  )

Definition at line 339 of file fat32.c.

◆ mfat_normalize_name()

int mfat_normalize_name ( char *  d,
const char *  s 
)

Definition at line 956 of file fat32.c.

Here is the caller graph for this function:

◆ mfat_open_rootdir()

void mfat_open_rootdir ( mfat_stream_t p)

Definition at line 542 of file fat32.c.

Here is the call graph for this function:

◆ mfat_overwrite_file_with_direct_linear_device_block_write()

Uint32 mfat_overwrite_file_with_direct_linear_device_block_write ( mfat_dirent_t dirent,
const char *  name,
Uint32  size 
)

Definition at line 813 of file fat32.c.

Here is the call graph for this function:

◆ mfat_read_directory()

int mfat_read_directory ( mfat_dirent_t p,
int  type_filter 
)

Definition at line 718 of file fat32.c.

Here is the caller graph for this function:

◆ mfat_search_in_directory()

int mfat_search_in_directory ( mfat_dirent_t p,
const char *  name,
int  type_filter 
)

Definition at line 786 of file fat32.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mfat_use_part()

int mfat_use_part ( int  part)

Definition at line 406 of file fat32.c.