diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
commit | f7548d6d28c313cf80e6f3ef89aed16a19815df1 (patch) | |
tree | a3f6f2a3f247293bee59ecd28e8cd8ceb6ca064a /src/plugins/acl/acl-global-file.h | |
parent | Initial commit. (diff) | |
download | dovecot-upstream.tar.xz dovecot-upstream.zip |
Adding upstream version 1:2.3.19.1+dfsg1.upstream/1%2.3.19.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/plugins/acl/acl-global-file.h')
-rw-r--r-- | src/plugins/acl/acl-global-file.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/plugins/acl/acl-global-file.h b/src/plugins/acl/acl-global-file.h new file mode 100644 index 0000000..d393dec --- /dev/null +++ b/src/plugins/acl/acl-global-file.h @@ -0,0 +1,23 @@ +#ifndef ACL_GLOBAL_FILE_H +#define ACL_GLOBAL_FILE_H + +#include "acl-api.h" + +struct acl_global_file * +acl_global_file_init(const char *path, unsigned int refresh_interval_secs, + bool debug); +void acl_global_file_deinit(struct acl_global_file **file); + +/* Read the global ACLs into memory. */ +int acl_global_file_refresh(struct acl_global_file *file); +/* Return stat data for the last refresh. */ +void acl_global_file_last_stat(struct acl_global_file *file, struct stat *st_r); + +/* Return global ACL rights matching the mailbox name. The file must already + have been refreshed at least once. */ +void acl_global_file_get(struct acl_global_file *file, const char *vname, + pool_t pool, ARRAY_TYPE(acl_rights) *rights_r); +/* Returns TRUE if there are any global ACLs matching the mailbox name. */ +bool acl_global_file_have_any(struct acl_global_file *file, const char *vname); + +#endif |