Re: [PATCH BlueZ v1 02/15] gatt: Add helper for creating GATT characteristics

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

 



Hi Claudio,

On Wed, Mar 12, 2014, Claudio Takahasi wrote:
> --- a/src/gatt.c
> +++ b/src/gatt.c
> @@ -40,6 +40,9 @@
>  static const bt_uuid_t primary_uuid  = { .type = BT_UUID16,
>  					.value.u16 = GATT_PRIM_SVC_UUID };
>  
> +static const bt_uuid_t chr_uuid = { .type = BT_UUID16,
> +					.value.u16 = GATT_CHARAC_UUID };
> +
>  struct btd_attribute {
>  	uint16_t handle;
>  	bt_uuid_t type;
> @@ -50,6 +53,11 @@ struct btd_attribute {
>  static GList *local_attribute_db;
>  static uint16_t next_handle = 0x0001;
>  
> +static inline void put_le16(uint16_t val, void *dst)
> +{
> +	put_unaligned(cpu_to_le16(val), (uint16_t *) dst);
> +}

This helper should go to shared/util.h

Johan
--
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