]> git.sesse.net Git - vlc/blobdiff - include/vlc/libvlc_events.h
Mostly revert "libvlc: add mouse events as libvlc_MediaPlayerEvents"
[vlc] / include / vlc / libvlc_events.h
index 021ad9a5df14f415d05d4a6093501f45563509ce..afb4064b99c3d7dee2c072f400d262f7639a17fa 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * libvlc_events.h:  libvlc_events external API structure
  *****************************************************************************
- * Copyright (C) 1998-2008 the VideoLAN team
+ * Copyright (C) 1998-2010 the VideoLAN team
  * $Id $
  *
  * Authors: Filippo Carone <littlejohn@videolan.org>
@@ -101,7 +101,9 @@ extern "C" {
     DEF( VlmMediaInstanceStatusPause ), \
     DEF( VlmMediaInstanceStatusEnd ), \
     DEF( VlmMediaInstanceStatusError ), \
-    /* New event types HERE */
+    \
+    DEF( MediaPlayerMediaChanged ), \
+/* New event types HERE */
 
 #ifdef __cplusplus
 enum libvlc_event_type_e {
@@ -173,11 +175,11 @@ struct libvlc_event_t
         } media_player_title_changed;
         struct
         {
-            uint64_t new_seekable; /* FIXME: that's a boolean! */
+            int new_seekable;
         } media_player_seekable_changed;
         struct
         {
-            uint64_t new_pausable; /* FIXME: that's a BOOL!!! */
+            int new_pausable;
         } media_player_pausable_changed;
 
         /* media list */
@@ -202,34 +204,12 @@ struct libvlc_event_t
             int index;
         } media_list_will_delete_item;
 
-        /* media list view */
-        struct
-        {
-            libvlc_media_t * item;
-            int index;
-        } media_list_view_item_added;
-        struct
-        {
-            libvlc_media_t * item;
-            int index;
-        } media_list_view_will_add_item;
-        struct
-        {
-            libvlc_media_t * item;
-            int index;
-        } media_list_view_item_deleted;
-        struct
-        {
-            libvlc_media_t * item;
-            int index;
-        } media_list_view_will_delete_item;
-
         /* media list player */
         struct
         {
             libvlc_media_t * item;
         } media_list_player_next_item_set;
-        
+
         /* snapshot taken */
         struct
         {
@@ -248,6 +228,12 @@ struct libvlc_event_t
             const char * psz_media_name;
             const char * psz_instance_name;
         } vlm_media_event;
+
+        /* Extra MediaPlayer */
+        struct
+        {
+            libvlc_media_t * new_media;
+        } media_player_media_changed;
     } u;
 };