From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> This adds gatt_db_attribute_get_user_data which can be used to retrieve the user_data given at registration. --- src/shared/gatt-db.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/shared/gatt-db.c b/src/shared/gatt-db.c index f44cd1a07..2487584f3 100644 --- a/src/shared/gatt-db.c +++ b/src/shared/gatt-db.c @@ -1887,3 +1887,11 @@ bool gatt_db_attribute_reset(struct gatt_db_attribute *attrib) return true; } + +void *gatt_db_attribute_get_user_data(struct gatt_db_attribute *attrib) +{ + if (!attrib) + return NULL; + + return attrib->user_data; +} -- 2.13.5 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html