Document playlist.c

This commit is contained in:
Twinaphex 2015-01-16 21:09:05 +01:00
parent 9cd821efb6
commit 88cc144ce0
2 changed files with 19 additions and 0 deletions

View File

@ -84,6 +84,15 @@ static void content_playlist_free_entry(
memset(entry, 0, sizeof(*entry));
}
/**
* content_playlist_push:
* @playlist : Playlist handle.
* @path : Path of new playlist entry.
* @core_path : Core path of new playlist entry.
* @core_name : Core name of new playlist entry.
*
* Push entry to top of playlist.
**/
void content_playlist_push(content_playlist_t *playlist,
const char *path, const char *core_path,
const char *core_name)
@ -170,6 +179,7 @@ static void content_playlist_write_file(content_playlist_t *playlist)
void content_playlist_free(content_playlist_t *playlist)
{
size_t i;
if (!playlist)
return;

View File

@ -77,6 +77,15 @@ void content_playlist_get_index(content_playlist_t *playlist,
const char **path, const char **core_path,
const char **core_name);
/**
* content_playlist_push:
* @playlist : Playlist handle.
* @path : Path of new playlist entry.
* @core_path : Core path of new playlist entry.
* @core_name : Core name of new playlist entry.
*
* Push entry to top of playlist.
**/
void content_playlist_push(content_playlist_t *playlist,
const char *path, const char *core_path,
const char *core_name);