Re: idea on how to break the static dependencies on demodulator modules

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

 



On Thursday 06 July 2006 07:51, Andrew de Quincey wrote:
> > > Only allowing FE customization when DVB_CORE_ATTACH is on seems
> > > backward. Customizing which frontends are built makes the most sense
> > > when you still have static dependencies or are not even using modules. 
> > > There is no reason you can't customize both with and without
> > > dvb_attach, so why disable it?
> >
> > For static building, would that not require spreading #ifdefs everywhere
> > throughout the code? I really don't want to do that.
>
> Just had a thought; we could add dummy functions to the frontend header
> files to sort this... e.g for tda1004x.h:

Sorry, just noticed I'd completely broken this :( I actually meant:

#ifdef CONFIG_DVB_TDA1004X
extern struct frontend *tda10045_attach(...);
extern struct frontend *tda10046_attach(...);
#else
static inline struct frontend *tda10045_attach(...) { return NULL; }
static inline struct frontend *tda10046_attach(...) { return NULL; }
#endif

_______________________________________________

linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

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

  Powered by Linux