| libmpdclient.h | | libmpdclient.h | |
| /* libmpdclient | | /* libmpdclient | |
|
| (c)2003-2007 by Warren Dukes (warren.dukes@gmail.com) | | (c)2003-2006 by Warren Dukes (warren.dukes@gmail.com) | |
| This project's homepage is: http://www.musicpd.org | | This project's homepage is: http://www.musicpd.org | |
| | | | |
| Redistribution and use in source and binary forms, with or without | | Redistribution and use in source and binary forms, with or without | |
| modification, are permitted provided that the following conditions | | modification, are permitted provided that the following conditions | |
| are met: | | are met: | |
| | | | |
| - Redistributions of source code must retain the above copyright | | - Redistributions of source code must retain the above copyright | |
| notice, this list of conditions and the following disclaimer. | | notice, this list of conditions and the following disclaimer. | |
| | | | |
| - Redistributions in binary form must reproduce the above copyright | | - Redistributions in binary form must reproduce the above copyright | |
| | | | |
| skipping to change at line 421 | | skipping to change at line 421 | |
| /* recursivel fetches all songs/dir/playlists in "dir* (no metadata is | | /* recursivel fetches all songs/dir/playlists in "dir* (no metadata is | |
| * returned) */ | | * returned) */ | |
| void mpd_sendListallCommand(mpd_Connection * connection, const char * dir); | | void mpd_sendListallCommand(mpd_Connection * connection, const char * dir); | |
| | | | |
| /* same as sendListallCommand, but also metadata is returned */ | | /* same as sendListallCommand, but also metadata is returned */ | |
| void mpd_sendListallInfoCommand(mpd_Connection * connection, const char * d
ir); | | void mpd_sendListallInfoCommand(mpd_Connection * connection, const char * d
ir); | |
| | | | |
| /* non-recursive version of ListallInfo */ | | /* non-recursive version of ListallInfo */ | |
| void mpd_sendLsInfoCommand(mpd_Connection * connection, const char * dir); | | void mpd_sendLsInfoCommand(mpd_Connection * connection, const char * dir); | |
| | | | |
|
| #define MPD_TABLE_ARTIST 0 | | #define MPD_TABLE_ARTIST MPD_TAG_ITEM_ARTIST | |
| #define MPD_TABLE_ALBUM 1 | | #define MPD_TABLE_ALBUM MPD_TAG_ITEM_ALBUM | |
| #define MPD_TABLE_TITLE 2 | | #define MPD_TABLE_TITLE MPD_TAG_ITEM_TITLE | |
| #define MPD_TABLE_FILENAME 3 | | #define MPD_TABLE_FILENAME MPD_TAG_ITEM_FILENAME | |
| | | | |
| void mpd_sendSearchCommand(mpd_Connection * connection, int table, | | void mpd_sendSearchCommand(mpd_Connection * connection, int table, | |
| const char * str); | | const char * str); | |
| | | | |
| void mpd_sendFindCommand(mpd_Connection * connection, int table, | | void mpd_sendFindCommand(mpd_Connection * connection, int table, | |
| const char * str); | | const char * str); | |
| | | | |
| /* LIST TAG COMMANDS */ | | /* LIST TAG COMMANDS */ | |
| | | | |
| /* use this function fetch next artist entry, be sure to free the returned | | /* use this function fetch next artist entry, be sure to free the returned | |
| | | | |
| skipping to change at line 570 | | skipping to change at line 570 | |
| | | | |
| /** | | /** | |
| * @param connection a #mpd_Connection | | * @param connection a #mpd_Connection | |
| * | | * | |
| * returns the next supported command. | | * returns the next supported command. | |
| * | | * | |
| * @returns a string, needs to be free'ed | | * @returns a string, needs to be free'ed | |
| */ | | */ | |
| char *mpd_getNextCommand(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); | |
| | | | |
| /** | | /** | |
| * @param connection a MpdConnection | | * @param connection a MpdConnection | |
| * @param path the path to the playlist. | | * @param path the path to the playlist. | |
| * | | * | |
| * List the content, with full metadata, of a stored playlist. | | * List the content, with full metadata, of a stored playlist. | |
| * | | * | |
| */ | | */ | |
| void mpd_sendListPlaylistInfoCommand(mpd_Connection *connection, char *path
); | | void mpd_sendListPlaylistInfoCommand(mpd_Connection *connection, char *path
); | |
| | | | |
| /** | | /** | |
| | | | |
| skipping to change at line 602 | | skipping to change at line 610 | |
| * starts a search, use mpd_addConstraintSearch to add | | * starts a search, use mpd_addConstraintSearch to add | |
| * a constraint to the search, and mpd_commitSearch to do the actual search | | * a constraint to the search, and mpd_commitSearch to do the actual search | |
| */ | | */ | |
| void mpd_startSearch(mpd_Connection *connection, int exact); | | void mpd_startSearch(mpd_Connection *connection, int exact); | |
| | | | |
| /** | | /** | |
| * @param connection a #mpd_Connection | | * @param connection a #mpd_Connection | |
| * @param type | | * @param type | |
| * @param name | | * @param name | |
| */ | | */ | |
|
| void mpd_addConstraintSearch(mpd_Connection *connection, int type, char *na
me); | | void mpd_addConstraintSearch(mpd_Connection *connection, int type, const ch
ar *name); | |
| | | | |
| /** | | /** | |
| * @param connection a #mpd_Connection | | * @param connection a #mpd_Connection | |
| */ | | */ | |
| void mpd_commitSearch(mpd_Connection *connection); | | void mpd_commitSearch(mpd_Connection *connection); | |
| | | | |
| /** | | /** | |
| * @param connection a #mpd_Connection | | * @param connection a #mpd_Connection | |
| * @param type The type to search for | | * @param type The type to search for | |
| * | | * | |
| | | | |
| skipping to change at line 631 | | skipping to change at line 639 | |
| * mpd_startFieldSearch(connection, MPD_TAG_ITEM_ARTIST); | | * mpd_startFieldSearch(connection, MPD_TAG_ITEM_ARTIST); | |
| * mpd_addConstraintSearch(connection, MPD_TAG_ITEM_GENRE, "jazz") | | * mpd_addConstraintSearch(connection, MPD_TAG_ITEM_GENRE, "jazz") | |
| * mpd_commitSearch(connection); | | * mpd_commitSearch(connection); | |
| * @endcode | | * @endcode | |
| * | | * | |
| * mpd_startSearch will return a list of songs (and you need mpd_getNextIn
foEntity) | | * mpd_startSearch will return a list of songs (and you need mpd_getNextIn
foEntity) | |
| * this one will return a list of only one field (the one specified with ty
pe) and you need | | * this one will return a list of only one field (the one specified with ty
pe) and you need | |
| * mpd_getNextTag to get the results | | * mpd_getNextTag to get the results | |
| */ | | */ | |
| void mpd_startFieldSearch(mpd_Connection *connection, int type); | | void mpd_startFieldSearch(mpd_Connection *connection, int type); | |
|
| | | | |
| | | void mpd_startPlaylistSearch(mpd_Connection *connection, int exact); | |
| | | | |
| | | void mpd_sendPlaylistClearCommand(mpd_Connection *connection, char* path); | |
| | | | |
| | | void mpd_sendPlaylistAddCommand(mpd_Connection *connection, | |
| | | char *playlist, char* path); | |
| #ifdef __cplusplus | | #ifdef __cplusplus | |
| } | | } | |
| #endif | | #endif | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 5 change blocks. |
| 6 lines changed or deleted | | 21 lines changed or added | |
|