Revert "Check AUL initialization" 34/273034/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 30 Mar 2022 02:23:25 +0000 (11:23 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 30 Mar 2022 02:23:31 +0000 (11:23 +0900)
This reverts commit f9bb113dda5661ea0cc2c19af7adb5c80e3c9b80.

Change-Id: I547a1ec8ae58e53b50625a44185de6283ef0e2ed

legacy/src/base/appcore_base.c
tizen-cpp/app-core-cpp/app_core_base.cc

index 01f7d09..bc59c73 100644 (file)
@@ -92,8 +92,6 @@ static guint __suspend_dbus_handler_initialized;
 static char *__locale_dir;
 static appcore_base_rotation __rotation;
 
-extern int aul_is_initialized();
-
 appcore_base_tizen_profile_t appcore_base_get_tizen_profile(void)
 {
        static appcore_base_tizen_profile_t profile = TIZEN_PROFILE_UNKNOWN;
@@ -1332,11 +1330,6 @@ EXPORT_API int appcore_base_on_create(void)
 {
        int r;
 
-       if (aul_is_initialized()) {
-               _ERR("Aul is already initialized");
-               return 0;
-       }
-
        r = aul_launch_init(__context.ops.receive, __context.data);
        if (r < 0 && r != AUL_R_ECANCELED) {
                _ERR("Aul init failed: %d", r);
index bfef0ff..5adf51c 100644 (file)
@@ -45,7 +45,6 @@
 #include "app-core-cpp/app_core_base.hh"
 #include "common/log_private.hh"
 
-extern "C" int aul_is_initialized();
 extern "C" void aul_finalize();
 
 namespace tizen_cpp {
@@ -627,11 +626,6 @@ int AppCoreBase::OnReceive(aul_type type, tizen_base::Bundle b) {
 }
 
 int AppCoreBase::OnCreate() {
-  if (aul_is_initialized()) {
-    _E("AUL is already initialized");
-    return 0;
-  }
-
   int ret = aul_launch_init([](aul_type type, bundle* b, void* data) -> int {
         AppCoreBase* base = reinterpret_cast<AppCoreBase*>(data);
         if (base->impl_->core_delegator_) {