]> git.sesse.net Git - vlc/commitdiff
jvlc: add missing events.
authorRémi Duraffort <ivoire@videolan.org>
Tue, 15 Sep 2009 11:44:26 +0000 (13:44 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Tue, 15 Sep 2009 16:41:26 +0000 (18:41 +0200)
bindings/java/core/src/main/java/org/videolan/jvlc/internal/LibVlc.java

index 4e71cc2f3cef4d6f132af1adc229d3b4965daab7..7c3b3edeeef4348bb8c929cf2c0f2d43b6d5e168 100644 (file)
@@ -68,7 +68,7 @@ public interface LibVlc extends Library
 
         public int type;
 
-        public Pointer obj;
+        public Pointer p_obj;
 
         public event_type_specific event_type_specific;
 
@@ -76,7 +76,7 @@ public interface LibVlc extends Library
 
     public class media_meta_changed extends Structure
     {
-
+        // Enum !
         public Pointer meta_type;
     }
 
@@ -126,6 +126,21 @@ public interface LibVlc extends Library
         public long new_time;
     }
 
+    public class media_player_title_changed extends Structure
+    {
+        public int new_title;
+    }
+
+    public class media_player_seekable_changed extends Structure
+    {
+        public NativeLong new_seekable;
+    }
+
+    public class media_player_pausable_changed extends Structure
+    {
+        public NativeLong new_pausable;
+    }
+
     /* media list */
     public class media_list_item_added extends Structure
     {
@@ -192,17 +207,26 @@ public interface LibVlc extends Library
         public int index;
     }
 
-    /* media discoverer */
-    public class media_media_discoverer_started extends Structure
+    public class media_list_player_next_item_set extends Structure
     {
+        public LibVlcMedia item;
+    }
 
-        public Pointer unused;
+    public class media_player_snapshot_taken extends Structure
+    {
+        public String psz_filename;
     }
 
-    public class media_media_discoverer_ended extends Structure
+    public class media_player_length_changed extends Structure
     {
+        // @todo: check the type
+        public long new_length;
+    }
 
-        public Pointer unused;
+    public class vlm_media_event extends Structure
+    {
+        public String psz_media_name;
+        public String psz_instance_name;
     }
 
     public class event_type_specific extends Union
@@ -224,6 +248,12 @@ public interface LibVlc extends Library
 
         public media_player_time_changed media_player_time_changed;
 
+        public media_player_title_changed media_player_title_changed;
+
+        public media_player_seekable_changed media_player_seekable_changed;
+
+        public media_player_pausable_changed media_player_pausable_changed;
+
         public media_list_item_added media_list_item_added;
 
         public media_list_will_add_item media_list_will_add_item;
@@ -239,6 +269,14 @@ public interface LibVlc extends Library
         public media_list_view_item_deleted media_list_view_item_deleted;
 
         public media_list_view_will_delete_item media_list_view_will_delete_item;
+
+        public media_list_player_next_item_set media_list_player_next_item_set;
+
+        public media_player_snapshot_taken media_player_snapshot_taken;
+
+        public media_player_length_changed media_player_length_changed;
+
+        public vlm_media_event vlm_media_event;
     }
 
     public class LibVlcInstance extends PointerType