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

Give a clue about extending enums

parent b023e956
...@@ -45,6 +45,8 @@ extern "C" { ...@@ -45,6 +45,8 @@ extern "C" {
*/ */
typedef enum libvlc_event_type_t { typedef enum libvlc_event_type_t {
/* Append new event types at the end.
* Do not remove, insert or re-order any entry. */
libvlc_MediaMetaChanged, libvlc_MediaMetaChanged,
libvlc_MediaSubItemAdded, libvlc_MediaSubItemAdded,
libvlc_MediaDurationChanged, libvlc_MediaDurationChanged,
...@@ -85,8 +87,8 @@ typedef enum libvlc_event_type_t { ...@@ -85,8 +87,8 @@ typedef enum libvlc_event_type_t {
libvlc_MediaDiscovererEnded, libvlc_MediaDiscovererEnded,
libvlc_MediaPlayerTitleChanged, libvlc_MediaPlayerTitleChanged,
libvlc_MediaPlayerSnapshotTaken libvlc_MediaPlayerSnapshotTaken,
/* New event types HERE */
} libvlc_event_type_t; } libvlc_event_type_t;
/** /**
......
...@@ -103,7 +103,8 @@ typedef enum libvlc_meta_t { ...@@ -103,7 +103,8 @@ typedef enum libvlc_meta_t {
libvlc_meta_Publisher, libvlc_meta_Publisher,
libvlc_meta_EncodedBy, libvlc_meta_EncodedBy,
libvlc_meta_ArtworkURL, libvlc_meta_ArtworkURL,
libvlc_meta_TrackID libvlc_meta_TrackID,
/* Add new meta types HERE */
} libvlc_meta_t; } libvlc_meta_t;
/**@} */ /**@} */
......
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