GME
13
|
00001 /* Licensed to the Apache Software Foundation (ASF) under one or more 00002 * contributor license agreements. See the NOTICE file distributed with 00003 * this work for additional information regarding copyright ownership. 00004 * The ASF licenses this file to You under the Apache License, Version 2.0 00005 * (the "License"); you may not use this file except in compliance with 00006 * the License. You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 #ifndef APU_ERRNO_H 00018 #define APU_ERRNO_H 00019 00025 #include "apr.h" 00026 #include "apr_errno.h" 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif /* __cplusplus */ 00031 00063 #define APR_ENOKEY (APR_UTIL_START_STATUS + 1) 00064 00065 #define APR_ENOIV (APR_UTIL_START_STATUS + 2) 00066 00067 #define APR_EKEYTYPE (APR_UTIL_START_STATUS + 3) 00068 00069 #define APR_ENOSPACE (APR_UTIL_START_STATUS + 4) 00070 00071 #define APR_ECRYPT (APR_UTIL_START_STATUS + 5) 00072 00073 #define APR_EPADDING (APR_UTIL_START_STATUS + 6) 00074 00075 #define APR_EKEYLENGTH (APR_UTIL_START_STATUS + 7) 00076 00077 #define APR_ENOCIPHER (APR_UTIL_START_STATUS + 8) 00078 00079 #define APR_ENODIGEST (APR_UTIL_START_STATUS + 9) 00080 00081 #define APR_ENOENGINE (APR_UTIL_START_STATUS + 10) 00082 00083 #define APR_EINITENGINE (APR_UTIL_START_STATUS + 11) 00084 00085 #define APR_EREINIT (APR_UTIL_START_STATUS + 12) 00086 00109 #define APR_STATUS_IS_ENOKEY(s) ((s) == APR_ENOKEY) 00110 00113 #define APR_STATUS_IS_ENOIV(s) ((s) == APR_ENOIV) 00114 00117 #define APR_STATUS_IS_EKEYTYPE(s) ((s) == APR_EKEYTYPE) 00118 00121 #define APR_STATUS_IS_ENOSPACE(s) ((s) == APR_ENOSPACE) 00122 00125 #define APR_STATUS_IS_ECRYPT(s) ((s) == APR_ECRYPT) 00126 00129 #define APR_STATUS_IS_EPADDING(s) ((s) == APR_EPADDING) 00130 00133 #define APR_STATUS_IS_EKEYLENGTH(s) ((s) == APR_EKEYLENGTH) 00134 00137 #define APR_STATUS_IS_ENOCIPHER(s) ((s) == APR_ENOCIPHER) 00138 00141 #define APR_STATUS_IS_ENODIGEST(s) ((s) == APR_ENODIGEST) 00142 00145 #define APR_STATUS_IS_ENOENGINE(s) ((s) == APR_ENOENGINE) 00146 00149 #define APR_STATUS_IS_EINITENGINE(s) ((s) == APR_EINITENGINE) 00150 00153 #define APR_STATUS_IS_EREINIT(s) ((s) == APR_EREINIT) 00154 00161 typedef struct apu_err_t { 00162 const char *reason; 00163 const char *msg; 00164 int rc; 00165 } apu_err_t; 00166 00169 #ifdef __cplusplus 00170 } 00171 #endif 00172 00173 #endif /* ! APU_ERRNO_H */