Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
54e92316
Commit
54e92316
authored
Aug 17, 2007
by
Pierre d'Herbemont
Browse files
include/vlc_playlist.h: Export playlist_DeleteInputInParent.
parent
82f15a01
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/vlc_playlist.h
View file @
54e92316
...
...
@@ -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
*
)
);
...
...
src/playlist/item.c
View file @
54e92316
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment