#include <vlc_common.h>
+/* Note well: this header is included from LibVLC core.
+ * Therefore, static inline functions MUST NOT call LibVLC functions here
+ * (this can cause linkage failure on some platforms). */
+
/***************************************************************************
* Internal creation and destruction functions
***************************************************************************/
VLC_EXPORT (int, libvlc_InternalAddIntf, ( libvlc_int_t *, const char * ) );
VLC_EXPORT (void, libvlc_InternalWait, ( libvlc_int_t * ) );
+VLC_EXPORT (void, libvlc_SetExitHandler, ( libvlc_int_t *, void (*) (void *), void * ) );
typedef void (*libvlc_vlm_release_func_t)( libvlc_instance_t * ) ;
libvlc_callback_t pf_callback,
void *p_user_data );
-/* Exception shorcuts */
-
-#define RAISENULL( ... ) { libvlc_printerr(__VA_ARGS__); \
- libvlc_exception_raise( p_e ); \
- return NULL; }
-#define RAISEZERO( ... ) { libvlc_printerr(__VA_ARGS__); \
- libvlc_exception_raise( p_e ); \
- return 0; }
-
static inline libvlc_time_t from_mtime(mtime_t time)
{
return (time + 500ULL)/ 1000ULL;