#include <gio/gio.h>
#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
#include "peripheral_board.h"
+#include "peripheral_io.h"
#include "peripheral_io_gdbus.h"
+#include "peripheral_log.h"
typedef struct {
pb_board_s *board;
#define PERIPHERAL_H_TO_ID(ph) ((ph) ? (ph->handle_id) : 0)
-#include "peripheral_handle_common.h"
+peripheral_h peripheral_handle_new(GList **plist);
+int peripheral_handle_free(peripheral_h handle);
+peripheral_h peripheral_handle_find(GList *list, uint32_t _handle_id);
+
#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_HANDLE_COMMON_H__
-#define __PERIPHERAL_HANDLE_COMMON_H__
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdint.h>
-#include <gio/gio.h>
-#include <peripheral_io.h>
-
-#include "peripheral_handle.h"
-#include "peripheral_log.h"
-
-peripheral_h peripheral_handle_new(GList **plist);
-int peripheral_handle_free(peripheral_h handle);
-peripheral_h peripheral_handle_find(GList *list, uint32_t _handle_id);
-
-#endif /* __PERIPHERAL_HANDLE_COMMON_H__ */
* limitations under the License.
*/
-#include "peripheral_handle_common.h"
+#include "peripheral_handle.h"
static bool __peripheral_handle_adc_is_creatable(int device, int channel, peripheral_info_s *info)
{
#include <stdlib.h>
-#include "peripheral_handle_common.h"
+#include "peripheral_handle.h"
gint cmp_handle(gconstpointer elem, gconstpointer _handle_id)
{
* limitations under the License.
*/
-#include "peripheral_handle_common.h"
+#include "peripheral_handle.h"
static bool __peripheral_handle_gpio_is_creatable(int pin, peripheral_info_s *info)
{
* limitations under the License.
*/
-#include "peripheral_handle_common.h"
+#include "peripheral_handle.h"
static bool __peripheral_handle_i2c_is_creatable(int bus, int address, peripheral_info_s *info)
{
* limitations under the License.
*/
-#include "peripheral_handle_common.h"
+#include "peripheral_handle.h"
static bool __peripheral_handle_pwm_is_creatable(int chip, int pin, peripheral_info_s *info)
{
* limitations under the License.
*/
-#include "peripheral_handle_common.h"
+#include "peripheral_handle.h"
static bool __peripheral_handle_spi_is_creatable(int bus, int cs, peripheral_info_s *info)
{
* limitations under the License.
*/
-#include "peripheral_handle_common.h"
+#include "peripheral_handle.h"
static bool __peripheral_handle_uart_is_creatable(int port, peripheral_info_s *info)
{