]> git.tuebingen.mpg.de Git - paraslash.git/commit
com_check(): Add attribute checking.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 7 Apr 2015 21:18:34 +0000 (21:18 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 12 Aug 2015 21:23:48 +0000 (23:23 +0200)
commiteb3afb241df1e8247dfd2e944032202976e73af8
tree0e658f432e470186956d59bcb9e1ef14bbcd02ce
parentfe282244d61b83eb1f285259dd1d55992a96288f
com_check(): Add attribute checking.

The afs info stored in the audio file table contains the attribute
bit mask of each audio file. If there is a bit set which does
not correspond to an attribute defined in the attribute table, we
have an inconsistency. This commit adds a check that reports such
inconsistencies.

com_check(), which is part of afs.c, calls the attribute check
callback of attribute.c via the callback mechanism. The callback
computes the logical or of all defined bits and passes this bit mask
to aft_check_attributes() of aft.c to check each audio file against
the mask. Hence two new public functions are required.
afs.c
afs.cmd
afs.h
aft.c
attribute.c