]> git.tuebingen.mpg.de Git - paraslash.git/commit
Improve playlist_open().
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 7 Mar 2022 18:20:07 +0000 (19:20 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 17 Oct 2022 18:36:21 +0000 (20:36 +0200)
commitb36883d75a07842740562eb654d5642914042d4b
tree648e999754e13bcf60777e226872b1182a8a6afc
parentb5c41f48cb47e88303f687caf8b039972c00e0d1
Improve playlist_open().

It's easier to let playlist_open() fill in the error text than
to do this in the caller. This is also how the counterpart of
playlist_open(), change_current_mood(), is implemented. Drop the
server log message because this error is usually caused by a client
passing a misspelt playlist name.

Fix the documentation of the return value of the function
while at it: It returns the playlist length on success, and
activate_mood_or_playlist(), its single caller in afs.c, depends
on that.
afs.c
afs.h
playlist.c