Mailing List archive

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

[linux-dvb] Re: libdvb and dvbscan



Hi,

Juha Yrjölä wrote:
> 
>>BTW, I made a patch to use your library with "preNEWSTRUCT" DVB
>>driver, as I can't update to a recent version for some reason.
>>Is it possible to add preNEWSTRUCT capabilities to your code?
> 
> 
> Yes, but the detection should be runtime, instead of compile-time. If
> /dev/dvb/adapter%d/demux0 is not found, we should check if /dev/ost/demux%d
> is found. The kernel headers from the pre-NEWSTRUCT driver will have
> to be copied to the dvbsak tree, and I think some of the functions
> actually talking to the device will have to be moved into separate files, to
> avoid header clashes.

loadable driver modules are another option, maybe you might want to look 
into the DirectFB sources, there they probe+load all drivers using 
dlopen() at runtime. For very compact systems it's also possible to link 
all drivers, the library and the application into one static executable.


> Holger, is there any runtime way of checking the version of the driver?

not really. API version 2 and 3 are binary compatible, the old driver 
might be detected by trying to open a device file in /dev/ost instead of 
/dev/dvb.

In future API versions we should include a version and info ioctl.

Holger



-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index