gdbus: move gdbus files to top level gdbus folder 56/160056/1
authorSegwon <segwon.han@samsung.com>
Tue, 14 Nov 2017 08:54:05 +0000 (17:54 +0900)
committerSegwon <segwon.han@samsung.com>
Tue, 14 Nov 2017 08:54:05 +0000 (17:54 +0900)
Change-Id: If08e00e576cb8bdb099a740768870a6bdcf41d8b
Signed-off-by: Segwon <segwon.han@samsung.com>
14 files changed:
CMakeLists.txt
include/gdbus/peripheral_gdbus.h [moved from include/peripheral_gdbus.h with 100% similarity]
include/gdbus/peripheral_gdbus_gpio.h [moved from include/peripheral_gdbus_gpio.h with 100% similarity]
include/gdbus/peripheral_gdbus_i2c.h [moved from include/peripheral_gdbus_i2c.h with 100% similarity]
include/gdbus/peripheral_gdbus_pwm.h [moved from include/peripheral_gdbus_pwm.h with 100% similarity]
include/gdbus/peripheral_gdbus_spi.h [moved from include/peripheral_gdbus_spi.h with 100% similarity]
include/gdbus/peripheral_gdbus_uart.h [moved from include/peripheral_gdbus_uart.h with 100% similarity]
src/gdbus/peripheral_gdbus_gpio.c [moved from src/peripheral_gdbus_gpio.c with 100% similarity]
src/gdbus/peripheral_gdbus_i2c.c [moved from src/peripheral_gdbus_i2c.c with 100% similarity]
src/gdbus/peripheral_gdbus_pwm.c [moved from src/peripheral_gdbus_pwm.c with 100% similarity]
src/gdbus/peripheral_gdbus_spi.c [moved from src/peripheral_gdbus_spi.c with 100% similarity]
src/gdbus/peripheral_gdbus_uart.c [moved from src/peripheral_gdbus_uart.c with 100% similarity]
src/gdbus/peripheral_io.xml [moved from src/peripheral_io.xml with 100% similarity]
src/peripheral_gpio.c

index 335e42a..9b17fa7 100644 (file)
@@ -19,14 +19,15 @@ SET(VERSION ${version})
 FIND_PROGRAM(GDBUS_CODEGEN NAMES gdbus-codegen)
 EXEC_PROGRAM(${GDBUS_CODEGEN} ARGS
                 " \\
-                --generate-c-code ${CMAKE_SOURCE_DIR}/src/peripheral_io_gdbus \\
+                --generate-c-code ${CMAKE_SOURCE_DIR}/src/gdbus/peripheral_io_gdbus \\
                 --c-namespace PeripheralIoGdbus \\
                 --interface-prefix org.tizen.peripheral_io. \\
-                ${CMAKE_SOURCE_DIR}/src/peripheral_io.xml \\
+                ${CMAKE_SOURCE_DIR}/src/gdbus/peripheral_io.xml \\
                 ")
 
 SET(INC_DIR include)
 INCLUDE_DIRECTORIES(${INC_DIR})
+INCLUDE_DIRECTORIES(${INC_DIR}/gdbus)
 INCLUDE_DIRECTORIES(${INC_DIR}/interface)
 
 INCLUDE(FindPkgConfig)
@@ -53,12 +54,12 @@ SET(SOURCES src/peripheral_gpio.c
                        src/interface/peripheral_interface_pwm.c
                        src/interface/peripheral_interface_spi.c
                        src/interface/peripheral_interface_uart.c
-                       src/peripheral_gdbus_gpio.c
-                       src/peripheral_gdbus_i2c.c
-                       src/peripheral_gdbus_pwm.c
-                       src/peripheral_gdbus_uart.c
-                       src/peripheral_gdbus_spi.c
-                       src/peripheral_io_gdbus.c)
+                       src/gdbus/peripheral_gdbus_gpio.c
+                       src/gdbus/peripheral_gdbus_i2c.c
+                       src/gdbus/peripheral_gdbus_pwm.c
+                       src/gdbus/peripheral_gdbus_uart.c
+                       src/gdbus/peripheral_gdbus_spi.c
+                       src/gdbus/peripheral_io_gdbus.c)
 
 ADD_LIBRARY(${fw_name} SHARED ${SOURCES})
 
index 408ed0a..c80e9c9 100644 (file)
 #include <unistd.h>
 #include <assert.h>
 #include <system_info.h>
+#include <glib.h>
 
 #include "peripheral_io.h"
 #include "peripheral_gdbus_gpio.h"
 #include "peripheral_common.h"
 #include "peripheral_internal.h"
-#include "peripheral_io_gdbus.h"
 
 #define PERIPHERAL_IO_GPIO_FEATURE "http://tizen.org/feature/peripheral_io.gpio"