Commit ab121fdf authored by Pierre's avatar Pierre

objects: Export vlc_object_dump() to debug.

parent 719f5761
......@@ -113,6 +113,9 @@ VLC_EXPORT( void, __vlc_object_release, ( vlc_object_t * ) );
VLC_EXPORT( vlc_list_t *, __vlc_list_find, ( vlc_object_t *, int, int ) );
VLC_EXPORT( void, vlc_list_release, ( vlc_list_t * ) );
/* __vlc_object_dump */
VLC_EXPORT( void, __vlc_object_dump, ( vlc_object_t *p_this ) );
/*}@*/
#define vlc_object_create(a,b) \
......@@ -142,6 +145,9 @@ VLC_EXPORT( void, vlc_list_release, ( vlc_list_t * ) );
#define vlc_list_find(a,b,c) \
__vlc_list_find( VLC_OBJECT(a),b,c)
#define vlc_object_dump(a) \
__vlc_object_dump( VLC_OBJECT(a))
/* Objects and threading */
VLC_EXPORT( void, __vlc_object_lock, ( vlc_object_t * ) );
......
......@@ -412,6 +412,7 @@ __vlc_object_alive
__vlc_object_attach
__vlc_object_create
__vlc_object_detach
__vlc_object_dump
__vlc_object_find
__vlc_object_find_name
vlc_object_get
......
......@@ -1228,6 +1228,16 @@ void vlc_list_release( vlc_list_t *p_list )
free( p_list );
}
/*****************************************************************************
* dump an object. (Debug function)
*****************************************************************************/
void __vlc_object_dump( vlc_object_t *p_this )
{
vlc_mutex_lock( &structure_lock );
PrintObject( p_this, "vlc_object_dump: " );
vlc_mutex_unlock( &structure_lock );
}
/* Following functions are local */
/*****************************************************************************
......
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