From 475032c6900d59e01ad8a4cf48100e402ae4a0ed Mon Sep 17 00:00:00 2001 From: Segwon Date: Tue, 21 Nov 2017 10:54:34 +0900 Subject: [PATCH] handle: change file name that generates the handle - change prefix "peripheral_bus" to "peripheral_handle" Change-Id: I5860b15baf18138397b445472c05bd20873f6382 Signed-off-by: Segwon --- CMakeLists.txt | 10 +++++----- .../{peripheral_bus_gpio.h => peripheral_handle_gpio.h} | 7 ++++--- .../include/{peripheral_bus_i2c.h => peripheral_handle_i2c.h} | 6 +++--- .../include/{peripheral_bus_pwm.h => peripheral_handle_pwm.h} | 6 +++--- .../include/{peripheral_bus_spi.h => peripheral_handle_spi.h} | 6 +++--- .../{peripheral_bus_uart.h => peripheral_handle_uart.h} | 6 +++--- src/daemon/peripheral_bus_gdbus_gpio.c | 2 +- src/daemon/peripheral_bus_gdbus_i2c.c | 2 +- src/daemon/peripheral_bus_gdbus_pwm.c | 2 +- src/daemon/peripheral_bus_gdbus_spi.c | 2 +- src/daemon/peripheral_bus_gdbus_uart.c | 2 +- src/daemon/{peripheral_bus_gpio.c => peripheral_handle_gpio.c} | 0 src/daemon/{peripheral_bus_i2c.c => peripheral_handle_i2c.c} | 0 src/daemon/{peripheral_bus_pwm.c => peripheral_handle_pwm.c} | 0 src/daemon/{peripheral_bus_spi.c => peripheral_handle_spi.c} | 0 src/daemon/{peripheral_bus_uart.c => peripheral_handle_uart.c} | 0 16 files changed, 26 insertions(+), 25 deletions(-) rename src/daemon/include/{peripheral_bus_gpio.h => peripheral_handle_gpio.h} (86%) rename src/daemon/include/{peripheral_bus_i2c.h => peripheral_handle_i2c.h} (87%) rename src/daemon/include/{peripheral_bus_pwm.h => peripheral_handle_pwm.h} (86%) rename src/daemon/include/{peripheral_bus_spi.h => peripheral_handle_spi.h} (86%) rename src/daemon/include/{peripheral_bus_uart.h => peripheral_handle_uart.h} (86%) rename src/daemon/{peripheral_bus_gpio.c => peripheral_handle_gpio.c} (100%) rename src/daemon/{peripheral_bus_i2c.c => peripheral_handle_i2c.c} (100%) rename src/daemon/{peripheral_bus_pwm.c => peripheral_handle_pwm.c} (100%) rename src/daemon/{peripheral_bus_spi.c => peripheral_handle_spi.c} (100%) rename src/daemon/{peripheral_bus_uart.c => peripheral_handle_uart.c} (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index e73c117..947f185 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,11 +28,11 @@ SET(SRCS src/daemon/peripheral_bus_gdbus_pwm.c src/daemon/peripheral_bus_gdbus_spi.c src/daemon/peripheral_bus_gdbus_uart.c - src/daemon/peripheral_bus_pwm.c - src/daemon/peripheral_bus_i2c.c - src/daemon/peripheral_bus_gpio.c - src/daemon/peripheral_bus_uart.c - src/daemon/peripheral_bus_spi.c + src/daemon/peripheral_handle_pwm.c + src/daemon/peripheral_handle_i2c.c + src/daemon/peripheral_handle_gpio.c + src/daemon/peripheral_handle_uart.c + src/daemon/peripheral_handle_spi.c src/daemon/peripheral_bus_board.c src/daemon/peripheral_io_gdbus.c src/daemon/privilege_checker.c diff --git a/src/daemon/include/peripheral_bus_gpio.h b/src/daemon/include/peripheral_handle_gpio.h similarity index 86% rename from src/daemon/include/peripheral_bus_gpio.h rename to src/daemon/include/peripheral_handle_gpio.h index 086f33f..84b750f 100644 --- a/src/daemon/include/peripheral_bus_gpio.h +++ b/src/daemon/include/peripheral_handle_gpio.h @@ -14,9 +14,10 @@ * limitations under the License. */ -#ifndef __PERIPHERAL_BUS_GPIO_H__ -#define __PERIPHERAL_BUS_GPIO_H__ +#ifndef __PERIPHERAL_HANDLE_GPIO_H__ +#define __PERIPHERAL_HANDLE_GPIO_H__ int peripheral_bus_gpio_open(gint pin, pb_data_h *handle, gpointer user_data); int peripheral_bus_gpio_close(pb_data_h handle); -#endif /* __PERIPHERAL_BUS_GPIO_H__ */ + +#endif /* __PERIPHERAL_HANDLE_GPIO_H__ */ diff --git a/src/daemon/include/peripheral_bus_i2c.h b/src/daemon/include/peripheral_handle_i2c.h similarity index 87% rename from src/daemon/include/peripheral_bus_i2c.h rename to src/daemon/include/peripheral_handle_i2c.h index 5622fd0..04bcd56 100644 --- a/src/daemon/include/peripheral_bus_i2c.h +++ b/src/daemon/include/peripheral_handle_i2c.h @@ -14,10 +14,10 @@ * limitations under the License. */ -#ifndef __PERIPHERAL_BUS_I2C_H__ -#define __PERIPHERAL_BUS_I2C_H__ +#ifndef __PERIPHERAL_HANDLE_I2C_H__ +#define __PERIPHERAL_HANDLE_I2C_H__ int peripheral_bus_i2c_open(int bus, int address, pb_data_h *handle, gpointer user_data); int peripheral_bus_i2c_close(pb_data_h handle); -#endif /* __PERIPHERAL_BUS_I2C_H__ */ +#endif /* __PERIPHERAL_HANDLE_I2C_H__ */ diff --git a/src/daemon/include/peripheral_bus_pwm.h b/src/daemon/include/peripheral_handle_pwm.h similarity index 86% rename from src/daemon/include/peripheral_bus_pwm.h rename to src/daemon/include/peripheral_handle_pwm.h index dfe90c0..f42a396 100644 --- a/src/daemon/include/peripheral_bus_pwm.h +++ b/src/daemon/include/peripheral_handle_pwm.h @@ -14,10 +14,10 @@ * limitations under the License. */ -#ifndef __PERIPHERAL_BUS_PWM_H__ -#define __PERIPHERAL_BUS_PWM_H__ +#ifndef __PERIPHERAL_HANDLE_PWM_H__ +#define __PERIPHERAL_HANDLE_PWM_H__ int peripheral_bus_pwm_open(int chip, int pin, pb_data_h *handle, gpointer user_data); int peripheral_bus_pwm_close(pb_data_h handle); -#endif /* __PERIPHERAL_BUS_PWM_H__ */ +#endif /* __PERIPHERAL_HANDLE_PWM_H__ */ diff --git a/src/daemon/include/peripheral_bus_spi.h b/src/daemon/include/peripheral_handle_spi.h similarity index 86% rename from src/daemon/include/peripheral_bus_spi.h rename to src/daemon/include/peripheral_handle_spi.h index b5e00eb..c0feda1 100644 --- a/src/daemon/include/peripheral_bus_spi.h +++ b/src/daemon/include/peripheral_handle_spi.h @@ -14,10 +14,10 @@ * limitations under the License. */ -#ifndef __PERIPHERAL_BUS_SPI_H__ -#define __PERIPHERAL_BUS_SPI_H__ +#ifndef __PERIPHERAL_HANDLE_SPI_H__ +#define __PERIPHERAL_HANDLE_SPI_H__ int peripheral_bus_spi_open(int bus, int cs, pb_data_h *handle, gpointer user_data); int peripheral_bus_spi_close(pb_data_h handle); -#endif /* __PERIPHERAL_BUS_SPI_H__ */ +#endif /* __PERIPHERAL_HANDLE_SPI_H__ */ diff --git a/src/daemon/include/peripheral_bus_uart.h b/src/daemon/include/peripheral_handle_uart.h similarity index 86% rename from src/daemon/include/peripheral_bus_uart.h rename to src/daemon/include/peripheral_handle_uart.h index 02b5cd0..57165b2 100644 --- a/src/daemon/include/peripheral_bus_uart.h +++ b/src/daemon/include/peripheral_handle_uart.h @@ -14,10 +14,10 @@ * limitations under the License. */ -#ifndef __PERIPHERAL_BUS_UART_H__ -#define __PERIPHERAL_BUS_UART_H__ +#ifndef __PERIPHERAL_HANDLE_UART_H__ +#define __PERIPHERAL_HANDLE_UART_H__ int peripheral_bus_uart_open(int port, pb_data_h *handle, gpointer user_data); int peripheral_bus_uart_close(pb_data_h handle); -#endif /* __PERIPHERAL_BUS_UART_H__ */ +#endif /* __PERIPHERAL_HANDLE_UART_H__ */ diff --git a/src/daemon/peripheral_bus_gdbus_gpio.c b/src/daemon/peripheral_bus_gdbus_gpio.c index b864c1d..b27793c 100644 --- a/src/daemon/peripheral_bus_gdbus_gpio.c +++ b/src/daemon/peripheral_bus_gdbus_gpio.c @@ -19,7 +19,7 @@ #include "peripheral_io_gdbus.h" #include "peripheral_bus.h" -#include "peripheral_bus_gpio.h" +#include "peripheral_handle_gpio.h" #include "peripheral_log.h" #include "peripheral_bus_util.h" #include "peripheral_bus_gdbus_gpio.h" diff --git a/src/daemon/peripheral_bus_gdbus_i2c.c b/src/daemon/peripheral_bus_gdbus_i2c.c index 6e0bfbb..5d06d7a 100644 --- a/src/daemon/peripheral_bus_gdbus_i2c.c +++ b/src/daemon/peripheral_bus_gdbus_i2c.c @@ -18,7 +18,7 @@ #include "peripheral_io_gdbus.h" #include "peripheral_bus.h" -#include "peripheral_bus_i2c.h" +#include "peripheral_handle_i2c.h" #include "peripheral_log.h" #include "peripheral_bus_util.h" #include "peripheral_bus_gdbus_i2c.h" diff --git a/src/daemon/peripheral_bus_gdbus_pwm.c b/src/daemon/peripheral_bus_gdbus_pwm.c index 47ead35..b44babc 100644 --- a/src/daemon/peripheral_bus_gdbus_pwm.c +++ b/src/daemon/peripheral_bus_gdbus_pwm.c @@ -18,7 +18,7 @@ #include "peripheral_io_gdbus.h" #include "peripheral_bus.h" -#include "peripheral_bus_pwm.h" +#include "peripheral_handle_pwm.h" #include "peripheral_log.h" #include "peripheral_bus_util.h" #include "peripheral_bus_gdbus_pwm.h" diff --git a/src/daemon/peripheral_bus_gdbus_spi.c b/src/daemon/peripheral_bus_gdbus_spi.c index f609690..447f34e 100644 --- a/src/daemon/peripheral_bus_gdbus_spi.c +++ b/src/daemon/peripheral_bus_gdbus_spi.c @@ -18,7 +18,7 @@ #include "peripheral_io_gdbus.h" #include "peripheral_bus.h" -#include "peripheral_bus_spi.h" +#include "peripheral_handle_spi.h" #include "peripheral_log.h" #include "peripheral_bus_util.h" #include "peripheral_bus_gdbus_spi.h" diff --git a/src/daemon/peripheral_bus_gdbus_uart.c b/src/daemon/peripheral_bus_gdbus_uart.c index 3aa3ea2..d895d98 100644 --- a/src/daemon/peripheral_bus_gdbus_uart.c +++ b/src/daemon/peripheral_bus_gdbus_uart.c @@ -18,7 +18,7 @@ #include "peripheral_io_gdbus.h" #include "peripheral_bus.h" -#include "peripheral_bus_uart.h" +#include "peripheral_handle_uart.h" #include "peripheral_log.h" #include "peripheral_bus_util.h" #include "peripheral_bus_gdbus_uart.h" diff --git a/src/daemon/peripheral_bus_gpio.c b/src/daemon/peripheral_handle_gpio.c similarity index 100% rename from src/daemon/peripheral_bus_gpio.c rename to src/daemon/peripheral_handle_gpio.c diff --git a/src/daemon/peripheral_bus_i2c.c b/src/daemon/peripheral_handle_i2c.c similarity index 100% rename from src/daemon/peripheral_bus_i2c.c rename to src/daemon/peripheral_handle_i2c.c diff --git a/src/daemon/peripheral_bus_pwm.c b/src/daemon/peripheral_handle_pwm.c similarity index 100% rename from src/daemon/peripheral_bus_pwm.c rename to src/daemon/peripheral_handle_pwm.c diff --git a/src/daemon/peripheral_bus_spi.c b/src/daemon/peripheral_handle_spi.c similarity index 100% rename from src/daemon/peripheral_bus_spi.c rename to src/daemon/peripheral_handle_spi.c diff --git a/src/daemon/peripheral_bus_uart.c b/src/daemon/peripheral_handle_uart.c similarity index 100% rename from src/daemon/peripheral_bus_uart.c rename to src/daemon/peripheral_handle_uart.c -- 2.7.4