Linux-Bluetooth Archive on lore.kernel.org
 help / Atom feed
* [PATCH BlueZ] gatt: Register GATT and GAP services as SDP records
@ 2018-12-04 19:44 Luiz Augusto von Dentz
  2018-12-05 12:09 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2018-12-04 19:44 UTC (permalink / raw)
  To: linux-bluetooth

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

This ensures that GATT and GAP services can be discover over SDP as well
as over GATT.
---
 src/gatt-database.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gatt-database.c b/src/gatt-database.c
index c31afa0e9..2c2f035b1 100644
--- a/src/gatt-database.c
+++ b/src/gatt-database.c
@@ -847,6 +847,8 @@ static void populate_gap_service(struct btd_gatt_database *database)
 							NULL, database);
 
 	gatt_db_service_set_active(service, true);
+
+	database_add_record(database, service);
 }
 
 static void gatt_ccc_read_cb(struct gatt_db_attribute *attrib,
@@ -1071,6 +1073,8 @@ static void populate_gatt_service(struct btd_gatt_database *database)
 									NULL);
 
 	gatt_db_service_set_active(service, true);
+
+	database_add_record(database, service);
 }
 
 static void register_core_services(struct btd_gatt_database *database)
-- 
2.17.2


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

* Re: [PATCH BlueZ] gatt: Register GATT and GAP services as SDP records
  2018-12-04 19:44 [PATCH BlueZ] gatt: Register GATT and GAP services as SDP records Luiz Augusto von Dentz
@ 2018-12-05 12:09 ` Luiz Augusto von Dentz
  0 siblings, 0 replies; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2018-12-05 12:09 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

On Tue, Dec 4, 2018 at 9:44 PM Luiz Augusto von Dentz
<luiz.dentz@gmail.com> wrote:
>
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> This ensures that GATT and GAP services can be discover over SDP as well
> as over GATT.
> ---
>  src/gatt-database.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/src/gatt-database.c b/src/gatt-database.c
> index c31afa0e9..2c2f035b1 100644
> --- a/src/gatt-database.c
> +++ b/src/gatt-database.c
> @@ -847,6 +847,8 @@ static void populate_gap_service(struct btd_gatt_database *database)
>                                                         NULL, database);
>
>         gatt_db_service_set_active(service, true);
> +
> +       database_add_record(database, service);
>  }
>
>  static void gatt_ccc_read_cb(struct gatt_db_attribute *attrib,
> @@ -1071,6 +1073,8 @@ static void populate_gatt_service(struct btd_gatt_database *database)
>                                                                         NULL);
>
>         gatt_db_service_set_active(service, true);
> +
> +       database_add_record(database, service);
>  }
>
>  static void register_core_services(struct btd_gatt_database *database)
> --
> 2.17.2

Applied.

-- 
Luiz Augusto von Dentz

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-04 19:44 [PATCH BlueZ] gatt: Register GATT and GAP services as SDP records Luiz Augusto von Dentz
2018-12-05 12:09 ` Luiz Augusto von Dentz

Linux-Bluetooth Archive on lore.kernel.org

Archives are clonable: git clone --mirror https://lore.kernel.org/linux-bluetooth/0 linux-bluetooth/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-bluetooth linux-bluetooth/ https://lore.kernel.org/linux-bluetooth \
		linux-bluetooth@vger.kernel.org linux-bluetooth@archiver.kernel.org
	public-inbox-index linux-bluetooth


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-bluetooth


AGPL code for this site: git clone https://public-inbox.org/ public-inbox