From: Pierre d'Herbemont Date: Sat, 22 Dec 2007 16:19:04 +0000 (+0000) Subject: include/vlc_objects.h: Use the usual macro trick, to publish a function that take... X-Git-Tag: 0.9.0-test0~3923 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=c76ca6667fe719f8a7757f9b9d61fcd3cab64657;p=vlc include/vlc_objects.h: Use the usual macro trick, to publish a function that take as argument a vlc_object_t *, here for vlc_object_waitpipe(). --- diff --git a/include/vlc_objects.h b/include/vlc_objects.h index 5589f956f1..5048fdb44c 100644 --- a/include/vlc_objects.h +++ b/include/vlc_objects.h @@ -178,7 +178,9 @@ VLC_EXPORT( vlc_bool_t, __vlc_object_alive, ( vlc_object_t * ) ); #define vlc_object_alive(a) \ __vlc_object_alive( VLC_OBJECT(a) ) -int vlc_object_waitpipe( vlc_object_t *obj ); +VLC_EXPORT( int, __vlc_object_waitpipe, ( vlc_object_t *obj )); +#define vlc_object_waitpipe(a) \ + __vlc_object_waitpipe( VLC_OBJECT(a) ) /* NOTE: this function is a *temporary* convenience. * See the vlc_object_alive() documentation for a better alternative. diff --git a/src/misc/objects.c b/src/misc/objects.c index 734cb3502a..b67ea08c92 100644 --- a/src/misc/objects.c +++ b/src/misc/objects.c @@ -482,7 +482,7 @@ void __vlc_object_unlock( vlc_object_t *obj ) * @param obj object that would be signaled (object lock MUST hold) * @return a readable pipe descriptor, or -1 on error. */ -int vlc_object_waitpipe( vlc_object_t *obj ) +int __vlc_object_waitpipe( vlc_object_t *obj ) { int *pipes = obj->p_internals->pipes; vlc_assert_locked( &obj->object_lock );