From 9f45649bc1bd6cbdbe8b2c4233726dae47dae480 Mon Sep 17 00:00:00 2001 From: Reiko Asakura Date: Thu, 23 Jul 2020 15:34:54 -0400 Subject: Add {,k}sceIo{Io,Dev}ctlAsync prototypes --- include/user/io/devctl.h | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) (limited to 'include/user/io/devctl.h') diff --git a/include/user/io/devctl.h b/include/user/io/devctl.h index 2b9c96a..47f6ac8 100644 --- a/include/user/io/devctl.h +++ b/include/user/io/devctl.h @@ -1,35 +1,8 @@ #ifndef _PSP2_IO_DEVCTL_H_ #define _PSP2_IO_DEVCTL_H_ -#include - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct SceIoDevInfo { - SceOff max_size; - SceOff free_size; - SceSize cluster_size; - void *unk; -} SceIoDevInfo; +#pragma GCC warning "psp2/io/devctl.h is deprecated. Please include psp2/kernel/iofilemgr.h." -/** - * Perform an ioctl on a device. (asynchronous) - * - * @param fd - Opened file descriptor to ioctl to - * @param cmd - The command to send to the device - * @param indata - A data block to send to the device, if NULL sends no data - * @param inlen - Length of indata, if 0 sends no data - * @param outdata - A data block to receive the result of a command, if NULL receives no data - * @param outlen - Length of outdata, if 0 receives no data - * @return 0 on success, < 0 on error - */ -int sceIoIoctlAsync(SceUID fd, unsigned int cmd, void *indata, int inlen, void *outdata, int outlen); - -#ifdef __cplusplus -} -#endif +#include #endif /* _PSP2_IO_DEVCTL_H_ */ - -- cgit v1.2.3