[vlc-commits] [Git][videolan/vlc][master] vlc_events: add event type count define

François Cartegnie (@fcartegnie) gitlab at videolan.org
Wed Aug 31 19:28:42 UTC 2022



François Cartegnie pushed to branch master at VideoLAN / VLC


Commits:
c5600df3 by Francois Cartegnie at 2022-08-31T18:40:51+00:00
vlc_events: add event type count define

- - - - -


1 changed file:

- include/vlc_events.h


Changes:

=====================================
include/vlc_events.h
=====================================
@@ -105,6 +105,8 @@ typedef enum vlc_event_type_t {
     vlc_InputItemAttachmentsFound,
 } vlc_event_type_t;
 
+#define VLC_EVENT_TYPE_COUNT (vlc_InputItemAttachmentsFound + 1)
+
 typedef struct vlc_event_listeners_group_t
 {
     DECL_ARRAY(struct vlc_event_listener_t *) listeners;
@@ -115,7 +117,7 @@ typedef struct vlc_event_manager_t
 {
     void * p_obj;
     vlc_mutex_t lock;
-    vlc_event_listeners_group_t events[vlc_InputItemAttachmentsFound + 1];
+    vlc_event_listeners_group_t events[VLC_EVENT_TYPE_COUNT];
 } vlc_event_manager_t;
 
 /* Event definition */



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c5600df31185653f49067c0cab5241fc63ebfd9a

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c5600df31185653f49067c0cab5241fc63ebfd9a
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list