mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-29 15:32:01 +00:00
(Playlist.c) More documentation for playlist.c
This commit is contained in:
parent
62bdc940c5
commit
9cd821efb6
23
playlist.c
23
playlist.c
@ -39,6 +39,16 @@ struct content_playlist
|
||||
char *conf_path;
|
||||
};
|
||||
|
||||
/**
|
||||
* content_playlist_get_index:
|
||||
* @playlist : Playlist handle.
|
||||
* @idx : Index of playlist entry.
|
||||
* @path : Path of playlist entry.
|
||||
* @core_path : Core path of playlist entry.
|
||||
* @core_name : Core name of playlist entry.
|
||||
*
|
||||
* Gets values of playlist index:
|
||||
**/
|
||||
void content_playlist_get_index(content_playlist_t *playlist,
|
||||
size_t idx,
|
||||
const char **path, const char **core_path,
|
||||
@ -191,11 +201,18 @@ void content_playlist_clear(content_playlist_t *playlist)
|
||||
playlist->size = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* content_playlist_size:
|
||||
* @playlist : Playlist handle.
|
||||
*
|
||||
* Gets size of playlist.
|
||||
* Returns: size of playlist.
|
||||
**/
|
||||
size_t content_playlist_size(content_playlist_t *playlist)
|
||||
{
|
||||
if (playlist)
|
||||
return playlist->size;
|
||||
return 0;
|
||||
if (!playlist)
|
||||
return 0;
|
||||
return playlist->size;
|
||||
}
|
||||
|
||||
static bool content_playlist_read_file(
|
||||
|
19
playlist.h
19
playlist.h
@ -28,6 +28,8 @@ typedef struct content_playlist content_playlist_t;
|
||||
|
||||
/**
|
||||
* content_playlist_init:
|
||||
* @path : Path to playlist contents file.
|
||||
* @size : Maximum capacity of playlist size.
|
||||
*
|
||||
* Creates and initializes a playlist.
|
||||
*
|
||||
@ -51,8 +53,25 @@ void content_playlist_free(content_playlist_t *playlist);
|
||||
**/
|
||||
void content_playlist_clear(content_playlist_t *playlist);
|
||||
|
||||
/**
|
||||
* content_playlist_size:
|
||||
* @playlist : Playlist handle.
|
||||
*
|
||||
* Gets size of playlist.
|
||||
* Returns: size of playlist.
|
||||
**/
|
||||
size_t content_playlist_size(content_playlist_t *playlist);
|
||||
|
||||
/**
|
||||
* content_playlist_get_index:
|
||||
* @playlist : Playlist handle.
|
||||
* @idx : Index of playlist entry.
|
||||
* @path : Path of playlist entry.
|
||||
* @core_path : Core path of playlist entry.
|
||||
* @core_name : Core name of playlist entry.
|
||||
*
|
||||
* Gets values of playlist index:
|
||||
**/
|
||||
void content_playlist_get_index(content_playlist_t *playlist,
|
||||
size_t index,
|
||||
const char **path, const char **core_path,
|
||||
|
Loading…
x
Reference in New Issue
Block a user