libmpd-playlist.h | libmpd-playlist.h | |||
---|---|---|---|---|
skipping to change at line 306 | skipping to change at line 306 | |||
/*@}*/ | /*@}*/ | |||
/** \defgroup playlistqueue Playlist Queue | /** \defgroup playlistqueue Playlist Queue | |||
* \ingroup Playlist | * \ingroup Playlist | |||
* Allow control of MPD new queue system | * Allow control of MPD new queue system | |||
*/ | */ | |||
/*@{*/ | /*@{*/ | |||
/** | /** | |||
* @param mi a #MpdObj | * @param mi a #MpdObj | |||
* @param songid the id of the song to add | ||||
* | ||||
* Add the song from the playlist with id songid. | ||||
* | ||||
* @returns a #MpdError | ||||
*/ | ||||
int mpd_playlist_mpd_queue_add(MpdObj *mi, int songid); | ||||
/** | ||||
* @param mi a #MpdObj | ||||
* @param songpos the pos of the song to remove | ||||
* | ||||
* Removes the song from the queue at position songpos | ||||
* | ||||
* @returns a #MpdError | ||||
*/ | ||||
int mpd_playlist_mpd_queue_remove(MpdObj *mi, int songpos); | ||||
/** | ||||
* @param mi a #MpdObj | ||||
* @param path The path to a playlist to load | * @param path The path to a playlist to load | |||
* | * | |||
* This queues a load command. The actual load isn't done until #mpd_playli st_queue_commit is called | * This queues a load command. The actual load isn't done until #mpd_playli st_queue_commit is called | |||
* | * | |||
* @returns a #MpdError | * @returns a #MpdError | |||
*/ | */ | |||
int mpd_playlist_load (MpdObj *mi,const char *path); | int mpd_playlist_load (MpdObj *mi,const char *path); | |||
int mpd_playlist_set_priority(MpdObj *mi, int song_id, int priority); | ||||
/*@}*/ | /*@}*/ | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
20 lines changed or deleted | 2 lines changed or added | |||
libmpd-version.h | libmpd-version.h | |||
---|---|---|---|---|
skipping to change at line 21 | skipping to change at line 21 | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | * GNU General Public License for more details. | |||
* You should have received a copy of the GNU General Public License along | * You should have received a copy of the GNU General Public License along | |||
* with this program; if not, write to the Free Software Foundation, Inc., | * with this program; if not, write to the Free Software Foundation, Inc., | |||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |||
*/ | */ | |||
#ifndef LIBMPD_VERSION | #ifndef LIBMPD_VERSION | |||
#define LIBMPD_VERSION "11.8.17" | #define LIBMPD_VERSION "11.8.90" | |||
#define LIBMPD_MAJOR_VERSION (11) | #define LIBMPD_MAJOR_VERSION (11) | |||
#define LIBMPD_MINOR_VERSION (8) | #define LIBMPD_MINOR_VERSION (8) | |||
#define LIBMPD_MICRO_VERSION (17) | #define LIBMPD_MICRO_VERSION (90) | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||
libmpdclient.h | libmpdclient.h | |||
---|---|---|---|---|
skipping to change at line 263 | skipping to change at line 263 | |||
mpd_SearchStats * mpd_getSearchStats(mpd_Connection * connection); | mpd_SearchStats * mpd_getSearchStats(mpd_Connection * connection); | |||
void mpd_freeSearchStats(mpd_SearchStats * stats); | void mpd_freeSearchStats(mpd_SearchStats * stats); | |||
/* SONG STUFF */ | /* SONG STUFF */ | |||
#define MPD_SONG_NO_TIME -1 | #define MPD_SONG_NO_TIME -1 | |||
#define MPD_SONG_NO_NUM -1 | #define MPD_SONG_NO_NUM -1 | |||
#define MPD_SONG_NO_ID -1 | #define MPD_SONG_NO_ID -1 | |||
#define MPD_SONG_NO_RATING -1 | ||||
#define MPD_SONG_NO_PRIORITY 0 | ||||
/* mpd_Song | /* mpd_Song | |||
* for storing song info returned by mpd | * for storing song info returned by mpd | |||
*/ | */ | |||
typedef struct _mpd_Song { | typedef struct _mpd_Song { | |||
/* filename of song */ | /* filename of song */ | |||
char * file; | char * file; | |||
/* artist, maybe NULL if there is no tag */ | /* artist, maybe NULL if there is no tag */ | |||
char * artist; | char * artist; | |||
/* title, maybe NULL if there is no tag */ | /* title, maybe NULL if there is no tag */ | |||
skipping to change at line 305 | skipping to change at line 307 | |||
/* AlbumArtist */ | /* AlbumArtist */ | |||
char *albumartist; | char *albumartist; | |||
/* length of song in seconds, check that it is not MPD_SONG_NO_TIME */ | /* length of song in seconds, check that it is not MPD_SONG_NO_TIME */ | |||
int time; | int time; | |||
/* if plchanges/playlistinfo/playlistid used, is the position of the | /* if plchanges/playlistinfo/playlistid used, is the position of the | |||
* song in the playlist */ | * song in the playlist */ | |||
int pos; | int pos; | |||
/* song id for a song in the playlist */ | /* song id for a song in the playlist */ | |||
int id; | int id; | |||
/* Priority */ | ||||
int priority; | ||||
/* rating */ | ||||
int rating; | ||||
} mpd_Song; | } mpd_Song; | |||
/* mpd_newSong | /* mpd_newSong | |||
* use to allocate memory for a new mpd_Song | * use to allocate memory for a new mpd_Song | |||
* file, artist, etc all initialized to NULL | * file, artist, etc all initialized to NULL | |||
* if your going to assign values to file, artist, etc | * if your going to assign values to file, artist, etc | |||
* be sure to malloc or strdup the memory | * be sure to malloc or strdup the memory | |||
* use mpd_freeSong to free the memory for the mpd_Song, it will also | * use mpd_freeSong to free the memory for the mpd_Song, it will also | |||
* free memory for file, artist, etc, so don't do it yourself | * free memory for file, artist, etc, so don't do it yourself | |||
*/ | */ | |||
skipping to change at line 699 | skipping to change at line 705 | |||
/* Stickers*/ | /* Stickers*/ | |||
char * mpd_getNextSticker (mpd_Connection * connection); | char * mpd_getNextSticker (mpd_Connection * connection); | |||
void mpd_sendSetSongSticker(mpd_Connection *connection, const char *song, c onst char *sticker, const char *value); | void mpd_sendSetSongSticker(mpd_Connection *connection, const char *song, c onst char *sticker, const char *value); | |||
void mpd_sendGetSongSticker(mpd_Connection *connection, const char *song, const char *sticker); | void mpd_sendGetSongSticker(mpd_Connection *connection, const char *song, const char *sticker); | |||
void mpd_sendSetReplayGainMode(mpd_Connection *connection, const char *mode ); | void mpd_sendSetReplayGainMode(mpd_Connection *connection, const char *mode ); | |||
void mpd_sendReplayGainModeCommand(mpd_Connection *connection); | void mpd_sendReplayGainModeCommand(mpd_Connection *connection); | |||
char *mpd_getReplayGainMode(mpd_Connection *connection); | char *mpd_getReplayGainMode(mpd_Connection *connection); | |||
void mpd_sendSetPrioId(mpd_Connection *connection, int id, int priority); | ||||
void mpd_sendSetPrio(mpd_Connection *connection, int pos, int priority); | ||||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 3 change blocks. | ||||
0 lines changed or deleted | 9 lines changed or added | |||