[linux-dvb] [patch] Add support for different tuning algorithms

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

 



On Tue, Nov 15, 2005 Andrew de Quincey wrote:
> 
> I assume it would be something like this?
> 
> struct dvb_configuration {
> 	unsigned char tune_mode:1 /* 0=>normal tuning, 1=>frequency scanning */
> };
> 
> #define FE_SET_CONFIGURATION  _IOR('o', 81, struct dvb_configuration)
> 
> And we'd extend dvb_configuration (or whatever) as we need to...

Nah, once we have an ioctl we want to stay binary compatible.
So just an "unsigned int flags", and I would use #defines
for the flag values, not a struct with bit fields, because
I believe this is the preferred coding style for Linux.

Johannes


[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux