Functions

exit.c File Reference

Include dependency graph for exit.c:

Functions

void vlc_ExitInit (vlc_exit_t *exit)
void vlc_ExitDestroy (vlc_exit_t *exit)
void libvlc_SetExitHandler (libvlc_int_t *p_libvlc, void(*handler)(void *), void *opaque)
 Registers a callback for the LibVLC exit event.
void libvlc_Quit (libvlc_int_t *p_libvlc)
 Posts an exit signal to LibVLC instance.
static void exit_wakeup (void *data)
void libvlc_InternalWait (libvlc_int_t *p_libvlc)
 Waits until the LibVLC instance gets an exit signal.

Function Documentation

static void exit_wakeup ( void *  data  )  [static]

References vlc_cond_signal().

void libvlc_InternalWait ( libvlc_int_t p_libvlc  ) 

Waits until the LibVLC instance gets an exit signal.

This normally occurs when the user "exits" an interface plugin. But it can also be triggered by the special vlc://quit item, the update checker, or the playlist engine.

References libvlc_priv_t::exit, vlc_exit::handler, vlc_exit::killed, libvlc_priv(), vlc_exit::lock, vlc_exit::opaque, vlc_cond_destroy(), vlc_cond_init(), vlc_cond_wait(), vlc_mutex_lock(), and vlc_mutex_unlock().

void libvlc_SetExitHandler ( libvlc_int_t p_libvlc,
void(*)(void *)  handler,
void *  opaque 
)

Registers a callback for the LibVLC exit event.

Note:
This function conflicts with libvlc_InternalWait(). Use either or none of them, but not both.

References libvlc_priv_t::exit, vlc_exit::handler, vlc_exit::killed, libvlc_priv(), vlc_exit::lock, vlc_exit::opaque, vlc_mutex_lock(), and vlc_mutex_unlock().

void vlc_ExitDestroy ( vlc_exit_t exit  ) 
void vlc_ExitInit ( vlc_exit_t exit  ) 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines