[vlc-devel] Re: Raising events
Antoine Cellerier
dionoea at videolan.org
Tue Jul 11 21:29:07 CEST 2006
On Tue, Jul 11, 2006, Dugal Harris wrote:
> A) It is impossible
> B) It is trivial
> C) Nobody cares?
i guess that it was something like C) :p
The best way to do some kind of an event is:
* create a VLC variable in p_libvlc
* add a callback on this variable
* change the variable's value every time you want the callback to be
called (sounds kind of obvious :) )
Examples of callback usage can be found about everywhere in the source
code. Look for these functions:
* var_Create (variable creation)
* var_Set / var_Get (some specialised versions of these functions
exist, see include/variables.h)
* var_AddCallback
I hope that this small email helps,
--
Antoine Cellerier
dionoea
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
More information about the vlc-devel
mailing list