Commit 2d7c19fd authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Make libvlc event types less ABI-brittle w.r.t. the next versions

parent fd3ef905
...@@ -45,13 +45,14 @@ extern "C" { ...@@ -45,13 +45,14 @@ extern "C" {
enum libvlc_event_e { enum libvlc_event_e {
/* Append new event types at the end. Do not remove, insert or /* Append new event types at the end. Do not remove, insert or
* re-order any entry. The cpp will prepend libvlc_ to the symbols. */ * re-order any entry. The cpp will prepend libvlc_ to the symbols. */
libvlc_MediaMetaChanged, libvlc_MediaMetaChanged=0,
libvlc_MediaSubItemAdded, libvlc_MediaSubItemAdded,
libvlc_MediaDurationChanged, libvlc_MediaDurationChanged,
libvlc_MediaPreparsedChanged, libvlc_MediaPreparsedChanged,
libvlc_MediaFreed, libvlc_MediaFreed,
libvlc_MediaStateChanged, libvlc_MediaStateChanged,
libvlc_MediaPlayerMediaChanged=0x100,
libvlc_MediaPlayerNothingSpecial, libvlc_MediaPlayerNothingSpecial,
libvlc_MediaPlayerOpening, libvlc_MediaPlayerOpening,
libvlc_MediaPlayerBuffering, libvlc_MediaPlayerBuffering,
...@@ -66,29 +67,28 @@ enum libvlc_event_e { ...@@ -66,29 +67,28 @@ enum libvlc_event_e {
libvlc_MediaPlayerPositionChanged, libvlc_MediaPlayerPositionChanged,
libvlc_MediaPlayerSeekableChanged, libvlc_MediaPlayerSeekableChanged,
libvlc_MediaPlayerPausableChanged, libvlc_MediaPlayerPausableChanged,
libvlc_MediaPlayerTitleChanged,
libvlc_MediaPlayerSnapshotTaken,
libvlc_MediaPlayerLengthChanged,
libvlc_MediaListItemAdded, libvlc_MediaListItemAdded=0x200,
libvlc_MediaListWillAddItem, libvlc_MediaListWillAddItem,
libvlc_MediaListItemDeleted, libvlc_MediaListItemDeleted,
libvlc_MediaListWillDeleteItem, libvlc_MediaListWillDeleteItem,
libvlc_MediaListViewItemAdded, libvlc_MediaListViewItemAdded=0x300,
libvlc_MediaListViewWillAddItem, libvlc_MediaListViewWillAddItem,
libvlc_MediaListViewItemDeleted, libvlc_MediaListViewItemDeleted,
libvlc_MediaListViewWillDeleteItem, libvlc_MediaListViewWillDeleteItem,
libvlc_MediaListPlayerPlayed, libvlc_MediaListPlayerPlayed=0x400,
libvlc_MediaListPlayerNextItemSet, libvlc_MediaListPlayerNextItemSet,
libvlc_MediaListPlayerStopped, libvlc_MediaListPlayerStopped,
libvlc_MediaDiscovererStarted, libvlc_MediaDiscovererStarted=0x500,
libvlc_MediaDiscovererEnded, libvlc_MediaDiscovererEnded,
libvlc_MediaPlayerTitleChanged, libvlc_VlmMediaAdded=0x600,
libvlc_MediaPlayerSnapshotTaken,
libvlc_MediaPlayerLengthChanged,
libvlc_VlmMediaAdded,
libvlc_VlmMediaRemoved, libvlc_VlmMediaRemoved,
libvlc_VlmMediaChanged, libvlc_VlmMediaChanged,
libvlc_VlmMediaInstanceStarted, libvlc_VlmMediaInstanceStarted,
...@@ -99,10 +99,6 @@ enum libvlc_event_e { ...@@ -99,10 +99,6 @@ enum libvlc_event_e {
libvlc_VlmMediaInstanceStatusPause, libvlc_VlmMediaInstanceStatusPause,
libvlc_VlmMediaInstanceStatusEnd, libvlc_VlmMediaInstanceStatusEnd,
libvlc_VlmMediaInstanceStatusError, libvlc_VlmMediaInstanceStatusError,
libvlc_MediaPlayerMediaChanged,
/* New event types HERE */
libvlc_num_event_types
}; };
/** /**
......
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