Skip to content
Snippets Groups Projects

lib: play/add_intf/exit_handler cleanup

Merged Thomas Guillem requested to merge tguillem/vlc:lib-playlist-removal into master
All threads resolved!
1 file
+ 41
3
Compare changes
  • Side-by-side
  • Inline
+ 41
3
@@ -47,10 +47,48 @@ VLC_API int libvlc_InternalInit( libvlc_int_t *, int, const char *ppsz_argv[] );
VLC_API void libvlc_InternalCleanup( libvlc_int_t * );
VLC_API void libvlc_InternalDestroy( libvlc_int_t * );
VLC_API int libvlc_InternalAddIntf( libvlc_int_t *, const char * );
VLC_API void libvlc_InternalPlay( libvlc_int_t * );
/**
* Try to start a user interface for the libvlc instance.
*
* \param libvlcint the internal instance
* \param name interface name, or NULL for default
* \return 0 on success, -1 on error.
*/
VLC_API int libvlc_InternalAddIntf( libvlc_int_t *libvlcint, const char *name );
/**
* Start playing the main playlist
*
* The main playlist can only be populated via an interface created by the
* libvlc_InternalAddIntf() function. The control and media flow will only be
* controlled by the interface previously added.
*
* One of these 2 functions (libvlc_InternalAddIntf() or libvlc_InternalPlay())
* will trigger the creation of an internal playlist and player.
*
* \param libvlcint the internal instance
*/
VLC_API void libvlc_InternalPlay( libvlc_int_t *libvlcint );
VLC_API void libvlc_InternalWait( libvlc_int_t * );
VLC_API void libvlc_SetExitHandler( libvlc_int_t *, void (*) (void *), void * );
/**
* Registers a callback for the LibVLC exit event. This is mostly useful if
* the VLC playlist and/or at least one interface are started with
* libvlc_InternalPlay() or libvlc_InternalAddIntf () respectively.
* Typically, this function will wake up your application main loop (from
* another thread).
*
* \note This function should be called before the playlist or interface are
* started. Otherwise, there is a small race condition: the exit event could
* be raised before the handler is registered.
*
* \param libvlcint the internal instance
* \param cb callback to invoke when LibVLC wants to exit,
* or NULL to disable the exit handler (as by default)
* \param opaque data pointer for the callback
*/
VLC_API void libvlc_SetExitHandler( libvlc_int_t *libvlcint, void (*cb) (void *),
void *opaque );
/***************************************************************************
* Opaque structures for libvlc API
Loading