]> git.tuebingen.mpg.de Git - paraslash.git/commit - playlist.c
Let afs callbacks return an error code.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 4 Apr 2015 21:45:11 +0000 (21:45 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 12 Aug 2015 21:23:47 +0000 (23:23 +0200)
commit050003ccbd8b314038352f55d9fae53245670e78
treef47f217a80f59418486b5de037be20ce6cb4e99e
parent79bfc7a2a6577000c405be6344ba91ec3f8745e9
Let afs callbacks return an error code.

It was a design mistake that callbacks have no way to tell whether
they were successful. This commit changes the callback_function
typedef so that callbacks return int instead of void.

Naturally, every callback must be adjusted accordingly. Doing so would
make the patch a bit large, so as a first step we make all callbacks
(except path_brother_callback() and hash_sister_callback() which
are special) return zero. The return value is ignored at the moment,
so the changes of this commit have no effect yet.
afs.c
afs.h
aft.c
attribute.c
blob.c
mood.c
mood.h
playlist.c