From 8e5a12fe49ef6c1f6ede6f26f8797b35c5940fd3 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Sat, 13 Jul 2019 20:16:51 +0200 Subject: [PATCH] hal: Mark X-prefixed file I/O as deprecated --- lib/hal/fileio.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/hal/fileio.h b/lib/hal/fileio.h index ac701bab1..6a0e3c569 100644 --- a/lib/hal/fileio.h +++ b/lib/hal/fileio.h @@ -65,6 +65,7 @@ int XConvertDOSFilenameToXBOX( const char *dosFilename, char *xboxFilename); +__attribute__((deprecated)) int XCreateFile( int *handle, const char *filename, @@ -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);