pass: Change directory name from core to util 73/268373/1
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 22 Dec 2021 03:00:38 +0000 (12:00 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 22 Dec 2021 03:00:38 +0000 (12:00 +0900)
Change directory name from core to util because 'src/core' directory
contains the util functions and then move 'src/util/main.c' to src/main.c
in order to improve the readability of PASS daemon starting point.

Change-Id: I26d421d67ff4790c82e2a1af22d208104ad136db
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
CMakeLists.txt
src/main.c [moved from src/core/main.c with 100% similarity]
src/util/common.c [moved from src/core/common.c with 100% similarity]
src/util/device-notifier.c [moved from src/core/device-notifier.c with 100% similarity]
src/util/devices.c [moved from src/core/devices.c with 100% similarity]
src/util/gdbus-util.c [moved from src/core/gdbus-util.c with 100% similarity]
unittest/CMakeLists.txt

index b381166..c9af4c3 100644 (file)
@@ -24,11 +24,11 @@ SET(SRCS
        src/pmqos/pmqos-parser.c
        src/thermal/thermal.c
        src/thermal/thermal-parser.c
-       src/core/common.c
-       src/core/device-notifier.c
-       src/core/devices.c
-       src/core/main.c
-       src/core/gdbus-util.c
+       src/util/common.c
+       src/util/device-notifier.c
+       src/util/devices.c
+       src/util/gdbus-util.c
+       src/main.c
        #Generated by a custom command 'gdbus-codegen' below
        src/pass/pass-dbus-stub.c
        #Generated by a custom command 'gdbus-codegen' below
similarity index 100%
rename from src/core/main.c
rename to src/main.c
similarity index 100%
rename from src/core/common.c
rename to src/util/common.c
similarity index 100%
rename from src/core/devices.c
rename to src/util/devices.c
similarity index 100%
rename from src/core/gdbus-util.c
rename to src/util/gdbus-util.c
index b940c73..802fa58 100644 (file)
@@ -2,7 +2,7 @@ PROJECT(pass C CXX)
 
 SET(SRCS ${CMAKE_SOURCE_DIR}/src/pass/pass-hal.c
        ${CMAKE_SOURCE_DIR}/src/pass/pass-parser.c
-       ${CMAKE_SOURCE_DIR}/src/core/common.c
+       ${CMAKE_SOURCE_DIR}/src/util/common.c
 )
 
 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR})