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

Re: [bluetooth-dev] Why to declare twice things ?



Hi Alain,

you are right, I wondered about the same issue.

I have got an other issue concerning the ioctls: Is it possible to define some ioctl values as
"reserved" ? I added some ioctls for my special use and I had to change them in the past when a new ioctl
was added.

Matthias

Alain Paschoud wrote:

> Hello,
> 
> There is something that is a bit special in openBT. This is that some things are defined twice. Once for user land, once for kernel land.
> 
> Example : every ioctl value is defined in bt_if.h and bt_common.h. You will find exactly the same line to define HCISET_EVENT_FILTER in both files.
> 
> I think that these things should be defined in a .h file situated in /usr/src/linux/include/linux/bluetooth/. These definitions should be accessed by the kernel part and the userland part.
> 
> I there any reason to keep two definitions ? If yes, can someone explain me why ?
> 
> Regards,
> 
> 


-- 
-------------------------------------------------------------------------

                             _/_/_/_/   Matthias Fuchs
                            _/_/_/_/   Dipl.-Ing.
                           _/_/_/_/   matthias.fuchs@xxxxxxx.com

       _/_/_/   _/_/_/_/_/_/_/      esd electronic system design gmbh
     _/   _/  _/             _/    Vahrenwalder Str. 207
    _/   _/    _/_/_/   _/   _/   D-30165 Hannover
    _/             _/  _/   _/   Phone: +49-511-37298-0
     _/_/_/_/_/_/_/   _/_/_/    Fax:   +49-511-37298-68

-------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com