Linux bluetooth development
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@tieto.com>
To: Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 1/2] android/bluetooth: Add function for getting bonded device list
Date: Wed, 14 May 2014 15:25:10 +0200	[thread overview]
Message-ID: <1704510.lWAUPKPsXh@uw000953> (raw)
In-Reply-To: <1399905493-10699-1-git-send-email-grzegorz.kolodziejczyk@tieto.com>

Hi Grzegorz,

On Monday 12 of May 2014 16:38:12 Grzegorz Kolodziejczyk wrote:
> This will be used by GATT HAL.
> ---
>  android/bluetooth.c | 8 ++++++++
>  android/bluetooth.h | 1 +
>  2 files changed, 9 insertions(+)
> 
> diff --git a/android/bluetooth.c b/android/bluetooth.c
> index be7b47c..ecdbeac 100644
> --- a/android/bluetooth.c
> +++ b/android/bluetooth.c
> @@ -1218,6 +1218,14 @@ const char *bt_get_adapter_name(void)
>  	return adapter.name;
>  }
>  
> +bool bt_device_is_bonded(const bdaddr_t *bdaddr)
> +{
> +	if (g_slist_find_custom(bonded_devices, bdaddr, device_match))
> +		return true;
> +
> +	return false;
> +}
> +
>  static bool rssi_above_threshold(int old, int new)
>  {
>  	/* only 8 dBm or more */
> diff --git a/android/bluetooth.h b/android/bluetooth.h
> index dddbf20..3eef7a4 100644
> --- a/android/bluetooth.h
> +++ b/android/bluetooth.h
> @@ -49,3 +49,4 @@ bool bt_le_set_advertising(bool advertising, bt_le_set_advertising_done cb,
>  
>  uint8_t bt_get_device_android_type(const bdaddr_t *addr);
>  const char *bt_get_adapter_name(void);
> +bool bt_device_is_bonded(const bdaddr_t *bdaddr);
> 

Both patches applied, thanks.

-- 
Best regards, 
Szymon Janc

      parent reply	other threads:[~2014-05-14 13:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-12 14:38 [PATCH 1/2] android/bluetooth: Add function for getting bonded device list Grzegorz Kolodziejczyk
2014-05-12 14:38 ` [PATCH 2/2] android/gatt: Refresh device cache on disconnect if not bonded Grzegorz Kolodziejczyk
2014-05-14 13:25 ` Szymon Janc [this message]

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=1704510.lWAUPKPsXh@uw000953 \
    --to=szymon.janc@tieto.com \
    --cc=grzegorz.kolodziejczyk@tieto.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