2010-12-20 23:06:02

by Sheldon Demario

[permalink] [raw]
Subject: [PATCH] Remove bt_discover_services function from glib-helper

There is no reference in the code for this function. SDP discovery in
the bluetoothd core and plugins are now using bt_search_service only.
---
src/glib-helper.c | 10 ----------
src/glib-helper.h | 3 ---
2 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/src/glib-helper.c b/src/glib-helper.c
index aa7f2c7..ec016a8 100644
--- a/src/glib-helper.c
+++ b/src/glib-helper.c
@@ -363,16 +363,6 @@ int bt_search_service(const bdaddr_t *src, const bdaddr_t *dst,
return 0;
}

-int bt_discover_services(const bdaddr_t *src, const bdaddr_t *dst,
- bt_callback_t cb, void *user_data, bt_destroy_t destroy)
-{
- uuid_t uuid;
-
- sdp_uuid16_create(&uuid, PUBLIC_BROWSE_GROUP);
-
- return bt_search_service(src, dst, &uuid, cb, user_data, destroy);
-}
-
static gint find_by_bdaddr(gconstpointer data, gconstpointer user_data)
{
const struct search_context *ctxt = data, *search = user_data;
diff --git a/src/glib-helper.h b/src/glib-helper.h
index 9cac915..a191be0 100644
--- a/src/glib-helper.h
+++ b/src/glib-helper.h
@@ -25,9 +25,6 @@ typedef void (*bt_callback_t) (sdp_list_t *recs, int err, gpointer user_data);
typedef void (*bt_primary_t) (GSList *l, int err, gpointer user_data);
typedef void (*bt_destroy_t) (gpointer user_data);

-int bt_discover_services(const bdaddr_t *src, const bdaddr_t *dst,
- bt_callback_t cb, void *user_data, bt_destroy_t destroy);
-
int bt_search_service(const bdaddr_t *src, const bdaddr_t *dst,
uuid_t *uuid, bt_callback_t cb, void *user_data,
bt_destroy_t destroy);
--
1.7.3.2



2010-12-21 08:09:01

by Challen Zhou

[permalink] [raw]
Subject: bluetooth for vendor special command and event

Hi,all,
I want to add a control interface for BT control other device(bt and the device on single chip),
Thus , I need to add some special HCI command and Event, but when I view the code
in kernel, but find that it do not provide this interface or function. Anybody have any idea on this?

BRS
Challen zhou

2010-12-20 23:10:24

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH] Remove bt_discover_services function from glib-helper

Hi Sheldon,

On Mon, Dec 20, 2010, Sheldon Demario wrote:
> There is no reference in the code for this function. SDP discovery in
> the bluetoothd core and plugins are now using bt_search_service only.
> ---
> src/glib-helper.c | 10 ----------
> src/glib-helper.h | 3 ---
> 2 files changed, 0 insertions(+), 13 deletions(-)

Pushed upstream. Thanks.

Johan