blob: d393dec6a35c6c7ab9600ae57b00be26636c6ffd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|