Apache2
md_store_fs.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef mod_md_md_store_fs_h
18 #define mod_md_md_store_fs_h
19 
20 struct md_store_t;
21 
26 #define MD_FPROT_F_UONLY (APR_FPROT_UREAD|APR_FPROT_UWRITE)
27 #define MD_FPROT_D_UONLY (MD_FPROT_F_UONLY|APR_FPROT_UEXECUTE)
28 
32 #define MD_FPROT_F_UALL_GREAD (MD_FPROT_F_UONLY|APR_FPROT_GREAD)
33 #define MD_FPROT_D_UALL_GREAD (MD_FPROT_D_UONLY|APR_FPROT_GREAD|APR_FPROT_GEXECUTE)
34 
38 #define MD_FPROT_F_UALL_WREAD (MD_FPROT_F_UALL_GREAD|APR_FPROT_WREAD)
39 #define MD_FPROT_D_UALL_WREAD (MD_FPROT_D_UALL_GREAD|APR_FPROT_WREAD|APR_FPROT_WEXECUTE)
40 
42  const char *path);
43 
44 
46  apr_fileperms_t file_perms,
47  apr_fileperms_t dir_perms);
50  apr_fileperms_t file_perms,
51  apr_fileperms_t dir_perms);
52 
53 typedef enum {
57 
58 typedef apr_status_t md_store_fs_cb(void *baton, struct md_store_t *store,
59  md_store_fs_ev_t ev, unsigned int group,
60  const char *fname, apr_filetype_e ftype,
61  apr_pool_t *p);
62 
64 
65 #endif /* mod_md_md_store_fs_h */
const char const dav_liveprop_group * group
Definition: mod_dav.h:1049
int apr_status_t
Definition: apr_errno.h:44
apr_int32_t apr_fileperms_t
Definition: apr_file_info.h:125
apr_filetype_e
Definition: apr_file_info.h:62
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
md_store_group_t
Definition: md_store.h:62
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)
Definition: md_store_fs.h:58
md_store_fs_ev_t
Definition: md_store_fs.h:53
@ MD_S_FS_EV_MOVED
Definition: md_store_fs.h:55
@ MD_S_FS_EV_CREATED
Definition: md_store_fs.h:54
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)
Definition: md_store.h:325
apr_pool_t * p