HEX
Server: LiteSpeed
System: Linux srv1.dhviews.com 5.14.0-570.23.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jun 24 11:27:16 EDT 2025 x86_64
User: bdedition (1723)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //proc/thread-self/root/usr/local/apps/dovecot/include/dovecot/acl-global-file.h
#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