Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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

#define MD_FPROT_D_UALL_GREAD   (MD_FPROT_D_UONLY|APR_FPROT_GREAD|APR_FPROT_GEXECUTE)
#define MD_FPROT_D_UALL_WREAD   (MD_FPROT_D_UALL_GREAD|APR_FPROT_WREAD|APR_FPROT_WEXECUTE)
#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)

User has all permission, group can read, other none

#define MD_FPROT_F_UALL_WREAD   (MD_FPROT_F_UALL_GREAD|APR_FPROT_WREAD)

User has all permission, group and others can read

#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

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

Enumerator
MD_S_FS_EV_CREATED 
MD_S_FS_EV_MOVED 

Function Documentation

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_init ( struct md_store_t **  pstore,
apr_pool_t p,
const char *  path 
)
apr_status_t md_store_fs_set_event_cb ( struct md_store_t store,
md_store_fs_cb cb,
void baton 
)