diff options
author | Rinnegatamante | 2017-06-15 11:36:33 +0200 |
---|---|---|
committer | Sunguk Lee | 2017-06-15 18:36:33 +0900 |
commit | b5646d6867a3c279e0a7f5b3db42678f84d7ff15 (patch) | |
tree | b625c863cf3657b5901523e438bddb8330c10a74 /include/user/usbd.h | |
parent | Removed next entry (diff) | |
download | vds-libraries-b5646d6867a3c279e0a7f5b3db42678f84d7ff15.tar.gz |
Named anonymous enums in psp2. (#179)
* Named anonymous enums in psp2.
Named anonymous enums in psp2.
* Properly sorted enums.
* Several modifications (see desc)
Added some missing info, fixed identation in some places, aligned all
enums and comments with spaces as delimiters, replaced decimal negative
errorcode in location.h with hexadecimal one, added some comments and
fixed some documentation comments.
* Minor fixes in identation.
* Yet another minor identation fix.
* Fixed enums in structs.
* Reverted SceBool changes.
* SceBool fix.
* Fix for compilation with g++-
* Added some doc references in jpegenc.
* Fixed some references.
Diffstat (limited to 'include/user/usbd.h')
-rw-r--r-- | include/user/usbd.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/include/user/usbd.h b/include/user/usbd.h index 2399abe..bc3e746 100644 --- a/include/user/usbd.h +++ b/include/user/usbd.h @@ -7,19 +7,21 @@ extern "C" { #endif -#define SCE_USBD_ERROR_ACCESS 0x80240003 -#define SCE_USBD_ERROR_BUSY 0x80240006 -#define SCE_USBD_ERROR_FATAL 0x802400ff -#define SCE_USBD_ERROR_INTERRUPTED 0x8024000a -#define SCE_USBD_ERROR_INVALID_ARG 0x80240002 -#define SCE_USBD_ERROR_IO 0x80240001 -#define SCE_USBD_ERROR_NO_DEVICE 0x80240004 -#define SCE_USBD_ERROR_NO_MEM 0x8024000b -#define SCE_USBD_ERROR_NOT_FOUND 0x80240005 -#define SCE_USBD_ERROR_NOT_SUPPORTED 0x8024000c -#define SCE_USBD_ERROR_OVERFLOW 0x80240008 -#define SCE_USBD_ERROR_PIPE 0x80240009 -#define SCE_USBD_ERROR_TIMEOUT 0x80240007 +typedef enum SceUsbdErrorCode { + SCE_USBD_ERROR_IO = 0x80240001, + SCE_USBD_ERROR_INVALID_ARG = 0x80240002, + SCE_USBD_ERROR_ACCESS = 0x80240003, + SCE_USBD_ERROR_NO_DEVICE = 0x80240004, + SCE_USBD_ERROR_NOT_FOUND = 0x80240005, + SCE_USBD_ERROR_BUSY = 0x80240006, + SCE_USBD_ERROR_TIMEOUT = 0x80240007, + SCE_USBD_ERROR_OVERFLOW = 0x80240008, + SCE_USBD_ERROR_PIPE = 0x80240009, + SCE_USBD_ERROR_INTERRUPTED = 0x8024000a, + SCE_USBD_ERROR_NO_MEM = 0x8024000b, + SCE_USBD_ERROR_NOT_SUPPORTED = 0x8024000c, + SCE_USBD_ERROR_FATAL = 0x802400ff +} SceUsbdErrorCode; typedef struct SceUsbdDeviceInfo { unsigned int unk0; |