From: Segwon Date: Mon, 13 Nov 2017 06:17:29 +0000 (+0900) Subject: [2/6] fd passing: add member variable for file descriptor in handle. X-Git-Tag: submit/tizen_4.0/20171220.125806^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af70ff10619d5c1caeb1ee629284f00ca14635c0;p=platform%2Fcore%2Fapi%2Fperipheral-io.git [2/6] fd passing: add member variable for file descriptor in handle. Signed-off-by: Segwon Change-Id: Ic82127b5a4426872b11da5434a8feddf53f4244e --- diff --git a/include/peripheral_internal.h b/include/peripheral_internal.h index ae4f47e..5c62dee 100644 --- a/include/peripheral_internal.h +++ b/include/peripheral_internal.h @@ -23,6 +23,9 @@ struct _peripheral_gpio_s { int pin; uint handle; + int fd_direction; + int fd_edge; + int fd_value; }; /** @@ -30,6 +33,7 @@ struct _peripheral_gpio_s { */ struct _peripheral_i2c_s { uint handle; + int fd; }; /** @@ -37,6 +41,10 @@ struct _peripheral_i2c_s { */ struct _peripheral_pwm_s { uint handle; + int fd_period; + int fd_duty_cycle; + int fd_polarity; + int fd_enable; }; /** @@ -44,6 +52,7 @@ struct _peripheral_pwm_s { */ struct _peripheral_uart_s { uint handle; + int fd; }; /** @@ -51,6 +60,7 @@ struct _peripheral_uart_s { */ struct _peripheral_spi_s { uint handle; + int fd; }; #endif /* __PERIPHERAL_INTERNAL_H__ */