[PATCH 2/6] bluetooth: Add register service for bluetooth

Gustavo F. Padovan gustavo at padovan.org
Mon Jul 12 06:03:46 PDT 2010


Hi Zhenhua,

> >> 
> >> -int bluetooth_register_uuid(const char *uuid, struct
> >>  bluetooth_profile *profile) +static int bluetooth_init() {
> > 
> > So I prefer a real refcount structure here, and call this
> > bluetooth_ref(). What do you think?
> 
> Good idea. Bluetooth_ref/unref makes more sense if we have both HFP and DUN existings on the system.
> 
> Actually I have an unrelated question here. Why we don't have something like DUN_GW_UUID string so that we can easily reuse your current code? For now, we need to register service and use a different hash table to record that.

I'm fine with that, but you have to use the DUN Data Terminal UUID
instead.

-- 
Gustavo F. Padovan
http://padovan.org


More information about the ofono mailing list