#include "peripheral_gdbus_common.h"
int peripheral_gdbus_gpio_open(peripheral_gpio_h gpio);
-int peripheral_gdbus_gpio_close();
+int peripheral_gdbus_gpio_close(void);
#endif /* __PERIPHERAL_GDBUS_GPIO_H__ */
#include "peripheral_gdbus_common.h"
int peripheral_gdbus_i2c_open(peripheral_i2c_h i2c, int bus, int address);
-int peripheral_gdbus_i2c_close();
+int peripheral_gdbus_i2c_close(void);
#endif /* __PERIPHERAL_GDBUS_I2C_H__ */
#include "peripheral_gdbus_common.h"
int peripheral_gdbus_pwm_open(peripheral_pwm_h pwm, int chip, int pin);
-int peripheral_gdbus_pwm_close();
+int peripheral_gdbus_pwm_close(void);
#endif /* __PERIPHERAL_GDBUS_PWM_H__ */
#include "peripheral_gdbus_common.h"
int peripheral_gdbus_spi_open(peripheral_spi_h spi, int bus, int cs);
-int peripheral_gdbus_spi_close();
+int peripheral_gdbus_spi_close(void);
#endif /* __PERIPHERAL_GDBUS_SPI_H_ */
#include "peripheral_gdbus_common.h"
int peripheral_gdbus_uart_open(peripheral_uart_h uart, int port);
-int peripheral_gdbus_uart_close();
+int peripheral_gdbus_uart_close(void);
#endif /* __PERIPHERAL_GDBUS_UART_H_ */
static PeripheralIoGdbusGpio *gpio_proxy = NULL;
-static int __gpio_proxy_init()
+static int __gpio_proxy_init(void)
{
GError *error = NULL;
return PERIPHERAL_ERROR_NONE;
}
-static int __gpio_proxy_deinit()
+static int __gpio_proxy_deinit(void)
{
if (gpio_proxy == NULL) {
_E("Gpio proxy is NULL");
return ret;
}
-int peripheral_gdbus_gpio_close()
+int peripheral_gdbus_gpio_close(void)
{
int ret = __gpio_proxy_deinit();
return ret;
static PeripheralIoGdbusI2c *i2c_proxy = NULL;
-static int __i2c_proxy_init()
+static int __i2c_proxy_init(void)
{
GError *error = NULL;
return PERIPHERAL_ERROR_NONE;
}
-static int __i2c_proxy_deinit()
+static int __i2c_proxy_deinit(void)
{
if (i2c_proxy == NULL) {
_E("I2c proxy is NULL");
return ret;
}
-int peripheral_gdbus_i2c_close()
+int peripheral_gdbus_i2c_close(void)
{
int ret = __i2c_proxy_deinit();
return ret;
static PeripheralIoGdbusPwm *pwm_proxy = NULL;
-static int __pwm_proxy_init()
+static int __pwm_proxy_init(void)
{
GError *error = NULL;
return PERIPHERAL_ERROR_NONE;
}
-static int __pwm_proxy_deinit()
+static int __pwm_proxy_deinit(void)
{
if (pwm_proxy == NULL) {
_E("Pwm proxy is NULL");
return ret;
}
-int peripheral_gdbus_pwm_close()
+int peripheral_gdbus_pwm_close(void)
{
int ret = __pwm_proxy_deinit();
return ret;
static PeripheralIoGdbusSpi *spi_proxy = NULL;
-static int __spi_proxy_init()
+static int __spi_proxy_init(void)
{
GError *error = NULL;
return PERIPHERAL_ERROR_NONE;
}
-static int __spi_proxy_deinit()
+static int __spi_proxy_deinit(void)
{
if (spi_proxy == NULL) {
_E("Spi proxy is NULL");
return ret;
}
-int peripheral_gdbus_spi_close()
+int peripheral_gdbus_spi_close(void)
{
int ret = __spi_proxy_deinit();
return ret;
static PeripheralIoGdbusUart *uart_proxy = NULL;
-static int __uart_proxy_init()
+static int __uart_proxy_init(void)
{
GError *error = NULL;
return PERIPHERAL_ERROR_NONE;
}
-static int __uart_proxy_deinit()
+static int __uart_proxy_deinit(void)
{
if (uart_proxy == NULL) {
_E("Uart proxy is NULL");
return ret;
}
-int peripheral_gdbus_uart_close()
+int peripheral_gdbus_uart_close(void)
{
int ret = __uart_proxy_deinit();
return ret;
static int gpio_feature = GPIO_FEATURE_UNKNOWN;
-static bool __is_feature_supported()
+static bool __is_feature_supported(void)
{
int ret = SYSTEM_INFO_ERROR_NONE;
bool feature = false;
static int i2c_feature = I2C_FEATURE_UNKNOWN;
-static bool __is_feature_supported()
+static bool __is_feature_supported(void)
{
int ret = SYSTEM_INFO_ERROR_NONE;
bool feature = false;
static int pwm_feature = PWM_FEATURE_UNKNOWN;
-static bool __is_feature_supported()
+static bool __is_feature_supported(void)
{
int ret = SYSTEM_INFO_ERROR_NONE;
bool feature = false;
static int spi_feature = SPI_FEATURE_UNKNOWN;
-static bool __is_feature_supported()
+static bool __is_feature_supported(void)
{
int ret = SYSTEM_INFO_ERROR_NONE;
bool feature = false;
static int uart_feature = UART_FEATURE_UNKNOWN;
-static bool __is_feature_supported()
+static bool __is_feature_supported(void)
{
int ret = SYSTEM_INFO_ERROR_NONE;
bool feature = false;