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/sysmodule.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/sysmodule.h')
-rw-r--r-- | include/user/sysmodule.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/include/user/sysmodule.h b/include/user/sysmodule.h index 8cc2a37..23319cb 100644 --- a/include/user/sysmodule.h +++ b/include/user/sysmodule.h @@ -7,15 +7,15 @@ extern "C" { #endif -enum { - SCE_SYSMODULE_LOADED = 0, - SCE_SYSMODULE_ERROR_INVALID_VALUE = 0x805A1000, - SCE_SYSMODULE_ERROR_UNLOADED = 0x805A1001, - SCE_SYSMODULE_ERROR_FATAL = 0x805A10FF, -}; +typedef enum SceSysmoduleErrorCode { + SCE_SYSMODULE_LOADED = 0, + SCE_SYSMODULE_ERROR_INVALID_VALUE = 0x805A1000, + SCE_SYSMODULE_ERROR_UNLOADED = 0x805A1001, + SCE_SYSMODULE_ERROR_FATAL = 0x805A10FF, +} SceSysmoduleErrorCode; /* module IDs */ -enum { +typedef enum SceSysmoduleModuleId { SCE_SYSMODULE_INVALID = 0x0000, SCE_SYSMODULE_NET = 0x0001, SCE_SYSMODULE_HTTP = 0x0002, @@ -72,21 +72,21 @@ enum { SCE_SYSMODULE_NEAR_DIALOG_UTIL = 0x004a, SCE_SYSMODULE_LOCATION_EXTENSION = 0x004b, SCE_SYSMODULE_AVPLAYER = 0x004c -}; +} SceSysmoduleModuleId; /* internal module IDs */ -enum { +typedef enum SceSysmoduleInternalModuleId { SCE_SYSMODULE_PAF = 0x80000008, SCE_SYSMODULE_PROMOTER_UTIL = 0x80000024 -}; +} SceSysmoduleInternalModuleId; -int sceSysmoduleLoadModule(SceUInt16 id); -int sceSysmoduleUnloadModule(SceUInt16 id); -int sceSysmoduleIsLoaded(SceUInt16 id); -int sceSysmoduleLoadModuleInternal(SceUInt32 id); -int sceSysmoduleUnloadModuleInternal(SceUInt32 id); -int sceSysmoduleIsLoadedInternal(SceUInt32 id); -int sceSysmoduleLoadModuleInternalWithArg(SceUInt32 id, SceSize args, void *argp, void *unk); +int sceSysmoduleLoadModule(SceSysmoduleModuleId id); +int sceSysmoduleUnloadModule(SceSysmoduleModuleId id); +int sceSysmoduleIsLoaded(SceSysmoduleModuleId id); +int sceSysmoduleLoadModuleInternal(SceSysmoduleInternalModuleId id); +int sceSysmoduleUnloadModuleInternal(SceSysmoduleInternalModuleId id); +int sceSysmoduleIsLoadedInternal(SceSysmoduleInternalModuleId id); +int sceSysmoduleLoadModuleInternalWithArg(SceSysmoduleInternalModuleId id, SceSize args, void *argp, void *unk); #ifdef __cplusplus } |