Annotation of parser3/src/lib/sdbm/pa-include/pa_file_info.h, revision 1.3
1.2 moko 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.
1.1 moko 15: */
16:
17: #ifndef PA_FILE_INFO_H
18: #define PA_FILE_INFO_H
19:
20: #include "pa_apr.h"
21:
22: #ifdef __cplusplus
23: extern "C" {
24: #endif /* __cplusplus */
25: /**
26: * @file pa_file_info.h
27: * @brief APR File handling
28: */
29:
30: /**
31: * Structure for determining file permissions.
32: * @defvar pa_fileperms_t
33: */
34: typedef pa_int32_t pa_fileperms_t;
35:
36: /**
37: * @defgroup PA_File_Info Stat Functions
38: * @{
39: */
40: #define PA_FINFO_SIZE 0x00000100 /**< Size of the file */
41:
42: /**
43: * The file information structure. This is analogous to the POSIX
44: * stat structure.
45: */
46: typedef struct pa_finfo_t pa_finfo_t;
47:
48: struct pa_finfo_t {
49: /** The size of the file */
50: pa_off_t size;
51: };
52:
53: /** @} */
54:
55: #ifdef __cplusplus
56: }
57: #endif
58:
59: #endif /* ! PA_FILE_INFO_H */
E-mail: