Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
apu_errno.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 APU_ERRNO_H
18 #define APU_ERRNO_H
19 
25 #include "apr.h"
26 #include "apr_errno.h"
27 #include "apr_pools.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif /* __cplusplus */
32 
65 #define APR_ENOKEY (APR_UTIL_START_STATUS + 1)
66 
67 #define APR_ENOIV (APR_UTIL_START_STATUS + 2)
68 
69 #define APR_EKEYTYPE (APR_UTIL_START_STATUS + 3)
70 
71 #define APR_ENOSPACE (APR_UTIL_START_STATUS + 4)
72 
73 #define APR_ECRYPT (APR_UTIL_START_STATUS + 5)
74 
75 #define APR_EPADDING (APR_UTIL_START_STATUS + 6)
76 
77 #define APR_EKEYLENGTH (APR_UTIL_START_STATUS + 7)
78 
79 #define APR_ENOCIPHER (APR_UTIL_START_STATUS + 8)
80 
81 #define APR_ENODIGEST (APR_UTIL_START_STATUS + 9)
82 
83 #define APR_ENOENGINE (APR_UTIL_START_STATUS + 10)
84 
85 #define APR_EINITENGINE (APR_UTIL_START_STATUS + 11)
86 
87 #define APR_EREINIT (APR_UTIL_START_STATUS + 12)
88 
89 #define APR_ENOVERIFY (APR_UTIL_START_STATUS + 13)
90 
113 #define APR_STATUS_IS_ENOKEY(s) ((s) == APR_ENOKEY)
114 
117 #define APR_STATUS_IS_ENOIV(s) ((s) == APR_ENOIV)
118 
121 #define APR_STATUS_IS_EKEYTYPE(s) ((s) == APR_EKEYTYPE)
122 
125 #define APR_STATUS_IS_ENOSPACE(s) ((s) == APR_ENOSPACE)
126 
129 #define APR_STATUS_IS_ECRYPT(s) ((s) == APR_ECRYPT)
130 
133 #define APR_STATUS_IS_EPADDING(s) ((s) == APR_EPADDING)
134 
137 #define APR_STATUS_IS_EKEYLENGTH(s) ((s) == APR_EKEYLENGTH)
138 
141 #define APR_STATUS_IS_ENOCIPHER(s) ((s) == APR_ENOCIPHER)
142 
145 #define APR_STATUS_IS_ENODIGEST(s) ((s) == APR_ENODIGEST)
146 
149 #define APR_STATUS_IS_ENOENGINE(s) ((s) == APR_ENOENGINE)
150 
153 #define APR_STATUS_IS_EINITENGINE(s) ((s) == APR_EINITENGINE)
154 
157 #define APR_STATUS_IS_EREINIT(s) ((s) == APR_EREINIT)
158 
161 #define APR_STATUS_IS_ENOVERIFY(s) ((s) == APR_ENOVERIFY)
162 
169 typedef struct apu_err_t {
170  const char *reason;
171  const char *msg;
172  int rc;
173 } apu_err_t;
174 
192  apr_pool_t *p, const char *reason, int rc, const char *fmt, ...)
193  __attribute__((format(printf,5,6)))
194  __attribute__((nonnull(2)));
195 
198 #ifdef __cplusplus
199 }
200 #endif
201 
202 #endif /* ! APU_ERRNO_H */
int rc
Definition: apu_errno.h:172
#define APR_DECLARE_NONSTD(x)
Definition: macros.h:7
apu_err_t * apr_errprintf(apu_err_t *result, apr_pool_t *p, const char *reason, int rc, const char *fmt,...) __attribute__((format(printf
apu_err_t __attribute__((nonnull(2)))
const char * msg
Definition: apu_errno.h:171
const char * reason
Definition: apu_errno.h:170
APR memory allocation.
APR Error Codes.
APR Platform Definitions.
apr_pool_t * p
Definition: apu_errno.h:169
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
struct apu_err_t apu_err_t