Re: [PATCH 06/15] android/hal-msg: Add HDP app channel state event struct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ravi,

On 12 March 2014 16:10, Ravi kumar Veeramally
<ravikumar.veeramally@xxxxxxxxxxxxxxx> wrote:
> ---
>  android/hal-msg.h | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
>
> diff --git a/android/hal-msg.h b/android/hal-msg.h
> index 694529f..0139543 100644
> --- a/android/hal-msg.h
> +++ b/android/hal-msg.h
> @@ -1001,12 +1001,28 @@ struct hal_ev_pan_conn_state {
>  #define HAL_HEALTH_APP_DEREG_SUCCESS           0x02
>  #define HAL_HEALTH_APP_DEREG_FAILED            0x03
>
> +#define HAL_HEALTH_CHANL_STATE_CONNECTING      0x00
> +#define HAL_HEALTH_CHANL_STATE_CONNECTED       0x01
> +#define HAL_HEALTH_CHANL_STATE_DISCONNECTING   0x02
> +#define HAL_HEALTH_CHANL_STATE_DISCONNECTED    0x03
> +#define HAL_HEALTH_CHANL_STATE_DESTROYED       0x04
> +
>  #define HAL_EV_HEALTH_APP_REG_STATE            0x81
>  struct hal_ev_health_app_reg_state {
>         uint16_t id;
>         uint8_t  state;
>  } __attribute__((packed));
>
> +#define HAL_EV_HEALTH_CHNL_STATE               0x82

You have CHNL here and CHANL in states definitions - better have them
consistent. I guess either CHAN or CHANNEL would be actually better.

> +struct hal_ev_health_chnl_state {
> +       uint16_t app_id;
> +       uint8_t  bdaddr[6];
> +       uint8_t  mdep_index;
> +       uint16_t chnl_id;
> +       uint8_t  chnl_state;

Same here - chan or channel.

> +       uint32_t file_descr;

fd shall be passed as auxiliary data - there's parameter for this in
IPC calls. Now you just pass plain int value which is useless as fd.

BR,
Andrzej
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux