Linux bluetooth development
 help / color / mirror / Atom feed
* GATT Clients and Servers in the kernel (was Re:[PATCH BlueZ v3 06/16] attrib...)
@ 2013-05-02 20:15 Vinicius Gomes
  2013-05-03  4:43 ` Johan Hedberg
  0 siblings, 1 reply; 8+ messages in thread
From: Vinicius Gomes @ 2013-05-02 20:15 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: Johan Hedberg, Jefferson Delfes, BlueZ development

Hi Marcel,

[ moving to a new thread ]

On Thu, May 2, 2013 at 1:05 PM, Marcel Holtmann <marcel@holtmann.org> wrote=
:
> Hi Johan,
>
>>> -gboolean g_attrib_set_destroy_function(GAttrib *attrib,
>>> -            GDestroyNotify destroy, gpointer user_data)
>>> +bool g_attrib_set_destroy_function(GAttrib *attrib, GDestroyNotify des=
troy,
>>> +                                                    gpointer user_data=
)
>>
>> I've applied patches 1-5 but stopped there since I'm still not sure that
>> we want to change this for an API which tries to follow GLib conventions
>> (after all that's why the GAttrib API has G and g_ prefixes). Marcel, do
>> you have any opinion about this one way or another?
>
> the long term plan is to use standard types like bool, char, uint8_t and =
also void * here. However we might want to also see how to get rid of g_ pr=
efix as well. Especially g_attrib seems to be a good candidate to get rid o=
f.
>
> I also like to see ATT and GATT being implemented as src/shared/ under LG=
PL so we can be easily share it in the future. I already have some (unpubli=
shed) code for src/shared/att.[ch] and src/shared/gatt.[ch] already, but I =
think what we first need to do is to figure out how we handle clients and s=
ervers from the kernel side. Especially with the background of the kernel a=
uto-connecting LE channels in the future.

I am assuming you were talking about the connection establishment. If
not, I am not following.

I can only think of an evolutionary approach of what we are already doing:

-  when we are the initiating side, the kernel will only auto-connect
devices that have an associated socket blocking on connect(); the
kernel may even use the white list if it seems appropriate (no
resolvable addresses in the list of "to be connected" sockets for
example).

- accepting side, we only send connectable advertising events when
there's a listen() active, it would be nice to have a way to only
appear connectable to a set of devices, i.e. use the white list in
this case.


>
> Regards
>
> Marcel
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth=
" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


Cheers,
--
Vinicius

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-05-21 19:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-02 20:15 GATT Clients and Servers in the kernel (was Re:[PATCH BlueZ v3 06/16] attrib...) Vinicius Gomes
2013-05-03  4:43 ` Johan Hedberg
2013-05-03  6:17   ` Marcel Holtmann
2013-05-03 15:06     ` Andre Guedes
2013-05-03 15:17       ` Marcel Holtmann
2013-05-21 19:05         ` Andre Guedes
2013-05-21 19:25           ` Marcel Holtmann
2013-05-03 15:11     ` Vinicius Gomes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox