]> git.sesse.net Git - vlc/blobdiff - include/vlc_interface.h
Ignore gai_strerror check on win32.
[vlc] / include / vlc_interface.h
index 4a8937c814b0b42eefe1e58c12b656bf2d1ac687..9642341f29fd261b49d510d743fab718f1e88199 100644 (file)
@@ -114,11 +114,15 @@ struct intf_dialog_args_t
  * Prototypes
  *****************************************************************************/
 #define intf_Create(a,b,c,d) __intf_Create(VLC_OBJECT(a),b,c,d)
-VLC_EXPORT( intf_thread_t *, __intf_Create,     ( vlc_object_t *, const char *, int, char ** ) );
+VLC_EXPORT( intf_thread_t *, __intf_Create,     ( vlc_object_t *, const char *, int, const char *const * ) );
 VLC_EXPORT( int,               intf_RunThread,  ( intf_thread_t * ) );
 VLC_EXPORT( void,              intf_StopThread, ( intf_thread_t * ) );
 VLC_EXPORT( void,              intf_Destroy,    ( intf_thread_t * ) );
 
+/* If the interface is in the main thread, it should listen both to
+ * p_intf->b_die and p_libvlc->b_die */
+#define intf_ShouldDie( p_intf ) (p_intf->b_die || (p_intf->b_block && p_intf->p_libvlc->b_die ) )
+
 /*@}*/
 
 /*****************************************************************************
@@ -186,4 +190,7 @@ VLC_EXPORT( void,              intf_Destroy,    ( intf_thread_t * ) );
 
 #define EXTENSIONS_PLAYLIST "*.asx;*.b4s;*.m3u;*.pls;*.vlc;*.xspf"
 
+#define EXTENSIONS_MEDIA EXTENSIONS_VIDEO ";" EXTENSIONS_AUDIO ";" \
+                          EXTENSIONS_PLAYLIST
+
 #define EXTENSIONS_SUBTITLE "*.idx;*.srt;*.sub;*.utf"