low memory: remove unnecessary header file 63/17063/1
authorTaeyoung Kim <ty317.kim@samsung.com>
Mon, 3 Mar 2014 10:56:54 +0000 (19:56 +0900)
committerTaeyoung Kim <ty317.kim@samsung.com>
Mon, 3 Mar 2014 10:57:43 +0000 (19:57 +0900)
- The contents of lowmem.h are unnecessary except 3 definitions.
  Thus the contents are removed from low memory popup

Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Change-Id: I4441a2b8e90d6068805c1a6800facd0b8fab1cee

lowmem-popup/CMakeLists.txt
lowmem-popup/src/lowmem.c
lowmem-popup/src/lowmem.h [deleted file]

index 94cab42..23a9208 100755 (executable)
@@ -3,6 +3,8 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 PROJECT(lowmem-popup C)
 
+SET(PACKAGE ${PROJECT_NAME})
+
 SET(SRCS ${CMAKE_SOURCE_DIR}/lowmem-popup/src/lowmem.c
                 ${CMAKE_SOURCE_DIR}/share/src/common.c)
 
@@ -35,6 +37,7 @@ IF("${ARCH}" STREQUAL "arm")
 ENDIF("${ARCH}" STREQUAL "arm")
 
 ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
+ADD_DEFINITIONS("-DPACKAGE=\"${PACKAGE}\"")
 ADD_DEFINITIONS("-DSLP_DEBUG")
 
 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed")
index 2ea8d42..b7e9412 100755 (executable)
 
 
 #include <stdio.h>
-#include "lowmem.h"
 #include <utilX.h>
 #include <svi.h>
+#include <Elementary.h>
+#include <sys/types.h>
+#include <sys/stat.h>
 #include "common.h"
 
 #define APPLICATION_BG         1
 #define LOWMEM_LEVEL_WARNING   "warning"
 #define LOWMEM_LEVEL_CRITICAL  "critical"
 
+#define EDJ_PATH        PREFIX"/apps/org.tizen.lowmem-syspopup/res/edje/lowmem"
+#define EDJ_NAME        EDJ_PATH"/lowmem.edj"
+
+#define MAX_PROCESS_NAME    100
+
 static int lowmem_option = -1;
 
 static const char *process_name = NULL;
diff --git a/lowmem-popup/src/lowmem.h b/lowmem-popup/src/lowmem.h
deleted file mode 100644 (file)
index b9b6c7a..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- *  system-popup
- *
- * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-
-#ifndef __DEF_lowmem_H_
-#define __DEF_lowmem_H_
-
-#include <Elementary.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-
-#ifndef PREFIX
-#define PREFIX "/usr"
-#endif /* PREFIX */
-
-#define TEMP_DIR               "/tmp"
-#define PACKAGE                        "lowmem-popup"
-#define APPNAME                        "lowmem-popup"
-#define MAIN_W                 (480)
-#define MAIN_H                 (800)
-#define EDJ_PATH               PREFIX"/apps/org.tizen.lowmem-syspopup/res/edje/lowmem"
-#define EDJ_NAME               EDJ_PATH"/lowmem.edj"
-#define EDJ_POPUP_NAME         EDJ_PATH"/lowmem_popup.edj"
-#define GRP_MAIN               "main"
-#define GRP_POPUP              "popup"
-#define MAX_PROCESS_NAME       100
-#define PROCESS_NAME_FILE      "/tmp/processname.txt"
-#define BEAT
-
-#endif                         /* __DEF_lowmem_H__ */