Fix functions related to attach/detach window 41/238441/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 14 Jul 2020 03:41:08 +0000 (12:41 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 14 Jul 2020 03:41:08 +0000 (12:41 +0900)
- Changes return values

Change-Id: I3b5898f5f6f96d8bd70098b160c77a030c005d1a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/aul_window.c

index 66ee23e..8c9dfa4 100644 (file)
@@ -351,12 +351,12 @@ API int aul_window_attach(const char *parent_appid, const char *child_appid)
        int ret;
 
        if (parent_appid == NULL || child_appid == NULL)
-               return -1;
+               return AUL_R_EINVAL;
 
        b = bundle_create();
        if (!b) {
                _E("out of memory");
-               return -1;
+               return AUL_R_ENOMEM;
        }
 
        bundle_add_str(b, AUL_K_PARENT_APPID, parent_appid);
@@ -374,12 +374,12 @@ API int aul_window_detach(const char *child_appid)
        int ret;
 
        if (child_appid == NULL)
-               return -1;
+               return AUL_R_EINVAL;
 
        b = bundle_create();
        if (!b) {
                _E("out of memory");
-               return -1;
+               return AUL_R_ENOMEM;
        }
 
        bundle_add_str(b, AUL_K_CHILD_APPID, child_appid);