handle: change file name 'peripheral_internal.h' to 'peripheral_handle.h' 42/160242/2
authorSegwon <segwon.han@samsung.com>
Wed, 15 Nov 2017 02:59:38 +0000 (11:59 +0900)
committerSegwon <segwon.han@samsung.com>
Wed, 15 Nov 2017 06:17:25 +0000 (15:17 +0900)
 - the word 'internal' does not mean defining a handle structure.

Change-Id: Ica3650be46eb2285aaa543b1aadd3ae0a0f822cf
Signed-off-by: Segwon <segwon.han@samsung.com>
include/gdbus/peripheral_gdbus_common.h
include/interface/peripheral_interface_common.h
include/peripheral_handle.h [new file with mode: 0644]
include/peripheral_internal.h [deleted file]
src/peripheral_gpio.c
src/peripheral_i2c.c
src/peripheral_pwm.c
src/peripheral_spi.c
src/peripheral_uart.c

index 9a8450e36b39549cb0b7de3996b68bd2e1a61da1..ed8c3977ad8cfcde3a173960d91585f8dff83741 100644 (file)
@@ -23,7 +23,7 @@
 #include <gio/gunixfdlist.h>
 
 #include "peripheral_io.h"
-#include "peripheral_internal.h"
+#include "peripheral_handle.h"
 #include "peripheral_common.h"
 #include "peripheral_io_gdbus.h"
 
index a69254e90ecf0de00326a11b2f3d8d4674081589..f0bd657348ac06b4e45f4d9650404986e8769669 100644 (file)
@@ -25,7 +25,7 @@
 #include <unistd.h>
 
 #include "peripheral_io.h"
-#include "peripheral_internal.h"
+#include "peripheral_handle.h"
 #include "peripheral_common.h"
 
 #define CHECK_ERROR(val) \
diff --git a/include/peripheral_handle.h b/include/peripheral_handle.h
new file mode 100644 (file)
index 0000000..be8a066
--- /dev/null
@@ -0,0 +1,66 @@
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ *
+ * 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 __PERIPHERAL_HANDLE_H__
+#define __PERIPHERAL_HANDLE_H__
+
+/**
+ * @brief Internal struct for gpio context
+ */
+struct _peripheral_gpio_s {
+       int pin;
+       uint handle;
+       int fd_direction;
+       int fd_edge;
+       int fd_value;
+};
+
+/**
+ * @brief Internal struct for i2c context
+ */
+struct _peripheral_i2c_s {
+       uint handle;
+       int fd;
+};
+
+/**
+ * @brief Internal struct for pwm context
+ */
+struct _peripheral_pwm_s {
+       uint handle;
+       int fd_period;
+       int fd_duty_cycle;
+       int fd_polarity;
+       int fd_enable;
+};
+
+/**
+ * @brief Internal struct for uart context
+ */
+struct _peripheral_uart_s {
+       uint handle;
+       int fd;
+};
+
+/**
+ * @brief Internal struct for spi context
+ */
+struct _peripheral_spi_s {
+       uint handle;
+       int fd;
+};
+
+#endif /* __PERIPHERAL_HANDLE_H__ */
diff --git a/include/peripheral_internal.h b/include/peripheral_internal.h
deleted file mode 100644 (file)
index 5c62dee..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
- *
- * 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 __PERIPHERAL_INTERNAL_H__
-#define __PERIPHERAL_INTERNAL_H__
-
-/**
- * @brief Internal struct for gpio context
- */
-struct _peripheral_gpio_s {
-       int pin;
-       uint handle;
-       int fd_direction;
-       int fd_edge;
-       int fd_value;
-};
-
-/**
- * @brief Internal struct for i2c context
- */
-struct _peripheral_i2c_s {
-       uint handle;
-       int fd;
-};
-
-/**
- * @brief Internal struct for pwm context
- */
-struct _peripheral_pwm_s {
-       uint handle;
-       int fd_period;
-       int fd_duty_cycle;
-       int fd_polarity;
-       int fd_enable;
-};
-
-/**
- * @brief Internal struct for uart context
- */
-struct _peripheral_uart_s {
-       uint handle;
-       int fd;
-};
-
-/**
- * @brief Internal struct for spi context
- */
-struct _peripheral_spi_s {
-       uint handle;
-       int fd;
-};
-
-#endif /* __PERIPHERAL_INTERNAL_H__ */
index 6a03a5a06701e805d6f1d555f085ba9f4d43c2e7..06806ec20444ae9ceffe1bc9f6e3bc9369f61158 100644 (file)
@@ -24,7 +24,7 @@
 #include "peripheral_io.h"
 #include "peripheral_gdbus_gpio.h"
 #include "peripheral_common.h"
-#include "peripheral_internal.h"
+#include "peripheral_handle.h"
 
 #define PERIPHERAL_IO_GPIO_FEATURE "http://tizen.org/feature/peripheral_io.gpio"
 
index d7293569866efdcdc2f00fc8dec232d215042a3d..89c1674efe25f4f1822caa145d482eeb525dd439 100644 (file)
@@ -23,7 +23,7 @@
 #include "peripheral_io.h"
 #include "peripheral_gdbus_i2c.h"
 #include "peripheral_common.h"
-#include "peripheral_internal.h"
+#include "peripheral_handle.h"
 
 #define PERIPHERAL_IO_I2C_FEATURE "http://tizen.org/feature/peripheral_io.i2c"
 
index e21bcbbbde95a75a846e8e80ffe66feea960b507..c671ff45c9ddec2a113e4c404ec6225a6868955a 100644 (file)
@@ -23,7 +23,7 @@
 #include "peripheral_io.h"
 #include "peripheral_gdbus_pwm.h"
 #include "peripheral_common.h"
-#include "peripheral_internal.h"
+#include "peripheral_handle.h"
 
 #define PERIPHERAL_IO_PWM_FEATURE "http://tizen.org/feature/peripheral_io.pwm"
 
index 68e97611513b3f68f16047369eae76c888ad1244..0a9e95e213deb573764eec82794a185027e66aa3 100644 (file)
@@ -24,7 +24,7 @@
 #include "peripheral_io.h"
 #include "peripheral_gdbus_spi.h"
 #include "peripheral_common.h"
-#include "peripheral_internal.h"
+#include "peripheral_handle.h"
 
 #define PERIPHERAL_IO_SPI_FEATURE "http://tizen.org/feature/peripheral_io.spi"
 
index ad58c0c573041e8112c77419da40efdfae9675b3..0d67c989a4353fa491f3911ab3c5a97ceec370ee 100644 (file)
@@ -23,7 +23,7 @@
 #include "peripheral_io.h"
 #include "peripheral_gdbus_uart.h"
 #include "peripheral_common.h"
-#include "peripheral_internal.h"
+#include "peripheral_handle.h"
 
 #define PERIPHERAL_IO_UART_FEATURE "http://tizen.org/feature/peripheral_io.uart"