Diff between 193c49b965c3bcce14fa7345174ba58921ea14f3 and 48f1e3c5b7b73a6ddcad573d6307360aa31aae78

Changed Files

File Additions Deletions Status
client/gatt.c +11 -0 modified

Full Patch

diff --git a/client/gatt.c b/client/gatt.c
index bd6e6b0..7530383 100644
--- a/client/gatt.c
+++ b/client/gatt.c
@@ -1405,6 +1405,16 @@ static DBusMessage *chrc_stop_notify(DBusConnection *conn, DBusMessage *msg,
 	return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
 }
 
+static DBusMessage *chrc_confirm(DBusConnection *conn, DBusMessage *msg,
+							void *user_data)
+{
+	struct chrc *chrc = user_data;
+
+	rl_printf("Attribute %s indication confirm received", chrc->path);
+
+	return dbus_message_new_method_return(msg);
+}
+
 static const GDBusMethodTable chrc_methods[] = {
 	{ GDBUS_ASYNC_METHOD("ReadValue", GDBUS_ARGS({ "options", "a{sv}" }),
 					GDBUS_ARGS({ "value", "ay" }),
@@ -1414,6 +1424,7 @@ static const GDBusMethodTable chrc_methods[] = {
 					NULL, chrc_write_value) },
 	{ GDBUS_ASYNC_METHOD("StartNotify", NULL, NULL, chrc_start_notify) },
 	{ GDBUS_METHOD("StopNotify", NULL, NULL, chrc_stop_notify) },
+	{ GDBUS_METHOD("Confirm", NULL, NULL, chrc_confirm) },
 	{ }
 };