]> git.tuebingen.mpg.de Git - paraslash.git/commit
afs: Make afs callbacks more flexible.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 12 May 2015 07:44:42 +0000 (09:44 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 12 Aug 2015 21:23:48 +0000 (23:23 +0200)
commit59a4f545566f77a22a8c27ece5155ecd154d4145
treeed74917036bed5b98bd5b143ce6bce80b07e4d49
parente469622d99718d49158d5da649eb02180269b4c8
afs: Make afs callbacks more flexible.

Currently we pass the information for callbacks (an int and a pointer
to an osl_object) as separate arguments. If additional information
must be passed to some callbacks, every callback must be modified to
match the new prototype, even those which won't use the new argument.

This commit introduces struct afs_callback_arg which contains the two
callback arguments and changes all callbacks to receive a pointer
to such a structure. This is an equivalent transformation with no
visible change in semantics.

With this commit in place it is easy to provide additional information
by simply extending struct afs_callback as appropriate.
afs.c
afs.h
aft.c
attribute.c
blob.c
mood.c
mood.h
playlist.c