VLC 4.0.0-dev
Loading...
Searching...
No Matches
export.c File Reference
Include dependency graph for export.c:

Data Structures

struct  vlc_playlist_view
 

Functions

size_t vlc_playlist_view_Count (struct vlc_playlist_view *view)
 Return the number of items in the view.
 
vlc_playlist_item_tvlc_playlist_view_Get (struct vlc_playlist_view *view, size_t index)
 Return the item at a given index.
 
int vlc_playlist_Export (struct vlc_playlist *playlist, const char *filename, const char *type)
 Export the playlist to a file.
 

Function Documentation

◆ vlc_playlist_view_Count()

size_t vlc_playlist_view_Count ( struct vlc_playlist_view view)

Return the number of items in the view.

The underlying playlist must be locked.

Parameters
viewthe playlist view

References vlc_playlist_view::playlist, and vlc_playlist_Count().

◆ vlc_playlist_view_Get()

vlc_playlist_item_t * vlc_playlist_view_Get ( struct vlc_playlist_view view,
size_t  index 
)

Return the item at a given index.

The index must be in range (less than vlc_playlist_view_Count()).

The underlying playlist must be locked.

Parameters
viewthe playlist view
indexthe index
Returns
the playlist item

References vlc_playlist_view::playlist, and vlc_playlist_Get().