if (!gpio)
return;
- _D("gpio=%d state=%d",pin, state);
+ _D("gpio=%d state=%d", pin, state);
peripheral_gpio_isr_callback(pin);
}
i2c_proxy,
bus,
address,
- &i2c->fd,
+ &i2c->handle,
&ret,
NULL,
&error) == FALSE) {
if (peripheral_io_gdbus_i2c_call_close_sync(
i2c_proxy,
- i2c->fd,
+ i2c->handle,
&ret,
NULL,
&error) == FALSE) {
if (peripheral_io_gdbus_i2c_call_read_sync(
i2c_proxy,
- i2c->fd,
+ i2c->handle,
length,
&data_array,
&ret,
if (peripheral_io_gdbus_i2c_call_write_sync(
i2c_proxy,
- i2c->fd,
+ i2c->handle,
length,
g_data,
&ret,
<method name="Open">
<arg type="i" name="bus" direction="in"/>
<arg type="i" name="address" direction="in"/>
- <arg type="i" name="fd" direction="out"/>
+ <arg type="u" name="handle" direction="out"/>
<arg type="i" name="result" direction="out"/>
</method>
<method name="Close">
- <arg type="i" name="fd" direction="in"/>
+ <arg type="u" name="handle" direction="in"/>
<arg type="i" name="result" direction="out"/>
</method>
<method name="Read">
- <arg type="i" name="fd" direction="in"/>
+ <arg type="u" name="handle" direction="in"/>
<arg type="i" name="length" direction="in"/>
<arg type="a(y)" name="data" direction="out">
<annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>
<arg type="i" name="result" direction="out"/>
</method>
<method name="Write">
- <arg type="i" name="fd" direction="in"/>
+ <arg type="u" name="handle" direction="in"/>
<arg type="i" name="length" direction="in"/>
<arg type="a(y)" name="data" direction="in">
<annotation name="org.gtk.GDBus.C.ForceGVariant" value="true"/>