Change-Id: Ice4ccce672669dff7f63e4e42b48076fca5ad116
result
_AppImpl::Execute(_IAppImpl* pIAppImpl)
{
result
_AppImpl::Execute(_IAppImpl* pIAppImpl)
{
return __isTerminationRequested;
}
return __isTerminationRequested;
}
+typedef void (*cbForVconf)(keynode_t* node, void *pData);
+
-_AppImpl::OnPowerOffNotiReceived(keynode_t* node, void* user_data)
+_AppImpl::OnPowerOffNotiReceived(void* node, void* user_data)
{
int value = -1;
if (!vconf_get_int(VCONFKEY_SYSMAN_POWER_OFF_STATUS, &value))
{
int value = -1;
if (!vconf_get_int(VCONFKEY_SYSMAN_POWER_OFF_STATUS, &value))
{
SysLog(NID_APP, "Application is being terminated by power off.");
{
SysLog(NID_APP, "Application is being terminated by power off.");
- if (vconf_ignore_key_changed(VCONFKEY_SYSMAN_POWER_OFF_STATUS, _AppImpl::OnPowerOffNotiReceived))
+ if (vconf_ignore_key_changed(VCONFKEY_SYSMAN_POWER_OFF_STATUS, (cbForVconf)_AppImpl::OnPowerOffNotiReceived))
{
SysLog(NID_APP, "Fail to ignore vconf for key(%s)", VCONFKEY_SYSMAN_POWER_OFF_STATUS);
}
{
SysLog(NID_APP, "Fail to ignore vconf for key(%s)", VCONFKEY_SYSMAN_POWER_OFF_STATUS);
}
+typedef void (* cbForVconf)(keynode_t* node, void *pData);
-_Aul::SetPowerOffNotiListener( void (*powerOffCb)(keynode_t* node, void *pData), void *pData)
+_Aul::SetPowerOffNotiListener( void (*powerOffCb)(void* node, void *pData), void *pData)
- int ret = vconf_notify_key_changed(VCONFKEY_SYSMAN_POWER_OFF_STATUS, powerOffCb, pData);
+ int ret = vconf_notify_key_changed(VCONFKEY_SYSMAN_POWER_OFF_STATUS, (cbForVconf)powerOffCb, pData);
SysTryReturnResult(NID_SYS, ret == 0, E_SYSTEM, "It failed to set power off");
#else
int heyFd = heynoti_init();
SysTryReturnResult(NID_SYS, ret == 0, E_SYSTEM, "It failed to set power off");
#else
int heyFd = heynoti_init();
#ifndef _FAPP_INTERNAL_APP_IMPL_H_
#define _FAPP_INTERNAL_APP_IMPL_H_
#ifndef _FAPP_INTERNAL_APP_IMPL_H_
#define _FAPP_INTERNAL_APP_IMPL_H_
#include <FAppApp.h>
#include <FSysBattery.h>
#include <FBaseRtIEventListener.h>
#include <FAppApp.h>
#include <FSysBattery.h>
#include <FBaseRtIEventListener.h>
bool IsForcedTermination(void);
bool IsForcedTermination(void);
- static void OnPowerOffNotiReceived(_keynode_t* node, void* pData);
+ static void OnPowerOffNotiReceived(void* node, void* pData);
#define _FAPP_INTERNAL_AUL_H_
#include <appsvc/appsvc.h>
#define _FAPP_INTERNAL_AUL_H_
#include <appsvc/appsvc.h>
#include <FOspConfig.h>
#include <FAppTypes.h>
#include <FOspConfig.h>
#include <FAppTypes.h>
static result SetOomAdj(int pid, int adj);
static result SetOomAdj(int pid, int adj);
- static result SetPowerOffNotiListener(void (*powerOffCb)(keynode_t* node, void *pData), void *pData);
+ static result SetPowerOffNotiListener(void (*powerOffCb)(void* node, void *pData), void *pData);
static int GetAppType(const Tizen::Base::String& category);
static int GetAppType(const Tizen::Base::String& category);