Re: [PATCH v2 1/1] shared/att: Handle disconnects.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Arman,

> This patch adds disconnect handling to bt_att, in which
> io_set_disconnect_handler is used to set up a handler which cancels all
> pending and queued ATT operations, marks the bt_att structure as invalid
> and notifies the user via a specialized callback which can be set using
> bt_att_set_disconnect_cb.
> 
> Once the bt_att structure is invalidated, either due to a timed-out ATT protocol
> request/indication or a disconnect, it now destroys the underlying io structure.
> ---
> src/shared/att.c         | 85 +++++++++++++++++++++++++++++++++++-------------
> src/shared/att.h         |  5 +++
> src/shared/io-mainloop.c |  5 +++
> 3 files changed, 73 insertions(+), 22 deletions(-)
> 
> diff --git a/src/shared/att.c b/src/shared/att.c
> index 0d27dfa..b5ab742 100644
> --- a/src/shared/att.c
> +++ b/src/shared/att.c
> @@ -47,9 +47,7 @@ struct att_send_op;
> struct bt_att {
> 	int ref_count;
> 	int fd;
> -	bool close_on_unref;

I like to keep the close_on_unref logic. So please do not remove it.

Regards

Marcel

--
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




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux