]> git.sesse.net Git - vlc/blobdiff - include/vlc_messages.h
We know where VLM is, no need to find it.
[vlc] / include / vlc_messages.h
index aa835213e02773fccd25870f2085a491d15f7163..e8bb637e8379c22a39432c1c32da52ccedaf1272 100644 (file)
@@ -79,39 +79,6 @@ typedef struct
 
 #define MSG_QUEUE_NORMAL 0
 #define MSG_QUEUE_HTTPD_ACCESS 1
-#define NB_QUEUES 2
-
-struct msg_queue_t
-{
-    int                     i_id;
-
-    /** Message queue lock */
-    vlc_mutex_t             lock;
-    bool              b_overflow;
-
-    /* Message queue */
-    msg_item_t              msg[VLC_MSG_QSIZE];           /**< message queue */
-    int i_start;
-    int i_stop;
-
-    /* Subscribers */
-    int i_sub;
-    msg_subscription_t **pp_sub;
-
-    /* Logfile for WinCE */
-#ifdef UNDER_CE
-    FILE *logfile;
-#endif
-};
-
-/**
- * Store all data requiered by messages interfaces.
- */
-struct msg_bank_t
-{
-    vlc_mutex_t             lock;
-    msg_queue_t             queues[NB_QUEUES];
-};
 
 /**
  * Used by interface plugins which subscribe to the message bank.
@@ -229,6 +196,8 @@ enum
     STATS_TIMER_ML_DUMP,
     STATS_TIMER_INTERACTION,
     STATS_TIMER_PREPARSE,
+    STATS_TIMER_INPUT_LAUNCHING,
+    STATS_TIMER_MODULE_NEED,
 
     STATS_TIMER_SKINS_PLAYTREE_IMAGE,
 };
@@ -362,10 +331,10 @@ VLC_EXPORT( void, __stats_ComputeGlobalStats, (vlc_object_t*,global_stats_t*));
 #define stats_TimerDump(a,b) __stats_TimerDump( VLC_OBJECT(a), b )
 #define stats_TimersDumpAll(a) __stats_TimersDumpAll( VLC_OBJECT(a) )
 #else
-#define stats_TimerStart(a,b,c) {}
-#define stats_TimerStop(a,b) {}
-#define stats_TimerDump(a,b) {}
-#define stats_TimersDumpAll(a) {}
+#define stats_TimerStart(a,b,c) (void)0
+#define stats_TimerStop(a,b) (void)0
+#define stats_TimerDump(a,b) (void)0
+#define stats_TimersDumpAll(a) (void)0
 #endif
 VLC_EXPORT( void,__stats_TimerStart, (vlc_object_t*, const char *, unsigned int ) );
 VLC_EXPORT( void,__stats_TimerStop, (vlc_object_t*, unsigned int) );
@@ -375,6 +344,6 @@ VLC_EXPORT( void,__stats_TimersDumpAll, (vlc_object_t*) );
 VLC_EXPORT( void, __stats_TimersCleanAll, (vlc_object_t * ) );
 
 #define stats_TimerClean(a,b) __stats_TimerClean( VLC_OBJECT(a), b )
-VLC_EXPORT( void, __stats_TimerClean, (vlc_object_t *, int ) );
+VLC_EXPORT( void, __stats_TimerClean, (vlc_object_t *, unsigned int ) );
 
 #endif