acl-cache.h revision 08a0b7b0d0444875001847ef2b1b7b76122620ab
#ifndef __ACL_CACHE_H
#define __ACL_CACHE_H
struct acl_backend;
struct acl_rights;
struct acl_mask {
/* mask[] size as bytes */
unsigned int size;
/* variable length bitmask */
unsigned char mask[1];
};
#define SIZEOF_ACL_MASK(count) \
(sizeof(pool_t) + sizeof(unsigned int) + \
const char *const *rights);
const char *right);
/* Flush cache for given object name */
/* Flush cache for all objects */
/* Update object ACLs. */
const struct acl_rights *rights);
/* Update ACL object validity. */
const void *validity);
/* Return ACL object validity. */
const char *objname);
/* Returns all the right names currently created. The returned pointer may
change after calling acl_cache_update(). */
unsigned int *count_r);
/* Returns user's current rights, or NULL if no rights have been specified
for this object. */
const struct acl_mask *
#endif