summaryrefslogtreecommitdiff
path: root/include/user
diff options
context:
space:
mode:
authorReiko Asakura2020-09-19 16:13:58 -0400
committerReiko Asakura2020-09-19 16:13:58 -0400
commit4b52330f2df74aa1f48551973fd0d8f851123f42 (patch)
tree33d05d23766c42367d31cc15313ddb04be6c7f8b /include/user
parentAdd SceKernelForMono functions (diff)
downloadvds-libraries-4b52330f2df74aa1f48551973fd0d8f851123f42.tar.gz
Make errors signed
Diffstat (limited to '')
-rw-r--r--include/user/appmgr.h14
-rw-r--r--include/user/bgapputil.h2
-rw-r--r--include/user/ctrl.h12
-rw-r--r--include/user/display.h20
-rw-r--r--include/user/incoming_dialog.h2
-rw-r--r--include/user/ini_file_processor.h10
-rw-r--r--include/user/notification_util.h2
-rw-r--r--include/user/power.h12
-rw-r--r--include/user/sysmodule.h6
-rw-r--r--include/user/trigger_util.h12
-rw-r--r--include/user/usbd.h26
11 files changed, 59 insertions, 59 deletions
diff --git a/include/user/appmgr.h b/include/user/appmgr.h
index 8333372..2467c24 100644
--- a/include/user/appmgr.h
+++ b/include/user/appmgr.h
@@ -11,13 +11,13 @@ extern "C" {
#define _SCE_APPMGR_VERSION (SCE_PSP2_SDK_VERSION & 0xffff0000)
typedef enum SceAppMgrErrorCode {
- SCE_APPMGR_ERROR_BUSY = 0x80802000, //!< Busy
- SCE_APPMGR_ERROR_STATE = 0x80802013, //!< Invalid state
- SCE_APPMGR_ERROR_NULL_POINTER = 0x80802016, //!< NULL pointer
- SCE_APPMGR_ERROR_INVALID = 0x8080201A, //!< Invalid param
- SCE_APPMGR_ERROR_TOO_LONG_ARGV = 0x8080201D, //!< argv is too long
- SCE_APPMGR_ERROR_INVALID_SELF_PATH = 0x8080201E, //!< Invalid SELF path
- SCE_APPMGR_ERROR_BGM_PORT_BUSY = 0x80803000 //!< BGM port was occupied and could not be secured
+ SCE_APPMGR_ERROR_BUSY = (int)0x80802000, //!< Busy
+ SCE_APPMGR_ERROR_STATE = (int)0x80802013, //!< Invalid state
+ SCE_APPMGR_ERROR_NULL_POINTER = (int)0x80802016, //!< NULL pointer
+ SCE_APPMGR_ERROR_INVALID = (int)0x8080201A, //!< Invalid param
+ SCE_APPMGR_ERROR_TOO_LONG_ARGV = (int)0x8080201D, //!< argv is too long
+ SCE_APPMGR_ERROR_INVALID_SELF_PATH = (int)0x8080201E, //!< Invalid SELF path
+ SCE_APPMGR_ERROR_BGM_PORT_BUSY = (int)0x80803000 //!< BGM port was occupied and could not be secured
} SceAppMgrErrorCode;
typedef enum SceAppMgrSystemEventType {
diff --git a/include/user/bgapputil.h b/include/user/bgapputil.h
index f35e9ad..e3b0a5e 100644
--- a/include/user/bgapputil.h
+++ b/include/user/bgapputil.h
@@ -8,7 +8,7 @@ extern "C" {
/**
* Errors
*/
-#define SCE_BGAPPUTIL_ERROR_INVALID_ARG 0x80106501
+#define SCE_BGAPPUTIL_ERROR_INVALID_ARG ((int)0x80106501)
/**
* Start BG application (eboot2.bin)
diff --git a/include/user/ctrl.h b/include/user/ctrl.h
index 4758f6c..221f2bb 100644
--- a/include/user/ctrl.h
+++ b/include/user/ctrl.h
@@ -9,12 +9,12 @@ extern "C" {
#endif
typedef enum SceCtrlErrorCode {
- SCE_CTRL_ERROR_INVALID_ARG = 0x80340001,
- SCE_CTRL_ERROR_PRIV_REQUIRED = 0x80340002,
- SCE_CTRL_ERROR_NO_DEVICE = 0x80340020,
- SCE_CTRL_ERROR_NOT_SUPPORTED = 0x80340021,
- SCE_CTRL_ERROR_INVALID_MODE = 0x80340022,
- SCE_CTRL_ERROR_FATAL = 0x803400FF
+ SCE_CTRL_ERROR_INVALID_ARG = (int)0x80340001,
+ SCE_CTRL_ERROR_PRIV_REQUIRED = (int)0x80340002,
+ SCE_CTRL_ERROR_NO_DEVICE = (int)0x80340020,
+ SCE_CTRL_ERROR_NOT_SUPPORTED = (int)0x80340021,
+ SCE_CTRL_ERROR_INVALID_MODE = (int)0x80340022,
+ SCE_CTRL_ERROR_FATAL = (int)0x803400FF
} SceCtrlErrorCode;
/** Enumeration for the digital controller buttons.
diff --git a/include/user/display.h b/include/user/display.h
index c40b811..f3fea26 100644
--- a/include/user/display.h
+++ b/include/user/display.h
@@ -9,16 +9,16 @@ extern "C" {
typedef enum SceDisplayErrorCode {
SCE_DISPLAY_ERROR_OK = 0,
- SCE_DISPLAY_ERROR_INVALID_HEAD = 0x80290000,
- SCE_DISPLAY_ERROR_INVALID_VALUE = 0x80290001,
- SCE_DISPLAY_ERROR_INVALID_ADDR = 0x80290002,
- SCE_DISPLAY_ERROR_INVALID_PIXELFORMAT = 0x80290003,
- SCE_DISPLAY_ERROR_INVALID_PITCH = 0x80290004,
- SCE_DISPLAY_ERROR_INVALID_RESOLUTION = 0x80290005,
- SCE_DISPLAY_ERROR_INVALID_UPDATETIMING = 0x80290006,
- SCE_DISPLAY_ERROR_NO_FRAME_BUFFER = 0x80290007,
- SCE_DISPLAY_ERROR_NO_PIXEL_DATA = 0x80290008,
- SCE_DISPLAY_ERROR_NO_OUTPUT_SIGNAL = 0x80290009
+ SCE_DISPLAY_ERROR_INVALID_HEAD = (int)0x80290000,
+ SCE_DISPLAY_ERROR_INVALID_VALUE = (int)0x80290001,
+ SCE_DISPLAY_ERROR_INVALID_ADDR = (int)0x80290002,
+ SCE_DISPLAY_ERROR_INVALID_PIXELFORMAT = (int)0x80290003,
+ SCE_DISPLAY_ERROR_INVALID_PITCH = (int)0x80290004,
+ SCE_DISPLAY_ERROR_INVALID_RESOLUTION = (int)0x80290005,
+ SCE_DISPLAY_ERROR_INVALID_UPDATETIMING = (int)0x80290006,
+ SCE_DISPLAY_ERROR_NO_FRAME_BUFFER = (int)0x80290007,
+ SCE_DISPLAY_ERROR_NO_PIXEL_DATA = (int)0x80290008,
+ SCE_DISPLAY_ERROR_NO_OUTPUT_SIGNAL = (int)0x80290009
} SceDisplayErrorCode;
typedef enum SceDisplayPixelFormat {
diff --git a/include/user/incoming_dialog.h b/include/user/incoming_dialog.h
index 616b89e..da4c4f3 100644
--- a/include/user/incoming_dialog.h
+++ b/include/user/incoming_dialog.h
@@ -25,7 +25,7 @@ typedef enum SceIncomingDialogStatus {
/**
* Errors
*/
-#define SCE_INCOMING_DIALOG_ERROR_INVALID_ARG 0x80106202;
+#define SCE_INCOMING_DIALOG_ERROR_INVALID_ARG ((int)0x80106202)
typedef struct SceIncomingDialogParam {
SceInt32 sdkVersion;
diff --git a/include/user/ini_file_processor.h b/include/user/ini_file_processor.h
index 77ee0b1..f20c43f 100644
--- a/include/user/ini_file_processor.h
+++ b/include/user/ini_file_processor.h
@@ -1,11 +1,11 @@
#ifndef _DOLCESDK_PSP2_INI_FILE_PROCESSOR_H_
#define _DOLCESDK_PSP2_INI_FILE_PROCESSOR_H_
-#define SCE_INI_FILE_PROCESSOR_ERROR_MODE 0x80840002
-#define SCE_INI_FILE_PROCESSOR_ERROR_EOF 0x80840005
-#define SCE_INI_FILE_PROCESSOR_ERROR_READ_ONLY 0x80840007
-#define SCE_INI_FILE_PROCESSOR_ERROR_FILE_NOT_FOUND 0x80840009
-#define SCE_INI_FILE_PROCESSOR_ERROR_KEY_NOT_FOUND 0x80840010
+#define SCE_INI_FILE_PROCESSOR_ERROR_MODE ((int)0x80840002)
+#define SCE_INI_FILE_PROCESSOR_ERROR_EOF ((int)0x80840005)
+#define SCE_INI_FILE_PROCESSOR_ERROR_READ_ONLY ((int)0x80840007)
+#define SCE_INI_FILE_PROCESSOR_ERROR_FILE_NOT_FOUND ((int)0x80840009)
+#define SCE_INI_FILE_PROCESSOR_ERROR_KEY_NOT_FOUND ((int)0x80840010)
#define SCE_INI_FILE_PROCESSOR_PARSE_COMPLETED 0x00840001
diff --git a/include/user/notification_util.h b/include/user/notification_util.h
index 4aa362a..0ec7c7f 100644
--- a/include/user/notification_util.h
+++ b/include/user/notification_util.h
@@ -10,7 +10,7 @@ extern "C" {
/**
* Errors
*/
-#define SCE_NOTIFICATION_UTIL_ERROR_INTERNAL 0x80106301
+#define SCE_NOTIFICATION_UTIL_ERROR_INTERNAL ((int)0x80106301)
/**
* BGDL-type notification event handler function
diff --git a/include/user/power.h b/include/user/power.h
index 8148139..0878915 100644
--- a/include/user/power.h
+++ b/include/user/power.h
@@ -9,12 +9,12 @@ extern "C" {
#endif
typedef enum ScePowerErrorCode {
- SCE_POWER_ERROR_INVALID_VALUE = 0x802B0000,
- SCE_POWER_ERROR_ALREADY_REGISTERED = 0x802B0001,
- SCE_POWER_ERROR_CALLBACK_NOT_REGISTERED = 0x802B0002,
- SCE_POWER_ERROR_CANT_SUSPEND = 0x802B0003,
- SCE_POWER_ERROR_NO_BATTERY = 0x802B0100,
- SCE_POWER_ERROR_DETECTING = 0x802B0101
+ SCE_POWER_ERROR_INVALID_VALUE = (int)0x802B0000,
+ SCE_POWER_ERROR_ALREADY_REGISTERED = (int)0x802B0001,
+ SCE_POWER_ERROR_CALLBACK_NOT_REGISTERED = (int)0x802B0002,
+ SCE_POWER_ERROR_CANT_SUSPEND = (int)0x802B0003,
+ SCE_POWER_ERROR_NO_BATTERY = (int)0x802B0100,
+ SCE_POWER_ERROR_DETECTING = (int)0x802B0101
} ScePowerErrorCode;
typedef enum ScePowerCallbackType {
diff --git a/include/user/sysmodule.h b/include/user/sysmodule.h
index 8f01169..7ec1021 100644
--- a/include/user/sysmodule.h
+++ b/include/user/sysmodule.h
@@ -10,9 +10,9 @@ extern "C" {
/** Errorcodes for SceSysmodule */
typedef enum SceSysmoduleErrorCode {
SCE_SYSMODULE_LOADED = 0, //!< Module is already loaded
- SCE_SYSMODULE_ERROR_INVALID_VALUE = 0x805A1000, //!< Invalid value
- SCE_SYSMODULE_ERROR_UNLOADED = 0x805A1001, //!< Module is not loaded
- SCE_SYSMODULE_ERROR_FATAL = 0x805A10FF //!< Fatal error
+ SCE_SYSMODULE_ERROR_INVALID_VALUE = (int)0x805A1000, //!< Invalid value
+ SCE_SYSMODULE_ERROR_UNLOADED = (int)0x805A1001, //!< Module is not loaded
+ SCE_SYSMODULE_ERROR_FATAL = (int)0x805A10FF //!< Fatal error
} SceSysmoduleErrorCode;
/** Available modules ID for ::sceSysmoduleLoadModule */
diff --git a/include/user/trigger_util.h b/include/user/trigger_util.h
index 3ac6e09..30eaa06 100644
--- a/include/user/trigger_util.h
+++ b/include/user/trigger_util.h
@@ -30,12 +30,12 @@ typedef enum SceTriggerUtilDays {
/**
* Errors
*/
-#define SCE_TRIGGER_UTIL_ERROR_BUSY 0x80103601
-#define SCE_TRIGGER_UTIL_ERROR_NOT_FOUND_USER 0x80103610
-#define SCE_TRIGGER_UTIL_ERROR_NOT_FOUND_SYSTEM 0x80103612
-#define SCE_TRIGGER_UTIL_ERROR_NOT_REGISTERED 0x80103620
-#define SCE_TRIGGER_UTIL_ERROR_EVENT_TYPE_MISMATCH 0x80103623
-#define SCE_TRIGGER_UTIL_ERROR_INVALID_ARG 0x80103650
+#define SCE_TRIGGER_UTIL_ERROR_BUSY ((int)0x80103601)
+#define SCE_TRIGGER_UTIL_ERROR_NOT_FOUND_USER ((int)0x80103610)
+#define SCE_TRIGGER_UTIL_ERROR_NOT_FOUND_SYSTEM ((int)0x80103612)
+#define SCE_TRIGGER_UTIL_ERROR_NOT_REGISTERED ((int)0x80103620)
+#define SCE_TRIGGER_UTIL_ERROR_EVENT_TYPE_MISMATCH ((int)0x80103623)
+#define SCE_TRIGGER_UTIL_ERROR_INVALID_ARG ((int)0x80103650)
typedef struct SceTriggerUtilEventParamDaily { // size is 0x50
SceUInt32 ver;
diff --git a/include/user/usbd.h b/include/user/usbd.h
index f30dad4..1b40d14 100644
--- a/include/user/usbd.h
+++ b/include/user/usbd.h
@@ -8,19 +8,19 @@ extern "C" {
#endif
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
+ SCE_USBD_ERROR_IO = (int)0x80240001,
+ SCE_USBD_ERROR_INVALID_ARG = (int)0x80240002,
+ SCE_USBD_ERROR_ACCESS = (int)0x80240003,
+ SCE_USBD_ERROR_NO_DEVICE = (int)0x80240004,
+ SCE_USBD_ERROR_NOT_FOUND = (int)0x80240005,
+ SCE_USBD_ERROR_BUSY = (int)0x80240006,
+ SCE_USBD_ERROR_TIMEOUT = (int)0x80240007,
+ SCE_USBD_ERROR_OVERFLOW = (int)0x80240008,
+ SCE_USBD_ERROR_PIPE = (int)0x80240009,
+ SCE_USBD_ERROR_INTERRUPTED = (int)0x8024000A,
+ SCE_USBD_ERROR_NO_MEM = (int)0x8024000B,
+ SCE_USBD_ERROR_NOT_SUPPORTED = (int)0x8024000C,
+ SCE_USBD_ERROR_FATAL = (int)0x802400FF
} SceUsbdErrorCode;
typedef struct SceUsbdDeviceInfo {