Re: [PATCH BlueZ v2 1/3] manager: add a btd_manager_get_default_adapter_address_str() call

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

 



On Wed, 18 Apr 2012 12:02:04 +0100
Bastien Nocera <hadess@xxxxxxxxxx> wrote:

> On Wed, 2012-04-18 at 11:38 +0200, Antonio Ospite wrote:
> > Add a new btd_* call to get the default adapter address as a string,
> > meant to be used by _external_ plugins, this is to avoid to make public
> > these symbols:
> > 
> >   manager_get_default_adapter
> >   adapter_get_address
> >   bt_malloc
> 
> It's already public.
> 
> >   ba2str
> 
> Already public.
>

I think I am messing up the terminology again here, the interface is
public but the symbol is not exported as _global_ in src/bluetooth.ver
so external plugins can't use it.

> > ---
> > Alternatively a version without the _str prefix can be used which
> > returns a bdaddr_t, but I have to make ba2str a global symbol so I can
> > make the conversion to string in the plugin itself.
> > 
> > Let me know how do you like that.
> 
> ba2str() is in libbluetooth.
> $ grep ba2str /usr/include/bluetooth/bluetooth.h 
> int ba2str(const bdaddr_t *ba, char *str);
> 
> So it's already public.
>

What I meant is: if you like a version which returns a bdaddr_t rather
than a char* I have to add ba2str to src/bluetooth.ver

Thanks,
   Antonio

-- 
Antonio Ospite
http://ao2.it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?

Attachment: pgpx4ioqTz1SU.pgp
Description: PGP signature


[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