2 * Sherlock Library -- Sets of object attributes
4 * (c) 2006 Martin Mares <mj@ucw.cz>
6 * This software may be freely distributed and used according to the terms
7 * of the GNU Lesser General Public License.
10 #ifndef _SHERLOCK_ATTRSET_H
11 #define _SHERLOCK_ATTRSET_H
13 #include "ucw/bitarray.h"
14 #include "sherlock/object.h"
16 COMPILE_ASSERT(son_value, OBJ_ATTR_SON == 256);
17 #define ATTR_SET_SIZE 512
20 BIT_ARRAY(a, ATTR_SET_SIZE);
24 attr_set_match(struct attr_set *set, struct oattr *attr)
26 return bit_array_isset(set->a, attr->attr);
29 /* Configuration helpers */
31 extern struct cf_section attr_set_cf, attr_set_cf_sub;
34 void attr_set_commit(struct attr_set *set, struct clist *list);