linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ] gatt: Mark AcquireWrite and AcquireNotify as stable
@ 2017-12-19 17:06 Luiz Augusto von Dentz
  2017-12-19 18:06 ` Steve Brown
  2017-12-19 19:25 ` Johan Hedberg
  0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2017-12-19 17:06 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

AcquireWrite and AcquireNofify are required by meshctl.
---
 doc/gatt-api.txt  |  4 ++--
 src/gatt-client.c | 10 ++++------
 2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/doc/gatt-api.txt b/doc/gatt-api.txt
index 8a367783c..ccf3a8b6d 100644
--- a/doc/gatt-api.txt
+++ b/doc/gatt-api.txt
@@ -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
diff --git a/src/gatt-client.c b/src/gatt-client.c
index 6d5bbfa02..2f01867dc 100644
--- a/src/gatt-client.c
+++ b/src/gatt-client.c
@@ -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" }),
-- 
2.13.6


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH BlueZ] gatt: Mark AcquireWrite and AcquireNotify as stable
  2017-12-19 17:06 [PATCH BlueZ] gatt: Mark AcquireWrite and AcquireNotify as stable Luiz Augusto von Dentz
@ 2017-12-19 18:06 ` Steve Brown
  2017-12-19 19:25 ` Johan Hedberg
  1 sibling, 0 replies; 3+ messages in thread
From: Steve Brown @ 2017-12-19 18:06 UTC (permalink / raw)
  To: Luiz Augusto von Dentz, linux-bluetooth

Hi Luiz,

On Tue, 2017-12-19 at 15:06 -0200, Luiz Augusto von Dentz wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
> 
> AcquireWrite and AcquireNofify are required by meshctl.
> ---
>  doc/gatt-api.txt  |  4 ++--
>  src/gatt-client.c | 10 ++++------
>  2 files changed, 6 insertions(+), 8 deletions(-)
> 
> diff --git a/doc/gatt-api.txt b/doc/gatt-api.txt
> index 8a367783c..ccf3a8b6d 100644
> --- a/doc/gatt-api.txt
> +++ b/doc/gatt-api.txt
> @@ -91,7 +91,7 @@ Methods		array{byte} ReadValue(dict
> options)
>  					 org.bluez.Error.NotAuthoriz
> ed
>  					 org.bluez.Error.NotSupporte
> d
>  
> -		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.NotSupporte
> d
>  
> -		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
> diff --git a/src/gatt-client.c b/src/gatt-client.c
> index 6d5bbfa02..2f01867dc 100644
> --- a/src/gatt-client.c
> +++ b/src/gatt-client.c
> @@ -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,
> -				characteristic_notify_acquired_exist
> s,
> -				G_DBUS_PROPERTY_FLAG_EXPERIMENTAL },
> +				characteristic_notify_acquired_exist
> s },
>  	{ }
>  };
>  
> @@ -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" }),

Successfully provisioned a node without -E.

Thanks,
Steve


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH BlueZ] gatt: Mark AcquireWrite and AcquireNotify as stable
  2017-12-19 17:06 [PATCH BlueZ] gatt: Mark AcquireWrite and AcquireNotify as stable Luiz Augusto von Dentz
  2017-12-19 18:06 ` Steve Brown
@ 2017-12-19 19:25 ` Johan Hedberg
  1 sibling, 0 replies; 3+ messages in thread
From: Johan Hedberg @ 2017-12-19 19:25 UTC (permalink / raw)
  To: Luiz Augusto von Dentz; +Cc: linux-bluetooth

Hi Luiz,

On Tue, Dec 19, 2017, Luiz Augusto von Dentz wrote:
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-19 19:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-19 17:06 [PATCH BlueZ] gatt: Mark AcquireWrite and AcquireNotify as stable Luiz Augusto von Dentz
2017-12-19 18:06 ` Steve Brown
2017-12-19 19:25 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).