linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steve Brown <sbrown@cortland.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
	linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH BlueZ] gatt: Mark AcquireWrite and AcquireNotify as stable
Date: Tue, 19 Dec 2017 13:06:29 -0500	[thread overview]
Message-ID: <1513706789.4409.9.camel@cortland.com> (raw)
In-Reply-To: <20171219170601.24722-1-luiz.dentz@gmail.com>

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


  reply	other threads:[~2017-12-19 18:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2017-12-19 19:25 ` Johan Hedberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1513706789.4409.9.camel@cortland.com \
    --to=sbrown@cortland.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).