Lines Matching defs:playlist
110 static char *default_meta_pl = "dmap.itemid,dmap.itemname,dmap.persistentid,com.apple.itunes.smart-playlist";
852 dmap_add_char(content, "msed", 0); // dmap.supportsedit? - we don't support playlist editing
1222 daap_reply_songlist_generic(struct evhttp_request *req, struct evbuffer *evbuf, int playlist, struct evkeyvalq *query, const char *ua)
1247 DPRINTF(E_DBG, L_DAAP, "Fetching song list for playlist %d\n", playlist);
1249 if (playlist != -1)
1250 tag = "apso"; /* Songs in playlist */
1306 if (playlist != -1)
1329 if (playlist == -1)
1345 if (playlist != -1)
1348 qp.id = playlist;
1530 int playlist;
1533 ret = safe_atoi32(uri[3], &playlist);
1536 dmap_send_error(req, "apso", "Invalid playlist ID");
1541 return daap_reply_songlist_generic(req, evbuf, playlist, query, ua);
1551 struct evbuffer *playlist;
1597 DPRINTF(E_LOG, L_DAAP, "Could not create evbuffer for DMAP playlist list\n");
1607 DPRINTF(E_LOG, L_DAAP, "Could not expand evbuffer for DMAP playlist list\n");
1613 playlist = evbuffer_new();
1614 if (!playlist)
1616 DPRINTF(E_LOG, L_DAAP, "Could not create evbuffer for DMAP playlist block\n");
1623 ret = evbuffer_expand(playlist, 128);
1626 DPRINTF(E_LOG, L_DAAP, "Could not expand evbuffer for DMAP playlist block\n");
1704 /* com.apple.itunes.smart-playlist - type = PL_SMART AND id != 1 */
1710 dmap_add_char(playlist, "aeSP", 1);
1714 dmap_add_char(playlist, "aePS", aePS);
1729 dmap_add_field(playlist, df, *strval, 0);
1735 dmap_add_int(playlist, "mimc", plitems);
1740 // dmap_add_int(playlist, "mpco", plparent);
1742 // dmap_add_int(playlist, "mpco", 0);
1744 /* Base playlist (abpl), id = 1 */
1746 dmap_add_char(playlist, "abpl", 1);
1748 DPRINTF(E_DBG, L_DAAP, "Done with playlist\n");
1750 dmap_add_container(playlistlist, "mlit", EVBUFFER_LENGTH(playlist));
1751 ret = evbuffer_add_buffer(playlistlist, playlist);
1754 DPRINTF(E_LOG, L_DAAP, "Could not add playlist to playlist list for DAAP playlists reply\n");
1761 DPRINTF(E_DBG, L_DAAP, "Done with playlist list, %d playlists\n", npls);
1764 evbuffer_free(playlist);
1797 DPRINTF(E_LOG, L_DAAP, "Could not add playlist list to DAAP playlists reply\n");
1813 evbuffer_free(playlist);