[SDL_Tizen] Modify return value in SDL_tizen_app_init 68/142968/1 accepted/tizen/unified/20170810.172213 submit/tizen/20170810.014105
authorhuiyu,eun <huiyu.eun@samsung.com>
Tue, 8 Aug 2017 05:14:38 +0000 (14:14 +0900)
committerhuiyu,eun <huiyu.eun@samsung.com>
Tue, 8 Aug 2017 05:16:20 +0000 (14:16 +0900)
value 0 means sucess.

Change-Id: I1c4e459fa362d4d989a9f9082e1946a7f482f818
Signed-off-by: huiyu,eun <huiyu.eun@samsung.com>
src/core/tizen/SDL_tizen.c

index 8f7eff1..d452697 100644 (file)
@@ -234,12 +234,12 @@ SDL_tizen_app_init(int argc, char *argv[])
 
     if (tizen_appcore_initialized) {
         SDL_LogError(SDL_LOG_CATEGORY_ASSERT,"Already initialized!");
-        return 0;
+        return APP_ERROR_ALREADY_RUNNING;
     }
     tizen_appcore_initialized = 1;
     if (argc < 1 || argv == NULL) {
         SDL_LogError(SDL_LOG_CATEGORY_ASSERT,"APP_ERROR_INVALID_PARAMETER");
-        return 0;
+        return APP_ERROR_INVALID_PARAMETER;
     }
 
     event_callback.create = _tizen_sdl_create;
@@ -256,7 +256,7 @@ SDL_tizen_app_init(int argc, char *argv[])
     aul_ret = aul_add_status_local_cb(_tizen_aul_status_changed_cb, NULL);
     if (aul_ret == AUL_R_ERROR) {
         SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "AUL status changed callback setting is failed.");
-        return 0;
+        return APP_ERROR_INVALID_CONTEXT;
     }
 
     /* add event watch for SDL_APP_TERMINATING */