Change default return value 88/162888/1
authorSeungha Son <seungha.son@samsung.com>
Wed, 6 Dec 2017 03:03:42 +0000 (12:03 +0900)
committerSeungha Son <seungha.son@samsung.com>
Wed, 6 Dec 2017 03:06:07 +0000 (12:06 +0900)
 It isn't need to set SHORTCUT_ERROR_NOT_SUPPORTED,
 If shortcut feature is false, no callback is set.

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: Id1c68b5141ae6fc23e4699349f181cc8432f7976

lib/src/shortcut_internal.c

index 6c54a1f37bb1b0c436eec7f52727d4184d6ceea3..eed9723df32c5e04b56d86454e61b29ea0f07ca3 100755 (executable)
@@ -78,7 +78,7 @@ static void _shortcut_send_return(int ret_val, const char *request_id)
 /* LCOV_EXCL_START */
 static void _add_shortcut_notify(GVariant *parameters)
 {
-       int ret = SHORTCUT_ERROR_NOT_SUPPORTED;
+       int ret = SHORTCUT_ERROR_NONE;
        const char *appid;
        const char *name;
        int type;
@@ -103,7 +103,7 @@ static void _add_shortcut_notify(GVariant *parameters)
 /* LCOV_EXCL_START */
 static void _add_shortcut_widget_notify(GVariant *parameters)
 {
-       int ret = SHORTCUT_ERROR_NOT_SUPPORTED;
+       int ret = SHORTCUT_ERROR_NONE;
        const char *appid;
        const char *name;
        int type;
@@ -127,7 +127,7 @@ static void _add_shortcut_widget_notify(GVariant *parameters)
 
 static void _remove_shortcut_notify(GVariant *parameters)
 {
-       int ret = SHORTCUT_ERROR_NOT_SUPPORTED;
+       int ret = SHORTCUT_ERROR_NONE;
        const char *appid;
        const char *name;
        int sender_pid;