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

Do not hide many (all?) thread function having an incorrect prototype

parent bfeca36b
...@@ -169,7 +169,7 @@ VLC_EXPORT( int, __vlc_cond_init, ( vlc_cond_t * ) ); ...@@ -169,7 +169,7 @@ VLC_EXPORT( int, __vlc_cond_init, ( vlc_cond_t * ) );
VLC_EXPORT( void, __vlc_cond_destroy, ( const char *, int, vlc_cond_t * ) ); VLC_EXPORT( void, __vlc_cond_destroy, ( const char *, int, vlc_cond_t * ) );
VLC_EXPORT( int, vlc_threadvar_create, (vlc_threadvar_t * , void (*) (void *) ) ); VLC_EXPORT( int, vlc_threadvar_create, (vlc_threadvar_t * , void (*) (void *) ) );
VLC_EXPORT( void, vlc_threadvar_delete, (vlc_threadvar_t *) ); VLC_EXPORT( void, vlc_threadvar_delete, (vlc_threadvar_t *) );
VLC_EXPORT( int, __vlc_thread_create, ( vlc_object_t *, const char *, int, const char *, void * ( * ) ( void * ), int, bool ) ); VLC_EXPORT( int, __vlc_thread_create, ( vlc_object_t *, const char *, int, const char *, void * ( * ) ( vlc_object_t * ), int, bool ) );
VLC_EXPORT( int, __vlc_thread_set_priority, ( vlc_object_t *, const char *, int, int ) ); VLC_EXPORT( int, __vlc_thread_set_priority, ( vlc_object_t *, const char *, int, int ) );
VLC_EXPORT( void, __vlc_thread_join, ( vlc_object_t *, const char *, int ) ); VLC_EXPORT( void, __vlc_thread_join, ( vlc_object_t *, const char *, int ) );
......
...@@ -442,7 +442,7 @@ void vlc_threadvar_delete (vlc_threadvar_t *p_tls) ...@@ -442,7 +442,7 @@ void vlc_threadvar_delete (vlc_threadvar_t *p_tls)
struct vlc_thread_boot struct vlc_thread_boot
{ {
void * (*entry) (void *); void * (*entry) (vlc_object_t *);
vlc_object_t *object; vlc_object_t *object;
}; };
...@@ -457,7 +457,7 @@ struct vlc_thread_boot ...@@ -457,7 +457,7 @@ struct vlc_thread_boot
static THREAD_RTYPE thread_entry (void *data) static THREAD_RTYPE thread_entry (void *data)
{ {
vlc_object_t *obj = ((struct vlc_thread_boot *)data)->object; 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); free (data);
#ifndef NDEBUG #ifndef NDEBUG
...@@ -486,7 +486,7 @@ static THREAD_RTYPE thread_entry (void *data) ...@@ -486,7 +486,7 @@ static THREAD_RTYPE thread_entry (void *data)
* userland real-time priority threads. * userland real-time priority threads.
*****************************************************************************/ *****************************************************************************/
int __vlc_thread_create( vlc_object_t *p_this, const char * psz_file, int i_line, 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_priority, bool b_wait )
{ {
int i_ret; int i_ret;
......
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