tizen 2.0 build
authorJaeho Lee <jaeho81.lee@samsung.com>
Wed, 29 Aug 2012 08:38:23 +0000 (17:38 +0900)
committerJaeho Lee <jaeho81.lee@samsung.com>
Wed, 29 Aug 2012 08:38:23 +0000 (17:38 +0900)
packaging/app-core.spec
src/appcore.c

index c0c6229..bb96220 100644 (file)
@@ -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
index fa316b8..8f3b240 100755 (executable)
@@ -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);
 }