From 3ae1d0f6d418082728da19e47484f300cf008712 Mon Sep 17 00:00:00 2001 From: Sunggyu Choi Date: Thu, 12 Sep 2024 08:24:47 +0900 Subject: [PATCH] Add new custom error of MMI (Multi modal interaction) Change-Id: I1592a63d077ad0df4a6fe000b29b9786e73f1f66 Signed-off-by: Sunggyu Choi --- error_messages/capi-uix-mmi.xml | 12 ++++++++++++ include/private/tizen_error_private.h | 8 ++++++++ include/tizen_error.h | 2 ++ packaging/capi-base-common.spec | 2 +- 4 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 error_messages/capi-uix-mmi.xml diff --git a/error_messages/capi-uix-mmi.xml b/error_messages/capi-uix-mmi.xml new file mode 100644 index 0000000..26b2c3d --- /dev/null +++ b/error_messages/capi-uix-mmi.xml @@ -0,0 +1,12 @@ + + + + MMI_ERROR_OPERATION_FAILED | 0x01 + Operation failed + + + MMI_ERROR_RESOURCE_BUSY | 0x02 + Resource busy + + + diff --git a/include/private/tizen_error_private.h b/include/private/tizen_error_private.h index 9c3bab7..b1375a4 100644 --- a/include/private/tizen_error_private.h +++ b/include/private/tizen_error_private.h @@ -37,6 +37,8 @@ static err_info err_list[] = { ERR_ENTRY("CALENDAR_ERROR_DB_RECORD_NOT_FOUND", TIZEN_ERROR_CALENDAR | 0x05, "Database not found"), ERR_ENTRY("CALENDAR_ERROR_IPC", TIZEN_ERROR_CALENDAR | 0xBF, "Unknown IPC error"), ERR_ENTRY("CALENDAR_ERROR_SYSTEM", TIZEN_ERROR_CALENDAR | 0xEF, "Error from another modules"), + ERR_ENTRY("MMI_ERROR_OPERATION_FAILED", MMI_ERROR_OPERATION_FAILED | 0x01, "Operation failed"), + ERR_ENTRY("MMI_ERROR_RESOURCE_BUSY", MMI_ERROR_RESOURCE_BUSY | 0x02, "Resource busy"), ERR_ENTRY("BATTERY_MONITOR_ERROR_RECORD_NOT_FOUND", TIZEN_ERROR_BATTERY_MONITOR | 0x01, "Related record does not exist"), ERR_ENTRY("BATTERY_MONITOR_ERROR_DB_FAILED", TIZEN_ERROR_BATTERY_MONITOR | 0x02, "DB operation failed"), ERR_ENTRY("BATTERY_MONITOR_ERROR_DB_NOT_OPENED", TIZEN_ERROR_BATTERY_MONITOR | 0x03, "DB is not connected"), @@ -256,6 +258,12 @@ static err_info err_list[] = { ERR_ENTRY("EMAILS_ERROR_DB_FAILED", TIZEN_ERROR_EMAIL_SERVICE | 0x204, "Email database failed"), ERR_ENTRY("DCM_ERROR_SOCKET", TIZEN_ERROR_DEVICE_CERTIFICATE_MANAGER | 0x01, "Socket error between client and Device Certificate Manager"), ERR_ENTRY("DCM_ERROR_MSG_FORMAT", TIZEN_ERROR_DEVICE_CERTIFICATE_MANAGER | 0x02, "Message is not in Tizen platform format"), + ERR_ENTRY("WIFI_AWARE_ERROR_NOT_INITIALIZED", TIZEN_ERROR_WIFI_AWARE | 0x01, "Not initialized"), + ERR_ENTRY("WIFI_AWARE_ERROR_ALREADY_INITIALIZED", TIZEN_ERROR_WIFI_AWARE | 0x02, "Already initialized"), + ERR_ENTRY("WIFI_AWARE_ERROR_ALREADY_ENABLED", TIZEN_ERROR_WIFI_AWARE | 0x03, "Already enabled"), + ERR_ENTRY("WIFI_AWARE_ERROR_OPERATION_FAILED", TIZEN_ERROR_WIFI_AWARE | 0x04, "Operation failed"), + ERR_ENTRY("WIFI_AWARE_ERROR_REJECTED_BY_PEER", TIZEN_ERROR_WIFI_AWARE | 0x05, "Rejected by peer"), + ERR_ENTRY("WIFI_AWARE_ERROR_INTERFACE_DOWN", TIZEN_ERROR_WIFI_AWARE | 0x06, "Wi-Fi Interface is down"), ERR_ENTRY("RECORDER_ERROR_INVALID_STATE", TIZEN_ERROR_RECORDER | 0x12, "Invalid state"), ERR_ENTRY("RECORDER_ERROR_DEVICE", TIZEN_ERROR_RECORDER | 0x14, "Device error"), ERR_ENTRY("RECORDER_ERROR_SOUND_POLICY", TIZEN_ERROR_RECORDER | 0x16, "Blocked by Audio Session Manager"), diff --git a/include/tizen_error.h b/include/tizen_error.h index 642431d..590f6dc 100644 --- a/include/tizen_error.h +++ b/include/tizen_error.h @@ -325,6 +325,8 @@ extern "C" { #define TIZEN_ERROR_WAUTHN -0x03100000 /* Wifi Aware */ #define TIZEN_ERROR_WIFI_AWARE -0x03110000 +/* Multi Modal Interaction */ +#define TIZEN_ERROR_MMI -0x03120000 /** * @brief Enumeration for tizen errors. diff --git a/packaging/capi-base-common.spec b/packaging/capi-base-common.spec index d8878e7..cf1035c 100644 --- a/packaging/capi-base-common.spec +++ b/packaging/capi-base-common.spec @@ -1,6 +1,6 @@ Name: capi-base-common Summary: Common header files of Tizen Native API -Version: 0.4.81 +Version: 0.4.82 Release: 1 Group: Base License: Apache-2.0 -- 2.34.1