Commit 54e92316 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

include/vlc_playlist.h: Export playlist_DeleteInputInParent.

parent 82f15a01
......@@ -367,6 +367,7 @@ VLC_EXPORT( playlist_item_t *, __playlist_ItemNewFromInput, ( vlc_object_t *p_ob
/*************************** Item deletion **************************/
VLC_EXPORT( int, playlist_DeleteFromInput, ( playlist_t *, int, vlc_bool_t ) );
VLC_EXPORT( int, playlist_DeleteInputInParent, ( playlist_t *, int, playlist_item_t *, vlc_bool_t ) );
/*************************** Item fields accessors **************************/
VLC_EXPORT( int, playlist_ItemSetName, (playlist_item_t *, const char * ) );
......
......@@ -172,6 +172,18 @@ static int DeleteFromInput( playlist_t *p_playlist, int i_input_id,
return VLC_EGENERIC;
}
/** Remove an input item when it appears from a root playlist item */
int playlist_DeleteInputInParent( playlist_t *p_playlist, int i_input_id,
playlist_item_t *p_root, vlc_bool_t b_locked )
{
int i_ret;
if( !b_locked ) PL_LOCK;
i_ret = DeleteFromInput( p_playlist, i_input_id,
p_root, VLC_TRUE );
if( !b_locked ) PL_UNLOCK;
return i_ret;
}
/** Remove an input item from ONELEVEL and CATEGORY */
int playlist_DeleteFromInput( playlist_t *p_playlist, int i_input_id,
vlc_bool_t b_locked )
......
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