[vlc-devel] [PATCH 2/3] core: add a new type of callback for list variables

Rémi Denis-Courmont remi at remlab.net
Thu Jul 24 19:46:15 CEST 2014


Le jeudi 24 juillet 2014, 19:40:35 Felix Abecassis a écrit :
> - Keep the enumeration for callback type and make the pointer
> pf_callback a void* in callback_entry_t.

An union may be cleaner and easier, but yes.

> We can now reuse the new handler functions AddCallback and DelCallback
> with just a dispatch to the correct callback table for adding/removing
> depending on the type.
> Same for TriggerCallback().
> 
> > --
> > Rémi Denis-Courmont
> > 
> > _______________________________________________
> > vlc-devel mailing list
> > To unsubscribe or modify your subscription options:
> > https://mailman.videolan.org/listinfo/vlc-devel

-- 
Rémi Denis-Courmont
http://www.remlab.net/




More information about the vlc-devel mailing list