e2e6f40d58b85041ca77338026a17d6708f324efTimo Sirainenacl_global_file_init(const char *path, unsigned int refresh_interval_secs,
4c158400b046fefefce0194603951a6587f51867Timo Sirainenvoid acl_global_file_deinit(struct acl_global_file **file);
4c158400b046fefefce0194603951a6587f51867Timo Sirainen/* Read the global ACLs into memory. */
4c158400b046fefefce0194603951a6587f51867Timo Sirainenint acl_global_file_refresh(struct acl_global_file *file);
af134287071b6d8a9e12c3f11a50fe9ad824d89aTimo Sirainen/* Return stat data for the last refresh. */
af134287071b6d8a9e12c3f11a50fe9ad824d89aTimo Sirainenvoid acl_global_file_last_stat(struct acl_global_file *file, struct stat *st_r);
4c158400b046fefefce0194603951a6587f51867Timo Sirainen/* Return global ACL rights matching the mailbox name. The file must already
4c158400b046fefefce0194603951a6587f51867Timo Sirainen have been refreshed at least once. */
4c158400b046fefefce0194603951a6587f51867Timo Sirainenvoid acl_global_file_get(struct acl_global_file *file, const char *vname,
4c158400b046fefefce0194603951a6587f51867Timo Sirainen pool_t pool, ARRAY_TYPE(acl_rights) *rights_r);
4c158400b046fefefce0194603951a6587f51867Timo Sirainen/* Returns TRUE if there are any global ACLs matching the mailbox name. */
4c158400b046fefefce0194603951a6587f51867Timo Sirainenbool acl_global_file_have_any(struct acl_global_file *file, const char *vname);