ocarina/core
Anna Schumaker 73825dd916 core/playlist: Add a function to look up playlists by id
This is much more straightforward than converting an id to a name and
then looking up playlists from there.  This patch removes the now-unused
playlist_get_name() function.

This patch also lets me simplify the system playlist unit test, since I
can now check several similar operations using a loop.  Additionally, I
change calls to pl_system_lookup() into pl_system_get() for efficiency.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
2017-04-28 09:40:02 -04:00
..
playlists core/playlist: Add a function to look up playlists by id 2017-04-28 09:40:02 -04:00
tags core/database: Pass database index when allocating dbes 2017-04-28 09:40:02 -04:00
audio.c core/playlist: Rename playlist_get() -> playlist_lookup() 2017-04-28 09:40:02 -04:00
core.c core: Add a field to initdata for enabling async idle tasks 2017-04-14 13:58:05 -04:00
database.c core/database: Pass database index when allocating dbes 2017-04-28 09:40:02 -04:00
date.c core/date: Add functions for reading and writing date stamps 2016-09-26 08:07:35 -04:00
file.c core/file: File version is OCARINA_MINOR_VERSION 2016-09-26 08:07:35 -04:00
idle.c core/idle: Let tests run without the thread pool 2016-07-28 16:17:43 -04:00
playlist.c core/playlist: Add a function to look up playlists by id 2017-04-28 09:40:02 -04:00
queue.c core/queue: Remove Q_ADD_FRONT flag 2017-04-28 09:40:02 -04:00
settings.c core/settings: Check for a NULL key 2016-09-26 12:02:23 -04:00
string.c core/string: Remove unused string functions 2016-08-29 07:33:00 -04:00