remove dependency of vconf.h in FApp_Aul.h
authorYong Song <yong.song@samsung.com>
Tue, 3 Sep 2013 13:02:49 +0000 (22:02 +0900)
committerYong Song <yong.song@samsung.com>
Tue, 3 Sep 2013 13:06:42 +0000 (22:06 +0900)
Change-Id: I701b8d912c90508513fd40456ea246171c558cb3

inc/AppService.h
src/AppService.cpp

index 987dd28..a23ef0f 100644 (file)
@@ -23,7 +23,6 @@
 #include <FAppServiceApp.h>
 #include <FAppPkgIPackageInstallationEventListener.h>
 #include <FSysIBootEventListener.h>
-#include <FApp_Aul.h>
 
 #include <FApp_IAppManagerEventListener.h>
 
@@ -89,7 +88,7 @@ public:
        // IBootEventListener
        virtual void OnBootCompleted(void);
 
-       static void OnPowerOffNotiReceived(keynode_t* node, void* pData);
+       static void OnPowerOffNotiReceived(void* node, void* pData);
        static void OnSystemServiceTerminated(int arg);
        static AppService* __pAppService;
 
index f5544e7..757891d 100644 (file)
@@ -172,8 +172,10 @@ AppService::OnAppInitialized(void)
        return true;
 }
 
+typedef void (* cbForVconf)(kenode_t* node, void* pData);
+
 void
-AppService::OnPowerOffNotiReceived(keynode_t* node, void* user_data)
+AppService::OnPowerOffNotiReceived(void* node, void* user_data)
 {
        int value = -1;
        if (!vconf_get_int(VCONFKEY_SYSMAN_POWER_OFF_STATUS, &value))
@@ -182,7 +184,7 @@ AppService::OnPowerOffNotiReceived(keynode_t* node, void* user_data)
                {
                        SysLog(NID_APP, "'power_off_start' noti received from system-server with 0x%x.", user_data);
 
-                        if (vconf_ignore_key_changed(VCONFKEY_SYSMAN_POWER_OFF_STATUS, AppService::OnPowerOffNotiReceived))
+                        if (vconf_ignore_key_changed(VCONFKEY_SYSMAN_POWER_OFF_STATUS, (cbForVconf)AppService::OnPowerOffNotiReceived))
                         {
                                 SysLog(NID_APP, "Fail to ignore vconf for key(%s)", VCONFKEY_SYSMAN_POWER_OFF_STATUS);
                         }