Nugget
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations
device.h File Reference
#include <stdint.h>
#include "common/psxlibc/stdio.h"
Include dependency graph for device.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Device
 

Typedefs

typedef void(* device_init) ()
 
typedef int(* device_open) (struct File *, const char *filename, int mode)
 
typedef int(* device_action) (struct File *, enum FileAction)
 
typedef int(* device_close) (struct File *)
 
typedef int(* device_ioctl) (struct File *, int cmd, int arg)
 
typedef int(* device_read) (struct File *, void *buffer, int size)
 
typedef int(* device_write) (struct File *, void *buffer, int size)
 
typedef int(* device_erase) (struct File *, const char *path)
 
typedef struct DirEntry *(* device_firstFile) (struct File *file, const char *filename, struct DirEntry *entry)
 
typedef struct DirEntry *(* device_nextFile) (struct File *file, struct DirEntry *entry)
 
typedef int(* device_format) (struct File *file)
 
typedef int(* device_rename) (struct File *oldFile, const char *oldName, struct File *newFile, const char *newName)
 
typedef void(* device_deinit) ()
 

Enumerations

enum  FileAction { PSXREAD = 1 , PSXWRITE = 2 }
 
enum  {
  PSXDTTYPE_CHAR = 0x01 , PSXDTTYPE_CONS = 0x02 , PSXDTTYPE_BLOCK = 0x04 , PSXDTTYPE_RAW = 0x08 ,
  PSXDTTYPE_FS = 0x10
}
 

Typedef Documentation

◆ device_action

typedef int(* device_action) (struct File *, enum FileAction)

◆ device_close

typedef int(* device_close) (struct File *)

◆ device_deinit

typedef void(* device_deinit) ()

◆ device_erase

typedef int(* device_erase) (struct File *, const char *path)

◆ device_firstFile

typedef struct DirEntry *(* device_firstFile) (struct File *file, const char *filename, struct DirEntry *entry)

◆ device_format

typedef int(* device_format) (struct File *file)

◆ device_init

typedef void(* device_init) ()

◆ device_ioctl

typedef int(* device_ioctl) (struct File *, int cmd, int arg)

◆ device_nextFile

typedef struct DirEntry *(* device_nextFile) (struct File *file, struct DirEntry *entry)

◆ device_open

typedef int(* device_open) (struct File *, const char *filename, int mode)

◆ device_read

typedef int(* device_read) (struct File *, void *buffer, int size)

◆ device_rename

typedef int(* device_rename) (struct File *oldFile, const char *oldName, struct File *newFile, const char *newName)

◆ device_write

typedef int(* device_write) (struct File *, void *buffer, int size)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PSXDTTYPE_CHAR 
PSXDTTYPE_CONS 
PSXDTTYPE_BLOCK 
PSXDTTYPE_RAW 
PSXDTTYPE_FS 

◆ FileAction

enum FileAction
Enumerator
PSXREAD 
PSXWRITE