Data Structures |
struct | _mpd_ReturnElement |
struct | _mpd_Connection |
struct | mpd_Status |
struct | _mpd_Stats |
struct | _mpd_SearchStats |
struct | _mpd_Song |
struct | _mpd_Directory |
struct | _mpd_PlaylistFile |
struct | mpd_InfoEntity |
struct | _mpd_OutputEntity |
Defines |
#define | MPD_BUFFER_MAX_LENGTH 50000 |
#define | MPD_ERRORSTR_MAX_LENGTH 1000 |
#define | MPD_WELCOME_MESSAGE "OK MPD " |
#define | MPD_ERROR_TIMEOUT 10 /* timeout trying to talk to mpd */ |
#define | MPD_ERROR_SYSTEM 11 /* system error */ |
#define | MPD_ERROR_UNKHOST 12 /* unknown host */ |
#define | MPD_ERROR_CONNPORT 13 /* problems connecting to port on host */ |
#define | MPD_ERROR_NOTMPD 14 /* mpd not running on port at host */ |
#define | MPD_ERROR_NORESPONSE 15 /* no response on attempting to connect */ |
#define | MPD_ERROR_SENDING 16 /* error sending command */ |
#define | MPD_ERROR_CONNCLOSED 17 /* connection closed by mpd */ |
#define | MPD_ERROR_ACK 18 /* ACK returned! */ |
#define | MPD_ERROR_BUFFEROVERRUN 19 /* Buffer was overrun! */ |
#define | MPD_ACK_ERROR_UNK -1 |
#define | MPD_ERROR_AT_UNK -1 |
#define | MPD_ACK_ERROR_NOT_LIST 1 |
#define | MPD_ACK_ERROR_ARG 2 |
#define | MPD_ACK_ERROR_PASSWORD 3 |
#define | MPD_ACK_ERROR_PERMISSION 4 |
#define | MPD_ACK_ERROR_UNKNOWN_CMD 5 |
#define | MPD_ACK_ERROR_NO_EXIST 50 |
#define | MPD_ACK_ERROR_PLAYLIST_MAX 51 |
#define | MPD_ACK_ERROR_SYSTEM 52 |
#define | MPD_ACK_ERROR_PLAYLIST_LOAD 53 |
#define | MPD_ACK_ERROR_UPDATE_ALREADY 54 |
#define | MPD_ACK_ERROR_PLAYER_SYNC 55 |
#define | MPD_ACK_ERROR_EXIST 56 |
#define | MPD_STATUS_STATE_UNKNOWN 0 |
#define | MPD_STATUS_STATE_STOP 1 |
#define | MPD_STATUS_STATE_PLAY 2 |
#define | MPD_STATUS_STATE_PAUSE 3 |
#define | MPD_STATUS_NO_VOLUME -1 |
#define | MPD_SONG_NO_TIME -1 |
#define | MPD_SONG_NO_NUM -1 |
#define | MPD_SONG_NO_ID -1 |
#define | MPD_INFO_ENTITY_TYPE_DIRECTORY 0 |
#define | MPD_INFO_ENTITY_TYPE_SONG 1 |
#define | MPD_INFO_ENTITY_TYPE_PLAYLISTFILE 2 |
#define | MPD_TABLE_ARTIST MPD_TAG_ITEM_ARTIST |
#define | MPD_TABLE_ALBUM MPD_TAG_ITEM_ALBUM |
#define | MPD_TABLE_TITLE MPD_TAG_ITEM_TITLE |
#define | MPD_TABLE_FILENAME MPD_TAG_ITEM_FILENAME |
#define | MPD_PLAY_AT_BEGINNING -1 |
Typedefs |
typedef enum mpd_TagItems | mpd_TagItems |
typedef struct _mpd_ReturnElement | mpd_ReturnElement |
typedef struct _mpd_Connection | mpd_Connection |
typedef struct mpd_Status | mpd_Status |
typedef struct _mpd_Stats | mpd_Stats |
typedef struct _mpd_SearchStats | mpd_SearchStats |
typedef struct _mpd_Song | mpd_Song |
typedef struct _mpd_Directory | mpd_Directory |
typedef struct _mpd_PlaylistFile | mpd_PlaylistFile |
typedef struct mpd_InfoEntity | mpd_InfoEntity |
typedef struct _mpd_OutputEntity | mpd_OutputEntity |
Enumerations |
enum | mpd_TagItems {
MPD_TAG_ITEM_ARTIST,
MPD_TAG_ITEM_ALBUM,
MPD_TAG_ITEM_TITLE,
MPD_TAG_ITEM_TRACK,
MPD_TAG_ITEM_NAME,
MPD_TAG_ITEM_GENRE,
MPD_TAG_ITEM_DATE,
MPD_TAG_ITEM_COMPOSER,
MPD_TAG_ITEM_PERFORMER,
MPD_TAG_ITEM_COMMENT,
MPD_TAG_ITEM_DISC,
MPD_TAG_ITEM_FILENAME,
MPD_TAG_ITEM_ALBUM_ARTIST,
MPD_TAG_ITEM_ANY,
MPD_TAG_NUM_OF_ITEM_TYPES
} |
Functions |
mpd_Connection * | mpd_newConnection (const char *host, int port, float timeout) |
void | mpd_setConnectionTimeout (mpd_Connection *connection, float timeout) |
void | mpd_closeConnection (mpd_Connection *connection) |
void | mpd_clearError (mpd_Connection *connection) |
void | mpd_sendStatusCommand (mpd_Connection *connection) |
mpd_Status * | mpd_getStatus (mpd_Connection *connection) |
void | mpd_freeStatus (mpd_Status *status) |
void | mpd_sendStatsCommand (mpd_Connection *connection) |
mpd_Stats * | mpd_getStats (mpd_Connection *connection) |
void | mpd_freeStats (mpd_Stats *stats) |
mpd_SearchStats * | mpd_getSearchStats (mpd_Connection *connection) |
void | mpd_freeSearchStats (mpd_SearchStats *stats) |
mpd_Song * | mpd_newSong (void) |
void | mpd_freeSong (mpd_Song *song) |
mpd_Song * | mpd_songDup (const mpd_Song *song) |
mpd_Directory * | mpd_newDirectory (void) |
void | mpd_freeDirectory (mpd_Directory *directory) |
mpd_Directory * | mpd_directoryDup (mpd_Directory *directory) |
mpd_PlaylistFile * | mpd_newPlaylistFile (void) |
void | mpd_freePlaylistFile (mpd_PlaylistFile *playlist) |
mpd_PlaylistFile * | mpd_playlistFileDup (mpd_PlaylistFile *playlist) |
mpd_InfoEntity * | mpd_newInfoEntity (void) |
void | mpd_freeInfoEntity (mpd_InfoEntity *entity) |
mpd_InfoEntity * | mpd_getNextInfoEntity (mpd_Connection *connection) |
void | mpd_sendCurrentSongCommand (mpd_Connection *connection) |
void | mpd_sendPlaylistInfoCommand (mpd_Connection *connection, int songNum) |
void | mpd_sendPlaylistIdCommand (mpd_Connection *connection, int songId) |
void | mpd_sendPlChangesCommand (mpd_Connection *connection, long long playlist) |
void | mpd_sendPlChangesPosIdCommand (mpd_Connection *connection, long long playlist) |
void | mpd_sendListallCommand (mpd_Connection *connection, const char *dir) |
void | mpd_sendListallInfoCommand (mpd_Connection *connection, const char *dir) |
void | mpd_sendLsInfoCommand (mpd_Connection *connection, const char *dir) |
void | mpd_sendSearchCommand (mpd_Connection *connection, int table, const char *str) |
void | mpd_sendFindCommand (mpd_Connection *connection, int table, const char *str) |
char * | mpd_getNextArtist (mpd_Connection *connection) |
char * | mpd_getNextAlbum (mpd_Connection *connection) |
char * | mpd_getNextTag (mpd_Connection *connection, int type) |
void | mpd_sendListCommand (mpd_Connection *connection, int table, const char *arg1) |
void | mpd_sendAddCommand (mpd_Connection *connection, const char *file) |
int | mpd_sendAddIdCommand (mpd_Connection *connection, const char *file) |
void | mpd_sendDeleteCommand (mpd_Connection *connection, int songNum) |
void | mpd_sendDeleteIdCommand (mpd_Connection *connection, int songNum) |
void | mpd_sendSaveCommand (mpd_Connection *connection, const char *name) |
void | mpd_sendLoadCommand (mpd_Connection *connection, const char *name) |
void | mpd_sendRmCommand (mpd_Connection *connection, const char *name) |
void | mpd_sendRenameCommand (mpd_Connection *connection, const char *from, const char *to) |
void | mpd_sendShuffleCommand (mpd_Connection *connection) |
void | mpd_sendClearCommand (mpd_Connection *connection) |
void | mpd_sendPlayCommand (mpd_Connection *connection, int songNum) |
void | mpd_sendPlayIdCommand (mpd_Connection *connection, int songNum) |
void | mpd_sendStopCommand (mpd_Connection *connection) |
void | mpd_sendPauseCommand (mpd_Connection *connection, int pauseMode) |
void | mpd_sendNextCommand (mpd_Connection *connection) |
void | mpd_sendPrevCommand (mpd_Connection *connection) |
void | mpd_sendMoveCommand (mpd_Connection *connection, int from, int to) |
void | mpd_sendMoveIdCommand (mpd_Connection *connection, int from, int to) |
void | mpd_sendSwapCommand (mpd_Connection *connection, int song1, int song2) |
void | mpd_sendSwapIdCommand (mpd_Connection *connection, int song1, int song2) |
void | mpd_sendSeekCommand (mpd_Connection *connection, int song, int seek_time) |
void | mpd_sendSeekIdCommand (mpd_Connection *connection, int song, int seek_time) |
void | mpd_sendRepeatCommand (mpd_Connection *connection, int repeatMode) |
void | mpd_sendSingleCommand (mpd_Connection *connection, int singleMode) |
void | mpd_sendConsumeCommand (mpd_Connection *connection, int consumeMode) |
void | mpd_sendRandomCommand (mpd_Connection *connection, int randomMode) |
void | mpd_sendSetvolCommand (mpd_Connection *connection, int volumeChange) |
void | mpd_sendCrossfadeCommand (mpd_Connection *connection, int seconds) |
void | mpd_sendUpdateCommand (mpd_Connection *connection, const char *path) |
int | mpd_getUpdateId (mpd_Connection *connection) |
void | mpd_sendPasswordCommand (mpd_Connection *connection, const char *pass) |
void | mpd_finishCommand (mpd_Connection *connection) |
void | mpd_sendCommandListBegin (mpd_Connection *connection) |
void | mpd_sendCommandListOkBegin (mpd_Connection *connection) |
void | mpd_sendCommandListEnd (mpd_Connection *connection) |
int | mpd_nextListOkCommand (mpd_Connection *connection) |
void | mpd_sendOutputsCommand (mpd_Connection *connection) |
mpd_OutputEntity * | mpd_getNextOutput (mpd_Connection *connection) |
void | mpd_sendEnableOutputCommand (mpd_Connection *connection, int outputId) |
void | mpd_sendDisableOutputCommand (mpd_Connection *connection, int outputId) |
void | mpd_freeOutputElement (mpd_OutputEntity *output) |
void | mpd_sendCommandsCommand (mpd_Connection *connection) |
void | mpd_sendNotCommandsCommand (mpd_Connection *connection) |
char * | mpd_getNextCommand (mpd_Connection *connection) |
void | mpd_sendUrlHandlersCommand (mpd_Connection *connection) |
char * | mpd_getNextHandler (mpd_Connection *connection) |
void | mpd_sendTagTypesCommand (mpd_Connection *connection) |
char * | mpd_getNextTagType (mpd_Connection *connection) |
void | mpd_sendListPlaylistInfoCommand (mpd_Connection *connection, const char *path) |
void | mpd_sendListPlaylistCommand (mpd_Connection *connection, const char *path) |
void | mpd_startSearch (mpd_Connection *connection, int exact) |
void | mpd_addConstraintSearch (mpd_Connection *connection, int type, const char *name) |
void | mpd_commitSearch (mpd_Connection *connection) |
void | mpd_startFieldSearch (mpd_Connection *connection, int type) |
void | mpd_startPlaylistSearch (mpd_Connection *connection, int exact) |
void | mpd_startStatsSearch (mpd_Connection *connection) |
void | mpd_sendPlaylistClearCommand (mpd_Connection *connection, const char *path) |
void | mpd_sendPlaylistAddCommand (mpd_Connection *connection, const char *playlist, const char *path) |
void | mpd_sendPlaylistMoveCommand (mpd_Connection *connection, const char *playlist, int from, int to) |
void | mpd_sendPlaylistDeleteCommand (mpd_Connection *connection, const char *playlist, int pos) |
void | mpd_sendClearErrorCommand (mpd_Connection *connection) |
void | mpd_sendGetEventsCommand (mpd_Connection *connection) |
char * | mpd_getNextEvent (mpd_Connection *connection) |
void | mpd_sendListPlaylistsCommand (mpd_Connection *connection) |
char * | mpd_getNextSticker (mpd_Connection *connection) |
void | mpd_sendSetSongSticker (mpd_Connection *connection, const char *song, const char *sticker, const char *value) |
void | mpd_sendGetSongSticker (mpd_Connection *connection, const char *song, const char *sticker) |
Variables |
char * | mpdTagItemKeys [MPD_TAG_NUM_OF_ITEM_TYPES] |