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