#include <sys/time.h>
#include <stdarg.h>
Go to the source code of this file.
#define MPD_ACK_ERROR_ARG 2 |
Definition at line 61 of file libmpdclient.h.
#define MPD_ACK_ERROR_EXIST 56 |
Definition at line 72 of file libmpdclient.h.
#define MPD_ACK_ERROR_NO_EXIST 50 |
Definition at line 66 of file libmpdclient.h.
#define MPD_ACK_ERROR_NOT_LIST 1 |
Definition at line 60 of file libmpdclient.h.
#define MPD_ACK_ERROR_PASSWORD 3 |
Definition at line 62 of file libmpdclient.h.
#define MPD_ACK_ERROR_PERMISSION 4 |
Definition at line 63 of file libmpdclient.h.
#define MPD_ACK_ERROR_PLAYER_SYNC 55 |
Definition at line 71 of file libmpdclient.h.
#define MPD_ACK_ERROR_PLAYLIST_LOAD 53 |
Definition at line 69 of file libmpdclient.h.
#define MPD_ACK_ERROR_PLAYLIST_MAX 51 |
Definition at line 67 of file libmpdclient.h.
#define MPD_ACK_ERROR_SYSTEM 52 |
Definition at line 68 of file libmpdclient.h.
#define MPD_ACK_ERROR_UNK -1 |
Definition at line 57 of file libmpdclient.h.
#define MPD_ACK_ERROR_UNKNOWN_CMD 5 |
Definition at line 64 of file libmpdclient.h.
#define MPD_ACK_ERROR_UPDATE_ALREADY 54 |
Definition at line 70 of file libmpdclient.h.
#define MPD_BUFFER_MAX_LENGTH 50000 |
Definition at line 42 of file libmpdclient.h.
#define MPD_ERROR_ACK 18 |
Definition at line 54 of file libmpdclient.h.
#define MPD_ERROR_AT_UNK -1 |
Definition at line 58 of file libmpdclient.h.
#define MPD_ERROR_BUFFEROVERRUN 19 |
Definition at line 55 of file libmpdclient.h.
#define MPD_ERROR_CONNCLOSED 17 |
Definition at line 53 of file libmpdclient.h.
#define MPD_ERROR_CONNPORT 13 |
Definition at line 49 of file libmpdclient.h.
#define MPD_ERROR_NORESPONSE 15 |
Definition at line 51 of file libmpdclient.h.
#define MPD_ERROR_NOTMPD 14 |
Definition at line 50 of file libmpdclient.h.
#define MPD_ERROR_SENDING 16 |
Definition at line 52 of file libmpdclient.h.
#define MPD_ERROR_SYSTEM 11 |
Definition at line 47 of file libmpdclient.h.
#define MPD_ERROR_TIMEOUT 10 |
Definition at line 46 of file libmpdclient.h.
#define MPD_ERROR_UNKHOST 12 |
Definition at line 48 of file libmpdclient.h.
#define MPD_ERRORSTR_MAX_LENGTH 1000 |
Definition at line 43 of file libmpdclient.h.
#define MPD_INFO_ENTITY_TYPE_DIRECTORY 0 |
Definition at line 376 of file libmpdclient.h.
#define MPD_INFO_ENTITY_TYPE_PLAYLISTFILE 2 |
Definition at line 378 of file libmpdclient.h.
#define MPD_INFO_ENTITY_TYPE_SONG 1 |
Definition at line 377 of file libmpdclient.h.
#define MPD_PLAY_AT_BEGINNING -1 |
Definition at line 488 of file libmpdclient.h.
#define MPD_SONG_NO_ID -1 |
Definition at line 252 of file libmpdclient.h.
#define MPD_SONG_NO_NUM -1 |
Definition at line 251 of file libmpdclient.h.
#define MPD_SONG_NO_TIME -1 |
Definition at line 250 of file libmpdclient.h.
#define MPD_STATUS_NO_VOLUME -1 |
Definition at line 161 of file libmpdclient.h.
#define MPD_STATUS_STATE_PAUSE 3 |
Definition at line 158 of file libmpdclient.h.
#define MPD_STATUS_STATE_PLAY 2 |
Definition at line 157 of file libmpdclient.h.
#define MPD_STATUS_STATE_STOP 1 |
Definition at line 156 of file libmpdclient.h.
#define MPD_STATUS_STATE_UNKNOWN 0 |
Definition at line 155 of file libmpdclient.h.
#define MPD_TABLE_ALBUM MPD_TAG_ITEM_ALBUM |
Definition at line 437 of file libmpdclient.h.
#define MPD_TABLE_ARTIST MPD_TAG_ITEM_ARTIST |
Definition at line 436 of file libmpdclient.h.
#define MPD_TABLE_FILENAME MPD_TAG_ITEM_FILENAME |
Definition at line 439 of file libmpdclient.h.
#define MPD_TABLE_TITLE MPD_TAG_ITEM_TITLE |
Definition at line 438 of file libmpdclient.h.
#define MPD_WELCOME_MESSAGE "OK MPD " |
Definition at line 44 of file libmpdclient.h.
typedef struct _mpd_Connection mpd_Connection |
typedef struct _mpd_Directory mpd_Directory |
typedef struct _mpd_OutputEntity mpd_OutputEntity |
typedef struct _mpd_PlaylistFile mpd_PlaylistFile |
typedef struct _mpd_ReturnElement mpd_ReturnElement |
typedef struct _mpd_SearchStats mpd_SearchStats |
typedef struct _mpd_Stats mpd_Stats |
enum mpd_TagItems |
Definition at line 78 of file libmpdclient.h.
void mpd_addConstraintSearch | ( | mpd_Connection * | connection, | |
int | type, | |||
const char * | name | |||
) |
connection | a mpd_Connection | |
type | ||
name |
void mpd_clearError | ( | mpd_Connection * | connection | ) |
void mpd_closeConnection | ( | mpd_Connection * | connection | ) |
void mpd_commitSearch | ( | mpd_Connection * | connection | ) |
connection | a mpd_Connection |
mpd_Directory* mpd_directoryDup | ( | mpd_Directory * | directory | ) |
void mpd_finishCommand | ( | mpd_Connection * | connection | ) |
void mpd_freeDirectory | ( | mpd_Directory * | directory | ) |
void mpd_freeInfoEntity | ( | mpd_InfoEntity * | entity | ) |
void mpd_freeOutputElement | ( | mpd_OutputEntity * | output | ) |
void mpd_freePlaylistFile | ( | mpd_PlaylistFile * | playlist | ) |
void mpd_freeSearchStats | ( | mpd_SearchStats * | stats | ) |
void mpd_freeSong | ( | mpd_Song * | song | ) |
void mpd_freeStats | ( | mpd_Stats * | stats | ) |
void mpd_freeStatus | ( | mpd_Status * | status | ) |
char* mpd_getNextAlbum | ( | mpd_Connection * | connection | ) |
char* mpd_getNextArtist | ( | mpd_Connection * | connection | ) |
char* mpd_getNextCommand | ( | mpd_Connection * | connection | ) |
connection | a mpd_Connection |
char* mpd_getNextEvent | ( | mpd_Connection * | connection | ) |
char* mpd_getNextHandler | ( | mpd_Connection * | connection | ) |
mpd_InfoEntity* mpd_getNextInfoEntity | ( | mpd_Connection * | connection | ) |
mpd_OutputEntity* mpd_getNextOutput | ( | mpd_Connection * | connection | ) |
char* mpd_getNextSticker | ( | mpd_Connection * | connection | ) |
char* mpd_getNextTag | ( | mpd_Connection * | connection, | |
int | type | |||
) |
char* mpd_getNextTagType | ( | mpd_Connection * | connection | ) |
mpd_SearchStats* mpd_getSearchStats | ( | mpd_Connection * | connection | ) |
mpd_Stats* mpd_getStats | ( | mpd_Connection * | connection | ) |
mpd_Status* mpd_getStatus | ( | mpd_Connection * | connection | ) |
int mpd_getUpdateId | ( | mpd_Connection * | connection | ) |
mpd_Connection* mpd_newConnection | ( | const char * | host, | |
int | port, | |||
float | timeout | |||
) |
mpd_Directory* mpd_newDirectory | ( | void | ) |
mpd_InfoEntity* mpd_newInfoEntity | ( | void | ) |
mpd_PlaylistFile* mpd_newPlaylistFile | ( | void | ) |
mpd_Song* mpd_newSong | ( | void | ) |
int mpd_nextListOkCommand | ( | mpd_Connection * | connection | ) |
mpd_PlaylistFile* mpd_playlistFileDup | ( | mpd_PlaylistFile * | playlist | ) |
void mpd_sendAddCommand | ( | mpd_Connection * | connection, | |
const char * | file | |||
) |
int mpd_sendAddIdCommand | ( | mpd_Connection * | connection, | |
const char * | file | |||
) |
void mpd_sendClearCommand | ( | mpd_Connection * | connection | ) |
void mpd_sendClearErrorCommand | ( | mpd_Connection * | connection | ) |
void mpd_sendCommandListBegin | ( | mpd_Connection * | connection | ) |
void mpd_sendCommandListEnd | ( | mpd_Connection * | connection | ) |
void mpd_sendCommandListOkBegin | ( | mpd_Connection * | connection | ) |
void mpd_sendCommandsCommand | ( | mpd_Connection * | connection | ) |
connection | a mpd_Connection |
void mpd_sendCrossfadeCommand | ( | mpd_Connection * | connection, | |
int | seconds | |||
) |
void mpd_sendCurrentSongCommand | ( | mpd_Connection * | connection | ) |
void mpd_sendDeleteCommand | ( | mpd_Connection * | connection, | |
int | songNum | |||
) |
void mpd_sendDeleteIdCommand | ( | mpd_Connection * | connection, | |
int | songNum | |||
) |
void mpd_sendDisableOutputCommand | ( | mpd_Connection * | connection, | |
int | outputId | |||
) |
void mpd_sendEnableOutputCommand | ( | mpd_Connection * | connection, | |
int | outputId | |||
) |
void mpd_sendFindCommand | ( | mpd_Connection * | connection, | |
int | table, | |||
const char * | str | |||
) |
void mpd_sendGetEventsCommand | ( | mpd_Connection * | connection | ) |
void mpd_sendGetSongSticker | ( | mpd_Connection * | connection, | |
const char * | song, | |||
const char * | sticker | |||
) |
void mpd_sendListallCommand | ( | mpd_Connection * | connection, | |
const char * | dir | |||
) |
void mpd_sendListallInfoCommand | ( | mpd_Connection * | connection, | |
const char * | dir | |||
) |
void mpd_sendListCommand | ( | mpd_Connection * | connection, | |
int | table, | |||
const char * | arg1 | |||
) |
void mpd_sendListPlaylistCommand | ( | mpd_Connection * | connection, | |
const char * | path | |||
) |
connection | a MpdConnection | |
path | the path to the playlist. |
void mpd_sendListPlaylistInfoCommand | ( | mpd_Connection * | connection, | |
const char * | path | |||
) |
connection | a MpdConnection | |
path | the path to the playlist. |
void mpd_sendListPlaylistsCommand | ( | mpd_Connection * | connection | ) |
void mpd_sendLoadCommand | ( | mpd_Connection * | connection, | |
const char * | name | |||
) |
void mpd_sendLsInfoCommand | ( | mpd_Connection * | connection, | |
const char * | dir | |||
) |
void mpd_sendMoveCommand | ( | mpd_Connection * | connection, | |
int | from, | |||
int | to | |||
) |
void mpd_sendMoveIdCommand | ( | mpd_Connection * | connection, | |
int | from, | |||
int | to | |||
) |
void mpd_sendNextCommand | ( | mpd_Connection * | connection | ) |
void mpd_sendNotCommandsCommand | ( | mpd_Connection * | connection | ) |
connection | a mpd_Connection |
void mpd_sendOutputsCommand | ( | mpd_Connection * | connection | ) |
void mpd_sendPasswordCommand | ( | mpd_Connection * | connection, | |
const char * | pass | |||
) |
void mpd_sendPauseCommand | ( | mpd_Connection * | connection, | |
int | pauseMode | |||
) |
void mpd_sendPlayCommand | ( | mpd_Connection * | connection, | |
int | songNum | |||
) |
void mpd_sendPlayIdCommand | ( | mpd_Connection * | connection, | |
int | songNum | |||
) |
void mpd_sendPlaylistAddCommand | ( | mpd_Connection * | connection, | |
const char * | playlist, | |||
const char * | path | |||
) |
void mpd_sendPlaylistClearCommand | ( | mpd_Connection * | connection, | |
const char * | path | |||
) |
void mpd_sendPlaylistDeleteCommand | ( | mpd_Connection * | connection, | |
const char * | playlist, | |||
int | pos | |||
) |
void mpd_sendPlaylistIdCommand | ( | mpd_Connection * | connection, | |
int | songId | |||
) |
void mpd_sendPlaylistInfoCommand | ( | mpd_Connection * | connection, | |
int | songNum | |||
) |
void mpd_sendPlaylistMoveCommand | ( | mpd_Connection * | connection, | |
const char * | playlist, | |||
int | from, | |||
int | to | |||
) |
void mpd_sendPlChangesCommand | ( | mpd_Connection * | connection, | |
long long | playlist | |||
) |
void mpd_sendPlChangesPosIdCommand | ( | mpd_Connection * | connection, | |
long long | playlist | |||
) |
connection,: | A valid and connected mpd_Connection. | |
playlist,: | The playlist version you want the diff with. A more bandwidth efficient version of the mpd_sendPlChangesCommand. It only returns the pos+id of the changes song. |
void mpd_sendPrevCommand | ( | mpd_Connection * | connection | ) |
void mpd_sendRandomCommand | ( | mpd_Connection * | connection, | |
int | randomMode | |||
) |
void mpd_sendRenameCommand | ( | mpd_Connection * | connection, | |
const char * | from, | |||
const char * | to | |||
) |
void mpd_sendRepeatCommand | ( | mpd_Connection * | connection, | |
int | repeatMode | |||
) |
void mpd_sendRmCommand | ( | mpd_Connection * | connection, | |
const char * | name | |||
) |
void mpd_sendSaveCommand | ( | mpd_Connection * | connection, | |
const char * | name | |||
) |
void mpd_sendSearchCommand | ( | mpd_Connection * | connection, | |
int | table, | |||
const char * | str | |||
) |
void mpd_sendSeekCommand | ( | mpd_Connection * | connection, | |
int | song, | |||
int | time | |||
) |
void mpd_sendSeekIdCommand | ( | mpd_Connection * | connection, | |
int | song, | |||
int | time | |||
) |
void mpd_sendSetSongSticker | ( | mpd_Connection * | connection, | |
const char * | song, | |||
const char * | sticker, | |||
const char * | value | |||
) |
void mpd_sendSetvolCommand | ( | mpd_Connection * | connection, | |
int | volumeChange | |||
) |
void mpd_sendShuffleCommand | ( | mpd_Connection * | connection | ) |
void mpd_sendStatsCommand | ( | mpd_Connection * | connection | ) |
void mpd_sendStatusCommand | ( | mpd_Connection * | connection | ) |
void mpd_sendStopCommand | ( | mpd_Connection * | connection | ) |
void mpd_sendSwapCommand | ( | mpd_Connection * | connection, | |
int | song1, | |||
int | song2 | |||
) |
void mpd_sendSwapIdCommand | ( | mpd_Connection * | connection, | |
int | song1, | |||
int | song2 | |||
) |
void mpd_sendTagTypesCommand | ( | mpd_Connection * | connection | ) |
void mpd_sendUpdateCommand | ( | mpd_Connection * | connection, | |
const char * | path | |||
) |
void mpd_sendUrlHandlersCommand | ( | mpd_Connection * | connection | ) |
void mpd_sendVolumeCommand | ( | mpd_Connection * | connection, | |
int | volumeChange | |||
) |
void mpd_setConnectionTimeout | ( | mpd_Connection * | connection, | |
float | timeout | |||
) |
void mpd_startFieldSearch | ( | mpd_Connection * | connection, | |
int | type | |||
) |
connection | a mpd_Connection | |
type | The type to search for |
mpd_startFieldSearch(connection, MPD_TAG_ITEM_ARTIST); mpd_commitSearch(connection);
or get a list of artist in genre "jazz" would be:
mpd_startFieldSearch(connection, MPD_TAG_ITEM_ARTIST); mpd_addConstraintSearch(connection, MPD_TAG_ITEM_GENRE, "jazz") mpd_commitSearch(connection);
mpd_startSearch will return a list of songs (and you need mpd_getNextInfoEntity) this one will return a list of only one field (the one specified with type) and you need mpd_getNextTag to get the results
void mpd_startPlaylistSearch | ( | mpd_Connection * | connection, | |
int | exact | |||
) |
void mpd_startSearch | ( | mpd_Connection * | connection, | |
int | exact | |||
) |
connection | a mpd_Connection | |
exact | if to match exact |
void mpd_startStatsSearch | ( | mpd_Connection * | connection | ) |
char* mpdTagItemKeys[MPD_TAG_NUM_OF_ITEM_TYPES] |