Hi Marcin, On Wed, Apr 9, 2014 at 4:07 AM, Marcin Kraglak <marcin.kraglak@xxxxxxxxx> wrote: > Gatt database will store all services in queue services. Each service > contains attributes, number of handles included and flag if it is > active service. > --- > src/shared/gatt-db.c | 32 ++++++++++++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > > diff --git a/src/shared/gatt-db.c b/src/shared/gatt-db.c > index e56b381..47915c7 100644 > --- a/src/shared/gatt-db.c > +++ b/src/shared/gatt-db.c > @@ -21,11 +21,24 @@ > * > */ > > +#include <stdbool.h> > + > #include "src/shared/util.h" > +#include "src/shared/queue.h" > #include "src/shared/gatt-db.h" > > struct gatt_db { > uint16_t next_handle; > + struct queue *services; > +}; > + > +struct gatt_db_attribute { > +}; > + > +struct gatt_db_service { > + bool active; > + uint16_t num_handles; > + struct gatt_db_attribute **attributes; If the plan is to support handle allocation, maybe it'd better to have continuous memory allocation instead of attributes pointers. Claudio. <snip> -- 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