]> git.sesse.net Git - vlc/blobdiff - include/vlc/libvlc_events.h
vlc_object_get_name, vlc_object_set_name: accessors
[vlc] / include / vlc / libvlc_events.h
index 51c637e1fab7be2568e794379ff61c91ceb71075..649fffa2d627623cfb5f9cac234a5364b318f8e4 100644 (file)
@@ -99,6 +99,12 @@ enum libvlc_event_type_t {
     libvlc_VlmMediaChanged,
     libvlc_VlmMediaInstanceStarted,
     libvlc_VlmMediaInstanceStopped,
+    libvlc_VlmMediaInstanceStatusInit,
+    libvlc_VlmMediaInstanceStatusOpening,
+    libvlc_VlmMediaInstanceStatusPlaying,
+    libvlc_VlmMediaInstanceStatusPause,
+    libvlc_VlmMediaInstanceStatusEnd,
+    libvlc_VlmMediaInstanceStatusError,
     /* New event types HERE */
 };
 
@@ -111,14 +117,14 @@ enum libvlc_event_type_t {
 
 struct libvlc_event_t
 {
-    unsigned type;
+    libvlc_event_type_t type;
     void * p_obj;
     union event_type_specific
     {
         /* media descriptor */
         struct
         {
-            unsigned meta_type;
+            libvlc_meta_t meta_type;
         } media_meta_changed;
         struct
         {
@@ -138,7 +144,7 @@ struct libvlc_event_t
         } media_freed;
         struct
         {
-            unsigned new_state;
+            libvlc_state_t new_state;
         } media_state_changed;
 
         /* media instance */
@@ -207,6 +213,12 @@ struct libvlc_event_t
             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
         {
@@ -223,8 +235,8 @@ struct libvlc_event_t
         struct
         {
             const char * psz_media_name;
+            const char * psz_instance_name;
         } vlm_media_event;
-
     } u;
 };