acl-plugin.h revision eb4d4f557fa75aa2a47639e9deb75a21f44eb42a
#ifndef ACL_PLUGIN_H
#define ACL_PLUGIN_H
#include "mail-user.h"
#include "mail-storage-private.h"
#include "mailbox-list-private.h"
#include "acl-storage.h"
#define ACL_CONTEXT(obj) \
#define ACL_LIST_CONTEXT(obj) \
#define ACL_USER_CONTEXT(obj) \
struct acl_user {
const char *master_user;
const char *acl_env;
const char *const *groups;
struct acl_lookup_dict *acl_lookup_dict;
};
struct acl_storage_rights_context {
struct acl_backend *backend;
unsigned int acl_storage_right_idx[ACL_STORAGE_RIGHT_COUNT];
};
struct acl_mailbox_list {
struct acl_storage_rights_context rights;
};
struct acl_mailbox {
union mailbox_module_context module_ctx;
struct acl_object *aclobj;
bool skip_acl_checks;
bool acl_enabled;
bool no_read_right;
};
bool parent, unsigned int acl_storage_right_idx,
void acl_plugin_deinit(void);
#endif