Diff between f6e2c8c614b4b3df190f64b2b04fc05320319a07 and 1557acd733b65cedaba1f2f0c191205305bd0dad
Changed Files
| File | Additions | Deletions | Status |
| src/device.c | +4 | -0 | modified |
Full Patch
diff --git a/src/device.c b/src/device.c
index 2196cd4..b3c7384 100644
--- a/src/device.c
+++ b/src/device.c
@@ -132,6 +132,7 @@ struct btd_device {
struct bonding_req *bonding;
struct authentication_req *authr; /* authentication request */
GSList *disconnects; /* disconnects message */
+ GAttrib *attrib;
GSList *attios;
gboolean connected;
@@ -2473,6 +2474,9 @@ guint btd_device_add_attio_callback(struct btd_device *device,
device->attios = g_slist_append(device->attios, attio);
+ if (device->attrib && func)
+ func(device->attrib, user_data);
+
return attio->id;
}