[vlc-devel] [vlc-commits] commit: sd: remove the pf_search and use a more generic pf_control function . ( Rémi Duraffort )

Pierre d'Herbemont pdherbemont at free.fr
Mon Oct 25 18:55:07 CEST 2010


On Mon, Oct 25, 2010 at 5:47 PM, Rémi Duraffort <ivoire at videolan.org> wrote:
>> > sd: remove the pf_search and use a more generic pf_control function.
>> >
>> > This way we can implement both a search function and a description function.
>>
>> Seems like ugly: then you need to add wrappers around the Control
>> function, adding yet more glue. Variadic argument means no static
>> checking...
> true
>
>> Why not simply using a separate function?
> I want something generic and the ability to add other functions if
> needed. The pf_control way allows me to add fuctions later on.

ok :) So why not add them later on at the end of the struct when needed?

Pierre.



More information about the vlc-devel mailing list