Apache2
md_store_fs.h File Reference

Go to the source code of this file.

Macros

#define MD_FPROT_F_UONLY   (APR_FPROT_UREAD|APR_FPROT_UWRITE)
 
#define MD_FPROT_D_UONLY   (MD_FPROT_F_UONLY|APR_FPROT_UEXECUTE)
 
#define MD_FPROT_F_UALL_GREAD   (MD_FPROT_F_UONLY|APR_FPROT_GREAD)
 
#define MD_FPROT_D_UALL_GREAD   (MD_FPROT_D_UONLY|APR_FPROT_GREAD|APR_FPROT_GEXECUTE)
 
#define MD_FPROT_F_UALL_WREAD   (MD_FPROT_F_UALL_GREAD|APR_FPROT_WREAD)
 
#define MD_FPROT_D_UALL_WREAD   (MD_FPROT_D_UALL_GREAD|APR_FPROT_WREAD|APR_FPROT_WEXECUTE)
 

Typedefs

typedef apr_status_t md_store_fs_cb(void *baton, struct md_store_t *store, md_store_fs_ev_t ev, unsigned int group, const char *fname, apr_filetype_e ftype, apr_pool_t *p)
 

Enumerations

enum  md_store_fs_ev_t { MD_S_FS_EV_CREATED , MD_S_FS_EV_MOVED }
 

Functions

apr_status_t md_store_fs_init (struct md_store_t **pstore, apr_pool_t *p, const char *path)
 
apr_status_t md_store_fs_default_perms_set (struct md_store_t *store, apr_fileperms_t file_perms, apr_fileperms_t dir_perms)
 
apr_status_t md_store_fs_group_perms_set (struct md_store_t *store, md_store_group_t group, apr_fileperms_t file_perms, apr_fileperms_t dir_perms)
 
apr_status_t md_store_fs_set_event_cb (struct md_store_t *store, md_store_fs_cb *cb, void *baton)
 

Macro Definition Documentation

◆ MD_FPROT_D_UALL_GREAD

#define MD_FPROT_D_UALL_GREAD   (MD_FPROT_D_UONLY|APR_FPROT_GREAD|APR_FPROT_GEXECUTE)

◆ MD_FPROT_D_UALL_WREAD

#define MD_FPROT_D_UALL_WREAD   (MD_FPROT_D_UALL_GREAD|APR_FPROT_WREAD|APR_FPROT_WEXECUTE)

◆ MD_FPROT_D_UONLY

#define MD_FPROT_D_UONLY   (MD_FPROT_F_UONLY|APR_FPROT_UEXECUTE)

◆ MD_FPROT_F_UALL_GREAD

#define MD_FPROT_F_UALL_GREAD   (MD_FPROT_F_UONLY|APR_FPROT_GREAD)

User has all permission, group can read, other none

◆ MD_FPROT_F_UALL_WREAD

#define MD_FPROT_F_UALL_WREAD   (MD_FPROT_F_UALL_GREAD|APR_FPROT_WREAD)

User has all permission, group and others can read

◆ MD_FPROT_F_UONLY

#define MD_FPROT_F_UONLY   (APR_FPROT_UREAD|APR_FPROT_UWRITE)

Default file permissions set by the store, user only read/write(/exec), if so supported by the apr.

Typedef Documentation

◆ md_store_fs_cb

typedef apr_status_t md_store_fs_cb(void *baton, struct md_store_t *store, md_store_fs_ev_t ev, unsigned int group, const char *fname, apr_filetype_e ftype, apr_pool_t *p)

Enumeration Type Documentation

◆ md_store_fs_ev_t

Enumerator
MD_S_FS_EV_CREATED 
MD_S_FS_EV_MOVED 

Function Documentation

◆ md_store_fs_default_perms_set()

apr_status_t md_store_fs_default_perms_set ( struct md_store_t store,
apr_fileperms_t  file_perms,
apr_fileperms_t  dir_perms 
)

◆ md_store_fs_group_perms_set()

apr_status_t md_store_fs_group_perms_set ( struct md_store_t store,
md_store_group_t  group,
apr_fileperms_t  file_perms,
apr_fileperms_t  dir_perms 
)

◆ md_store_fs_init()

apr_status_t md_store_fs_init ( struct md_store_t **  pstore,
apr_pool_t p,
const char *  path 
)

◆ md_store_fs_set_event_cb()

apr_status_t md_store_fs_set_event_cb ( struct md_store_t store,
md_store_fs_cb cb,
void *  baton 
)