#include <vlc/vlc.h>
+/***************************************************************************
+ * Internal creation and destruction functions
+ ***************************************************************************/
+libvlc_int_t *libvlc_InternalCreate();
+int libvlc_InternalInit( libvlc_int_t *, int, char *ppsz_argv[] );
+int libvlc_InternalCleanup( libvlc_int_t * );
+int libvlc_InternalDestroy( libvlc_int_t *, vlc_bool_t );
+
+int libvlc_InternalAddIntf( libvlc_int_t *, char const *, vlc_bool_t,
+ vlc_bool_t, int, char ** );
+
+/***************************************************************************
+ * Opaque structures for libvlc API
+ ***************************************************************************/
+
struct libvlc_instance_t
{
libvlc_int_t *p_libvlc_int;
- playlist_t *p_playlist;
vlm_t *p_vlm;
- int i_vlc_id;
};
struct libvlc_input_t
struct libvlc_instance_t *p_instance; ///< Parent instance
};
-#define RAISENULL( psz ) { libvlc_exception_raise( p_e, psz ); return NULL; }
-#define RAISEVOID( psz ) { libvlc_exception_raise( p_e, psz ); return; }
-#define RAISEZERO( psz ) { libvlc_exception_raise( p_e, psz ); return 0; }
+#define RAISENULL( psz,a... ) { libvlc_exception_raise( p_e, psz,##a ); \
+ return NULL; }
+#define RAISEVOID( psz,a... ) { libvlc_exception_raise( p_e, psz,##a ); \
+ return; }
+#define RAISEZERO( psz,a... ) { libvlc_exception_raise( p_e, psz,##a ); \
+ return 0; }
# ifdef __cplusplus
}