struct intf_thread_t *p_next; /** LibVLC interfaces book keeping */
vlc_thread_t thread; /** LibVLC thread */
/* Thread properties and locks */
-#if defined( __APPLE__ )
- bool b_should_run_on_first_thread;
-#endif
/* Specific interfaces */
intf_sys_t * p_sys; /** system interface */
struct interaction_dialog_t *p_dialog;
};
-/*****************************************************************************
- * Prototypes
- *****************************************************************************/
VLC_API int intf_Create( vlc_object_t *, const char * );
#define intf_Create(a,b) intf_Create(VLC_OBJECT(a),b)
VLC_API void libvlc_Quit( libvlc_int_t * );
+/**
+ * \defgroup vlc_subscription Log messages subscription
+ * These functions deal with log messages.
+ * @{
+ */
+
+/**
+ * Message logging callback signature.
+ * Accepts one private data pointer, the message, and an overrun counter.
+ */
+typedef void (*msg_callback_t) (void *, int, const msg_item_t *,
+ const char *, va_list);
+
+/**
+ * Used by interface plugins which subscribe to the message bank.
+ */
+typedef struct msg_subscription
+{
+ struct msg_subscription *prev, *next;
+ msg_callback_t func;
+ void *opaque;
+} msg_subscription_t;
+
+VLC_API void vlc_Subscribe(msg_subscription_t *, msg_callback_t, void *);
+VLC_API void vlc_Unsubscribe(msg_subscription_t *);
+
/*@}*/
-/*****************************************************************************
- * Macros
- *****************************************************************************/
-#if defined( WIN32 ) && !defined( UNDER_CE )
+#if defined( WIN32 )
# define CONSOLE_INTRO_MSG \
if( !getenv( "PWD" ) ) /* detect Cygwin shell or Wine */ \
{ \
"mp2", "mp4", "mpeg", "mpeg1", \
"mpeg2", "mpeg4", "mpg", "mts", "mtv", "mxf", "mxg", "nuv", \
"ogg", "ogm", "ogv", "ogx", "ps", \
- "rec", "rm", "rmvb", "ts", "vob", "wm", "wmv"
+ "rec", "rm", "rmvb", "ts", "vob", "wm", "wmv", "xesc"
#define EXTENSIONS_AUDIO \
"*.3ga;" \
"*.oga;" \
"*.ogg;" \
"*.oma;" \
+ "*.opus;" \
"*.qcp;" \
"*.ra;" \
"*.rmi;" \
"*.m2t;*.m2ts;*.m4v;*.mkv;*.mov;*.mp2;*.mp2v;*.mp4;*.mp4v;*.mpa;*.mpe;*.mpeg;*.mpeg1;" \
"*.mpeg2;*.mpeg4;*.mpg;*.mpv2;*.mts;*.mtv;*.mxf;*.mxg;*.nsv;*.nuv;" \
"*.ogg;*.ogm;*.ogv;*.ogx;*.ps;" \
- "*.rec;*.rm;*.rmvb;*.tod;*.ts;*.tts;*.vob;*.vro;*.webm;*.wm;*.wmv"
+ "*.rec;*.rm;*.rmvb;*.tod;*.ts;*.tts;*.vob;*.vro;*.webm;*.wm;*.wmv;*.xesc"
#define EXTENSIONS_PLAYLIST "*.asx;*.b4s;*.cue;*.ifo;*.m3u;*.m3u8;*.pls;*.ram;*.rar;*.sdp;*.vlc;*.xspf;*.wvx;*.zip;*.conf"
"*.ssa;*.aqt;" \
"*.jss;*.psb;" \
"*.rt;*.smi;*.txt;" \
- "*.smil;*.stl;*.usf" \
+ "*.smil;*.stl;*.usf;" \
"*.dks;*.pjs;*.mpl2"
/** \defgroup vlc_interaction Interaction