Commit cc71771a authored by Rémi Duraffort's avatar Rémi Duraffort

jvlc: add missing events.

parent 5e2c4b1a
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment