Linux bluetooth development
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@tieto.com>
To: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 1/6] android/hal-health: Add channel state event handler
Date: Mon, 16 Jun 2014 09:25:59 +0200	[thread overview]
Message-ID: <2122561.WZrcmGmJP0@uw000953> (raw)
In-Reply-To: <1402578618-31484-2-git-send-email-ravikumar.veeramally@linux.intel.com>

Hi Ravi,

On Thursday 12 of June 2014 16:10:13 Ravi kumar Veeramally wrote:
> ---
>  android/hal-health.c | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/android/hal-health.c b/android/hal-health.c
> index 0ef6afc..27e72dc 100644
> --- a/android/hal-health.c
> +++ b/android/hal-health.c
> @@ -41,6 +41,17 @@ static void handle_app_registration_state(void *buf, uint16_t len, int fd)
>  		cbacks->app_reg_state_cb(ev->id, ev->state);
>  }
>  
> +static void handle_channel_state(void *buf, uint16_t len, int fd)
> +{
> +	struct hal_ev_health_channel_state *ev = buf;
> +
> +	if (cbacks->channel_state_cb)
> +		cbacks->channel_state_cb(ev->app_id,
> +					(bt_bdaddr_t *) ev->bdaddr,
> +					ev->mdep_index, ev->channel_id,
> +					ev->channel_state, fd);
> +}
> +
>  /*
>   * handlers will be called from notification thread context,
>   * index in table equals to 'opcode - HAL_MINIMUM_EVENT'
> @@ -49,6 +60,9 @@ static const struct hal_ipc_handler ev_handlers[] = {
>  	/* HAL_EV_HEALTH_APP_REG_STATE */
>  	{ handle_app_registration_state, false,
>  				sizeof(struct hal_ev_health_app_reg_state) },
> +	/* HAL_EV_HEALTH_CHANNEL_STATE */
> +	{ handle_channel_state, false,
> +				sizeof(struct hal_ev_health_channel_state) },
>  };
>  
>  static bt_status_t register_application(bthl_reg_param_t *reg, int *app_id)
> 

This patch is now applied, thanks.

-- 
Best regards, 
Szymon Janc

  reply	other threads:[~2014-06-16  7:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-12 13:10 [PATCH 0/6] HDP initial implementaion Ravi kumar Veeramally
2014-06-12 13:10 ` [PATCH 1/6] android/hal-health: Add channel state event handler Ravi kumar Veeramally
2014-06-16  7:25   ` Szymon Janc [this message]
2014-06-12 13:10 ` [PATCH 2/6] android/health: Cache health application data on app register call Ravi kumar Veeramally
2014-06-16  8:23   ` Szymon Janc
2014-06-16  9:22     ` Ravi kumar Veeramally
2014-06-16 12:02     ` Ravi kumar Veeramally
2014-06-12 13:10 ` [PATCH 3/6] android/health: Perform clean up on app unregister call Ravi kumar Veeramally
2014-06-12 13:10 ` [PATCH 4/6] android/health: Add HDP SDP record Ravi kumar Veeramally
2014-06-16  8:57   ` Szymon Janc
2014-06-16  9:18     ` Ravi kumar Veeramally
2014-06-16  9:26       ` Szymon Janc
2014-06-12 13:10 ` [PATCH 5/6] android/health: Notify application registration status Ravi kumar Veeramally
2014-06-16  8:59   ` Szymon Janc
2014-06-16  9:12     ` Ravi kumar Veeramally
2014-06-12 13:10 ` [PATCH 6/6] profile/health: Free sdp list after adding it to record Ravi kumar Veeramally

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=2122561.WZrcmGmJP0@uw000953 \
    --to=szymon.janc@tieto.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=ravikumar.veeramally@linux.intel.com \
    /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