]> git.tuebingen.mpg.de Git - paraslash.git/commit
Merge load_playlist() into playlist_open() and simplify.
authorAndre Noll <maan@tuebingen.mpg.de>
Fri, 11 Mar 2022 22:38:13 +0000 (23:38 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 17 Oct 2022 18:36:21 +0000 (20:36 +0200)
commit11f6b66a8eb345185c4a4bc8dc8d6059835d37f0
treea5d36ad91db23b7d454290e4b2b3e04d89bbea15
parentebb53a6a2d300d33832ffa51aa8e1100c4d700e6
Merge load_playlist() into playlist_open() and simplify.

They are reasonably small. Remove the weird calling convention with
the PLAYLIST_LOADED error code and the pointless check for the dummy
row because they only obfuscate the code. Moreover, the comment of
load_playlist() is actively misleading because this function is not
a loop callback. Extend the documentation of the combined public
playlist_open() while at it.

The code can be simplified by calling pl_get_def_by_name() rather
than osl_get_row() followed by pl_get_name_and_def_by_row().
error.h
playlist.c