diff --git a/src/gatt-database.c b/src/gatt-database.c
index 88627ac..5979e37 100644
--- a/src/gatt-database.c
+++ b/src/gatt-database.c
struct gatt_db_attribute *attrib,
unsigned int id,
const uint8_t *value,
- size_t len)
+ size_t len,
+ uint16_t offset)
{
struct pending_op *op;
op->owner_queue = owner_queue;
op->attrib = attrib;
op->id = id;
+ op->offset = offset;
queue_push_tail(owner_queue, op);
return op;
GDBusProxy *proxy,
struct queue *owner_queue,
unsigned int id,
- const uint8_t *value, size_t len)
+ const uint8_t *value, size_t len,
+ uint16_t offset)
{
struct pending_op *op;
- op = pending_write_new(device, owner_queue, attrib, id, value, len);
+ op = pending_write_new(device, owner_queue, attrib, id, value, len,
+ offset);
if (g_dbus_proxy_method_call(proxy, "WriteValue", write_setup_cb,
owner_queue ? write_reply_cb : NULL,
}
if (send_write(device, attrib, desc->proxy, desc->pending_writes, id,
- value, len))
+ value, len, offset))
return;
fail:
else
queue = NULL;
- if (send_write(device, attrib, chrc->proxy, queue, id, value, len))
+ if (send_write(device, attrib, chrc->proxy, queue, id, value, len,
+ offset))
return;
fail: