[vlc-devel] [PATCH 07/10] libvlc: add defines to know how many items the marquee/meta enums contain

Steve Lhomme robux4 at ycbcr.xyz
Mon May 27 15:38:19 CEST 2019


---
 include/vlc/libvlc_media.h        | 4 +++-
 include/vlc/libvlc_media_player.h | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/include/vlc/libvlc_media.h b/include/vlc/libvlc_media.h
index cd335a6e08..202efba5c0 100644
--- a/include/vlc/libvlc_media.h
+++ b/include/vlc/libvlc_media.h
@@ -69,8 +69,10 @@ typedef enum libvlc_meta_t {
     libvlc_meta_Actors,
     libvlc_meta_AlbumArtist,
     libvlc_meta_DiscNumber,
-    libvlc_meta_DiscTotal
+    libvlc_meta_DiscTotal,
     /* Add new meta types HERE */
+
+#define libvlc_meta_Last libvlc_meta_DiscTotal
 } libvlc_meta_t;
 
 /**
diff --git a/include/vlc/libvlc_media_player.h b/include/vlc/libvlc_media_player.h
index 68debb083e..4e942771a1 100644
--- a/include/vlc/libvlc_media_player.h
+++ b/include/vlc/libvlc_media_player.h
@@ -115,7 +115,9 @@ typedef enum libvlc_video_marquee_option_t {
     libvlc_marquee_Size,
     libvlc_marquee_Timeout,
     libvlc_marquee_X,
-    libvlc_marquee_Y
+    libvlc_marquee_Y,
+
+#define libvlc_video_marquee_Last libvlc_marquee_Y
 } libvlc_video_marquee_option_t;
 
 /**
-- 
2.17.1



More information about the vlc-devel mailing list