summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaeho Lee <jaeho81.lee@samsung.com>2012-08-29 17:38:23 +0900
committerJaeho Lee <jaeho81.lee@samsung.com>2012-08-29 17:38:23 +0900
commit54b7472ffc0238adae4dcded85c0c7dd2a933f37 (patch)
treee9332e61122eb855a8af9c46d8ca84507a03aa32
parentaffaea97e183aa0c690118da79d8ac6e39853bc1 (diff)
downloadapp-core-54b7472ffc0238adae4dcded85c0c7dd2a933f37.tar.gz
app-core-54b7472ffc0238adae4dcded85c0c7dd2a933f37.tar.bz2
app-core-54b7472ffc0238adae4dcded85c0c7dd2a933f37.zip
tizen 2.0 build
-rw-r--r--packaging/app-core.spec2
-rwxr-xr-xsrc/appcore.c12
2 files changed, 13 insertions, 1 deletions
diff --git a/packaging/app-core.spec b/packaging/app-core.spec
index c0c6229..bb96220 100644
--- a/packaging/app-core.spec
+++ b/packaging/app-core.spec
@@ -2,7 +2,7 @@
Name: app-core
Summary: Application basic
Version: 1.2
-Release: 25
+Release: 26
Group: TO_BE/FILLED_IN
License: Apache License, Version 2.0
Source0: app-core-%{version}.tar.gz
diff --git a/src/appcore.c b/src/appcore.c
index fa316b8..8f3b240 100755
--- a/src/appcore.c
+++ b/src/appcore.c
@@ -231,6 +231,12 @@ static int __sys_do(struct appcore *ac, enum sys_event event)
static int __sys_lowmem_post(void *data, void *evt)
{
+ keynode_t *key = evt;
+ int val;
+
+ val = vconf_keynode_get_int(key);
+ if(val != VCONFKEY_SYSMAN_LOW_MEMORY_SOFT_WARNING)
+ return 0;
#if defined(MEMORY_FLUSH_ACTIVATE)
struct appcore *ac = data;
ac->ops->cb_app(AE_LOWMEM_POST, ac->ops->data, NULL);
@@ -242,6 +248,12 @@ static int __sys_lowmem_post(void *data, void *evt)
static int __sys_lowmem(void *data, void *evt)
{
+ keynode_t *key = evt;
+ int val;
+
+ val = vconf_keynode_get_int(key);
+ if(val != VCONFKEY_SYSMAN_LOW_MEMORY_SOFT_WARNING)
+ return 0;
return __sys_do(data, SE_LOWMEM);
}