]> git.sesse.net Git - vlc/blobdiff - src/misc/threads.c
Do not hide many (all?) thread function having an incorrect prototype
[vlc] / src / misc / threads.c
index dd36dfef907544f71542e1c6f27d8e15141751a2..aa5c3d0ffcd884e6c8924d4c2f1405551b5b4405 100644 (file)
@@ -442,7 +442,7 @@ void vlc_threadvar_delete (vlc_threadvar_t *p_tls)
 
 struct vlc_thread_boot
 {
-    void * (*entry) (void *);
+    void * (*entry) (vlc_object_t *);
     vlc_object_t *object;
 };
 
@@ -457,7 +457,7 @@ struct vlc_thread_boot
 static THREAD_RTYPE thread_entry (void *data)
 {
     vlc_object_t *obj = ((struct vlc_thread_boot *)data)->object;
-    void *(*func) (void *) = ((struct vlc_thread_boot *)data)->entry;
+    void *(*func) (vlc_object_t *) = ((struct vlc_thread_boot *)data)->entry;
 
     free (data);
 #ifndef NDEBUG
@@ -486,7 +486,7 @@ static THREAD_RTYPE thread_entry (void *data)
  * userland real-time priority threads.
  *****************************************************************************/
 int __vlc_thread_create( vlc_object_t *p_this, const char * psz_file, int i_line,
-                         const char *psz_name, void * ( *func ) ( void * ),
+                         const char *psz_name, void * ( *func ) ( vlc_object_t * ),
                          int i_priority, bool b_wait )
 {
     int i_ret;