#include "queue.h"
#include <stdbool.h>
#include <stdio.h>
Go to the source code of this file.
#define PLAYLIST_COMMENT '#' |
Definition at line 28 of file playlist.h.
enum playlist_result |
Definition at line 30 of file playlist.h.
enum playlist_result addSongToPlaylist | ( | struct playlist * | playlist, | |
struct song * | song, | |||
unsigned * | added_id | |||
) |
enum playlist_result addToPlaylist | ( | struct playlist * | playlist, | |
const char * | file, | |||
unsigned * | added_id | |||
) |
void clearPlaylist | ( | struct playlist * | playlist | ) |
enum playlist_result deleteFromPlaylist | ( | struct playlist * | playlist, | |
unsigned | song | |||
) |
enum playlist_result deleteFromPlaylistById | ( | struct playlist * | playlist, | |
unsigned | song | |||
) |
void finishPlaylist | ( | void | ) |
bool getPlaylistConsumeStatus | ( | const struct playlist * | playlist | ) |
int getPlaylistCurrentSong | ( | const struct playlist * | playlist | ) |
int getPlaylistLength | ( | const struct playlist * | playlist | ) |
int getPlaylistNextSong | ( | const struct playlist * | playlist | ) |
bool getPlaylistRandomStatus | ( | const struct playlist * | playlist | ) |
bool getPlaylistRepeatStatus | ( | const struct playlist * | playlist | ) |
bool getPlaylistSingleStatus | ( | const struct playlist * | playlist | ) |
unsigned getPlaylistSongId | ( | const struct playlist * | playlist, | |
unsigned | song | |||
) |
unsigned long getPlaylistVersion | ( | const struct playlist * | playlist | ) |
void initPlaylist | ( | void | ) |
int is_valid_playlist_name | ( | const char * | utf8path | ) |
enum playlist_result moveSongInPlaylistById | ( | struct playlist * | playlist, | |
unsigned | id, | |||
int | to | |||
) |
enum playlist_result moveSongRangeInPlaylist | ( | struct playlist * | playlist, | |
unsigned | start, | |||
unsigned | end, | |||
int | to | |||
) |
void nextSongInPlaylist | ( | struct playlist * | playlist | ) |
enum playlist_result playlist_append_file | ( | struct playlist * | playlist, | |
const char * | path, | |||
int | uid, | |||
unsigned * | added_id | |||
) |
Appends a local file (outside the music database) to the playlist, but only if the file's owner is equal to the specified uid.
void playlist_finish | ( | struct playlist * | playlist | ) |
Returns the "queue" object of the global playlist instance.
Definition at line 114 of file playlist.h.
void playlist_init | ( | struct playlist * | playlist | ) |
void playlist_tag_changed | ( | struct playlist * | playlist | ) |
void playlistVersionChange | ( | struct playlist * | playlist | ) |
enum playlist_result playPlaylist | ( | struct playlist * | playlist, | |
int | song | |||
) |
enum playlist_result playPlaylistById | ( | struct playlist * | playlist, | |
int | song | |||
) |
void previousSongInPlaylist | ( | struct playlist * | playlist | ) |
void readPlaylistState | ( | FILE * | ) |
void savePlaylistState | ( | FILE * | ) |
enum playlist_result seekSongInPlaylist | ( | struct playlist * | playlist, | |
unsigned | song, | |||
float | seek_time | |||
) |
enum playlist_result seekSongInPlaylistById | ( | struct playlist * | playlist, | |
unsigned | id, | |||
float | seek_time | |||
) |
void setPlaylistConsumeStatus | ( | struct playlist * | playlist, | |
bool | status | |||
) |
void setPlaylistRandomStatus | ( | struct playlist * | playlist, | |
bool | status | |||
) |
void setPlaylistRepeatStatus | ( | struct playlist * | playlist, | |
bool | status | |||
) |
void setPlaylistSingleStatus | ( | struct playlist * | playlist, | |
bool | status | |||
) |
void shufflePlaylist | ( | struct playlist * | playlist, | |
unsigned | start, | |||
unsigned | end | |||
) |
void stopPlaylist | ( | struct playlist * | playlist | ) |
enum playlist_result swapSongsInPlaylist | ( | struct playlist * | playlist, | |
unsigned | song1, | |||
unsigned | song2 | |||
) |
enum playlist_result swapSongsInPlaylistById | ( | struct playlist * | playlist, | |
unsigned | id1, | |||
unsigned | id2 | |||
) |
void syncPlayerAndPlaylist | ( | struct playlist * | playlist | ) |
struct playlist g_playlist |
the global playlist object