Skip to content

Commit

Permalink
hal: Mark X-prefixed file I/O as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
thrimbor authored and JayFoxRox committed Aug 28, 2019
1 parent 5a1b9a0 commit 8e5a12f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/hal/fileio.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ int XConvertDOSFilenameToXBOX(
const char *dosFilename,
char *xboxFilename);

__attribute__((deprecated))
int XCreateFile(
int *handle,
const char *filename,
Expand All @@ -73,41 +74,50 @@ int XCreateFile(
unsigned int creationDisposition,
unsigned int flagsAndAttributes);

__attribute__((deprecated))
int XReadFile(
int handle,
void *buffer,
unsigned int numberOfBytesToRead,
unsigned int *numberOfBytesRead);

__attribute__((deprecated))
int XWriteFile(
int handle,
void *buffer,
unsigned int numberOfBytesToWrite,
unsigned int *numberOfBytesWritten);

__attribute__((deprecated))
int XCloseHandle(
int handle);

__attribute__((deprecated))
int XGetFileSize(
int handle,
unsigned int *filesize);

__attribute__((deprecated))
int XSetFilePointer(
int handle,
int distanceToMove,
int *newFilePointer,
int moveMethod);

__attribute__((deprecated))
int XRenameFile(
const char *oldFilename,
const char *newFilename);

__attribute__((deprecated))
int XCreateDirectory(
char *directoryName);

__attribute__((deprecated))
int XDeleteFile(
const char *fileName);

__attribute__((deprecated))
int XDeleteDirectory(
const char *directoryName);

Expand Down

0 comments on commit 8e5a12f

Please sign in to comment.