gdbus: add check error in gdbus functions 45/160145/4
authorSegwon <segwon.han@samsung.com>
Tue, 14 Nov 2017 13:27:05 +0000 (22:27 +0900)
committerSegwon Han <segwon.han@samsung.com>
Wed, 15 Nov 2017 06:13:25 +0000 (06:13 +0000)
commit3ab40f8b2bb51572a4263ea0821fe27bd1dbc9e0
treefbfc55cb3a2f765b4b7f211f39752cb9891482a6
parent2841452b5dfca59cee77e1bb749013a8244a9306
gdbus: add check error in gdbus functions

 when gdbus request to daemon for open/close, it can receive return value TRUE with ret that it is not PERIPEHRAL_ERROR_NONE.
 In the case of requesting open to daemon, getting fd from list is meaningless.
 In the case of requesting close to daemon, proxy deinit function must not be run.

Change-Id: I6ca7b1c98a15ca17159123903cd9d8ebe57c353c
Signed-off-by: Segwon <segwon.han@samsung.com>
src/gdbus/peripheral_gdbus_gpio.c
src/gdbus/peripheral_gdbus_i2c.c
src/gdbus/peripheral_gdbus_pwm.c
src/gdbus/peripheral_gdbus_spi.c
src/gdbus/peripheral_gdbus_uart.c