From aa2484473e41fade8480379a62e182dda5cfe4af Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 18 May 2013 17:50:39 +0800 Subject: [PATCH] Usermode/ld-acess - Fixed compilation errors in devices.h, added another PTY IOCtl --- .../include_exp/acess/devices.h | 22 +++++++++---------- .../include_exp/acess/devices/pty.h | 1 + 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Usermode/Libraries/ld-acess.so_src/include_exp/acess/devices.h b/Usermode/Libraries/ld-acess.so_src/include_exp/acess/devices.h index c154c0bb..8c0955aa 100644 --- a/Usermode/Libraries/ld-acess.so_src/include_exp/acess/devices.h +++ b/Usermode/Libraries/ld-acess.so_src/include_exp/acess/devices.h @@ -28,20 +28,20 @@ enum eDrv_Video { VID_IOCTL_FINDMODE, VID_IOCTL_MODEINFO, VID_IOCTL_REQLFB // Request LFB -}; -struct sVideo_IOCtl_Mode { - short id; - Uint16 width; - Uint16 height; - Uint16 bpp; -}; +}; +struct sVideo_IOCtl_Mode { + short id; + unsigned short width; + unsigned short height; + unsigned short bpp; +}; typedef struct sVideo_IOCtl_Mode tVideo_IOCtl_Mode; //!< Mode Type // === MOUSE === -enum eDrv_Mouse { - MSE_IOCTL_SENS = 4, - MSE_IOCTL_MAX_X, - MSE_IOCTL_MAX_Y +enum eDrv_Mouse { + MSE_IOCTL_SENS = 4, + MSE_IOCTL_MAX_X, + MSE_IOCTL_MAX_Y }; // === Terminal === diff --git a/Usermode/Libraries/ld-acess.so_src/include_exp/acess/devices/pty.h b/Usermode/Libraries/ld-acess.so_src/include_exp/acess/devices/pty.h index 31978f43..d6136b63 100644 --- a/Usermode/Libraries/ld-acess.so_src/include_exp/acess/devices/pty.h +++ b/Usermode/Libraries/ld-acess.so_src/include_exp/acess/devices/pty.h @@ -37,6 +37,7 @@ enum PTY_IOCTL_SETMODE, PTY_IOCTL_GETDIMS, PTY_IOCTL_SETDIMS, + PTY_IOCTL_GETID, }; #endif -- 2.20.1