linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH v2 05/10] shared/gatt-db: Add gatt_db_attribute_get_user_data
Date: Wed, 20 Sep 2017 10:44:12 +0300	[thread overview]
Message-ID: <20170920074417.30435-6-luiz.dentz@gmail.com> (raw)
In-Reply-To: <20170920074417.30435-1-luiz.dentz@gmail.com>

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

This adds gatt_db_attribute_get_user_data which can be used to retrieve
the user_data given at registration.
---
 src/shared/gatt-db.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/shared/gatt-db.c b/src/shared/gatt-db.c
index f44cd1a07..2487584f3 100644
--- a/src/shared/gatt-db.c
+++ b/src/shared/gatt-db.c
@@ -1887,3 +1887,11 @@ bool gatt_db_attribute_reset(struct gatt_db_attribute *attrib)
 
 	return true;
 }
+
+void *gatt_db_attribute_get_user_data(struct gatt_db_attribute *attrib)
+{
+	if (!attrib)
+		return NULL;
+
+	return attrib->user_data;
+}
-- 
2.13.5


  parent reply	other threads:[~2017-09-20  7:44 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-20  7:44 [PATCH v2 00/10] gatt: Add server support for AcquireWrite and AcquireNotify Luiz Augusto von Dentz
2017-09-20  7:44 ` [PATCH v2 01/10] gatt: Remove useless debug Luiz Augusto von Dentz
2017-09-20  7:44 ` [PATCH v2 02/10] client: Rework variables for AcquireWrite/AcquireNotify Luiz Augusto von Dentz
2017-09-20  7:44 ` [PATCH v2 03/10] doc/gatt-api: Add server support for AcquireWrite and AcquireNotify Luiz Augusto von Dentz
2017-09-20  7:44 ` [PATCH v2 04/10] shared/gatt-server: Add bt_gatt_server_get_mtu Luiz Augusto von Dentz
2017-09-20  7:44 ` Luiz Augusto von Dentz [this message]
2017-09-20  7:44 ` [PATCH v2 06/10] gatt: Implement AcquireWrite for server Luiz Augusto von Dentz
2017-09-29  5:04   ` Yunhan Wang
2017-09-29  6:54     ` Luiz Augusto von Dentz
2017-09-29  7:14       ` Yunhan Wang
2017-09-29  7:22         ` Luiz Augusto von Dentz
2017-09-29  7:50           ` Yunhan Wang
2017-09-29  8:02             ` Luiz Augusto von Dentz
2017-09-30  3:39               ` Yunhan Wang
2017-10-02 11:57                 ` Luiz Augusto von Dentz
2017-10-03  0:24                   ` Yunhan Wang
2017-09-20  7:44 ` [PATCH v2 07/10] client: " Luiz Augusto von Dentz
2017-09-20  7:44 ` [PATCH v2 08/10] gatt: Implement AcquireNotify " Luiz Augusto von Dentz
2017-09-29  4:47   ` Yunhan Wang
2017-09-29  7:03     ` Luiz Augusto von Dentz
2017-10-03  6:13       ` Yunhan Wang
2017-10-03  7:36         ` Luiz Augusto von Dentz
2017-10-03 18:48           ` Yunhan Wang
2017-09-20  7:44 ` [PATCH v2 09/10] client: " Luiz Augusto von Dentz
2017-09-20  7:44 ` [PATCH v2 10/10] gatt: Update signature of AcquireWrite and AcquireNotify Luiz Augusto von Dentz
2017-09-21  7:49 ` [PATCH v2 00/10] gatt: Add server support for " Luiz Augusto von Dentz
2017-09-21 18:15   ` Yunhan Wang
2017-09-22 10:58     ` Luiz Augusto von Dentz

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=20170920074417.30435-6-luiz.dentz@gmail.com \
    --to=luiz.dentz@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /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).