- add parameters to the gpio open method.
- update the gpio handle when the gpio attributes are changed.
Change-Id: I2c2ba69605bcc85c65beeb512c32a4b5d1453f18
Signed-off-by: jino.cho <jino.cho@samsung.com>
if (peripheral_io_gdbus_gpio_call_open_sync(
gpio_proxy,
gpio->pin,
+ (gint*)&gpio->edge,
+ (gint*)&gpio->direction,
&ret,
NULL,
&error) == FALSE) {
g_error_free(error);
return PERIPHERAL_ERROR_UNKNOWN;
}
+ gpio->direction = *direction;
return ret;
}
g_error_free(error);
return PERIPHERAL_ERROR_UNKNOWN;
}
+ gpio->direction = direction;
return ret;
}
g_error_free(error);
return PERIPHERAL_ERROR_UNKNOWN;
}
+ gpio->edge = *edge;
return ret;
}
g_error_free(error);
return PERIPHERAL_ERROR_UNKNOWN;
}
+ gpio->edge = edge;
return ret;
}
<interface name="org.tizen.peripheral_io.gpio">
<method name="Open">
<arg type="i" name="pin" direction="in"/>
+ <arg type="i" name="edge" direction="out"/>
+ <arg type="i" name="direction" direction="out"/>
<arg type="i" name="result" direction="out"/>
</method>
<method name="Close">