- the word 'internal' does not mean defining a handle structure.
Change-Id: Ica3650be46eb2285aaa543b1aadd3ae0a0f822cf
Signed-off-by: Segwon <segwon.han@samsung.com>
#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"
#include <unistd.h>
#include "peripheral_io.h"
-#include "peripheral_internal.h"
+#include "peripheral_handle.h"
#include "peripheral_common.h"
#define CHECK_ERROR(val) \
--- /dev/null
+/*
+ * 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__ */
+++ /dev/null
-/*
- * 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__ */
#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"
#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"
#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"
#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"
#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"