Skip to contentSkip to conversation

gatt: Mark AcquireWrite and AcquireNotify as stable

PATCH Applied Luiz Augusto von Dentz 3 participants 3 messages Dec 19, 2017 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 gatt: Mark AcquireWrite and AcquireNotify as stable

From: Luiz Augusto von Dentz <[email protected]>

AcquireWrite and AcquireNofify are required by meshctl.

---
 doc/gatt-api.txt  |  4 ++--
 src/gatt-client.c | 10 ++++------
 2 files changed, 6 insertions(+), 8 deletions(-)
doc/gatt-api.txt +2 -2
index 8a367783c..ccf3a8b6d 100644
@@ -91,7 +91,7 @@ Methods		array{byte} ReadValue(dict options)
 					 org.bluez.Error.NotAuthorized
 					 org.bluez.Error.NotSupported
 
-		fd, uint16 AcquireWrite(dict options) [experimental, optional]
+		fd, uint16 AcquireWrite(dict options) [optional]
 
 			Acquire file descriptor and MTU for writing. Usage of
 			WriteValue will be locked causing it to return
@@ -120,7 +120,7 @@ Methods		array{byte} ReadValue(dict options)
 			Possible Errors: org.bluez.Error.Failed
 					 org.bluez.Error.NotSupported
 
-		fd, uint16 AcquireNotify(dict options) [experimental, optional]
+		fd, uint16 AcquireNotify(dict options) [optional]
 
 			Acquire file descriptor and MTU for notify. Usage of
 			StartNotify will be locked causing it to return
src/gatt-client.c +4 -6
index 6d5bbfa02..2f01867dc 100644
@@ -1612,11 +1612,9 @@ static const GDBusPropertyTable characteristic_properties[] = {
 					characteristic_notifying_exists },
 	{ "Flags", "as", characteristic_get_flags, NULL, NULL },
 	{ "WriteAcquired", "b", characteristic_get_write_acquired, NULL,
-				characteristic_write_acquired_exists,
-				G_DBUS_PROPERTY_FLAG_EXPERIMENTAL },
+				characteristic_write_acquired_exists },
 	{ "NotifyAcquired", "b", characteristic_get_notify_acquired, NULL,
-				characteristic_notify_acquired_exists,
-				G_DBUS_PROPERTY_FLAG_EXPERIMENTAL },
+				characteristic_notify_acquired_exists },
 	{ }
 };
 
@@ -1628,12 +1626,12 @@ static const GDBusMethodTable characteristic_methods[] = {
 						{ "options", "a{sv}" }),
 					NULL,
 					characteristic_write_value) },
-	{ GDBUS_EXPERIMENTAL_ASYNC_METHOD("AcquireWrite",
+	{ GDBUS_ASYNC_METHOD("AcquireWrite",
 					GDBUS_ARGS({ "options", "a{sv}" }),
 					GDBUS_ARGS({ "fd", "h" },
 						{ "mtu", "q" }),
 					characteristic_acquire_write) },
-	{ GDBUS_EXPERIMENTAL_ASYNC_METHOD("AcquireNotify",
+	{ GDBUS_ASYNC_METHOD("AcquireNotify",
 					GDBUS_ARGS({ "options", "a{sv}" }),
 					GDBUS_ARGS({ "fd", "h" },
 						{ "mtu", "q" }),
Signature · 1 line
2.13.6
#1 lore raw

Hi Luiz,

Quoted 86 lines · Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

AcquireWrite and AcquireNofify are required by meshctl.

---
 doc/gatt-api.txt  |  4 ++--
 src/gatt-client.c | 10 ++++------
 2 files changed, 6 insertions(+), 8 deletions(-)
doc/gatt-api.txt +0 -0
index 8a367783c..ccf3a8b6d 100644
@@ -91,7 +91,7 @@ Methods		array{byte} ReadValue(dict
 options)
 					 org.bluez.Error.NotAuthoriz

ed
org.bluez.Error.NotSupporte
d

doc/gatt-api.txt +0 -1
-		fd, uint16 AcquireWrite(dict options) [experimental,

optional]

doc/gatt-api.txt +1 -0
+		fd, uint16 AcquireWrite(dict options) [optional]
 
 			Acquire file descriptor and MTU for writing.

Usage of
WriteValue will be locked causing it to
return

doc/gatt-api.txt +0 -0
@@ -120,7 +120,7 @@ Methods		array{byte} ReadValue(dict
 options)
 			Possible Errors: org.bluez.Error.Failed
 					 org.bluez.Error.NotSupporte

d

doc/gatt-api.txt +0 -1
-		fd, uint16 AcquireNotify(dict options)

[experimental, optional]

doc/gatt-api.txt +1 -0
+		fd, uint16 AcquireNotify(dict options) [optional]
 
 			Acquire file descriptor and MTU for notify.

Usage of
StartNotify will be locked causing it to
return

src/gatt-client.c +1 -2
index 6d5bbfa02..2f01867dc 100644
@@ -1612,11 +1612,9 @@ static const GDBusPropertyTable
 characteristic_properties[] = {
 					characteristic_notifying_exi
 sts },
 	{ "Flags", "as", characteristic_get_flags, NULL, NULL },
 	{ "WriteAcquired", "b", characteristic_get_write_acquired,
 NULL,
-				characteristic_write_acquired_exists
 ,
-				G_DBUS_PROPERTY_FLAG_EXPERIMENTAL },
+				characteristic_write_acquired_exists
 },
 	{ "NotifyAcquired", "b", characteristic_get_notify_acquired,

NULL,

src/gatt-client.c +0 -1
-				characteristic_notify_acquired_exist

s,

src/gatt-client.c +1 -1
-				G_DBUS_PROPERTY_FLAG_EXPERIMENTAL },
+				characteristic_notify_acquired_exist

s },

src/gatt-client.c +1 -1
 	{ }
 };
@@ -1628,12 +1626,12 @@ static const GDBusMethodTable
 characteristic_methods[] = {
 						{ "options", "a{sv}"
 }),
 					NULL,
 					characteristic_write_value)
 },
-	{ GDBUS_EXPERIMENTAL_ASYNC_METHOD("AcquireWrite",
+	{ GDBUS_ASYNC_METHOD("AcquireWrite",
 					GDBUS_ARGS({ "options",
 "a{sv}" }),
 					GDBUS_ARGS({ "fd", "h" },
 						{ "mtu", "q" }),
 					characteristic_acquire_write

) },

src/gatt-client.c +1 -1
-	{ GDBUS_EXPERIMENTAL_ASYNC_METHOD("AcquireNotify",
+	{ GDBUS_ASYNC_METHOD("AcquireNotify",
 					GDBUS_ARGS({ "options",

"a{sv}" }),

src/gatt-client.c

Quoted 2 lines
src/gatt-client.c +0 -0
 					GDBUS_ARGS({ "fd", "h" },
 						{ "mtu", "q" }),

Successfully provisioned a node without -E.

Thanks,
Steve

#2 lore raw
In reply to Luiz Augusto von Dentz

Hi Luiz,

Quoted 5 lines · Luiz Augusto von Dentz

AcquireWrite and AcquireNofify are required by meshctl.

---
 doc/gatt-api.txt  |  4 ++--
 src/gatt-client.c | 10 ++++------
 2 files changed, 6 insertions(+), 8 deletions(-)

Applied. Thanks.

Johan