Apache2
apr_dbm.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 APR_DBM_H
18 #define APR_DBM_H
19 
20 #include "apu.h"
21 #include "apr.h"
22 #include "apr_errno.h"
23 #include "apu_errno.h"
24 #include "apr_pools.h"
25 #include "apr_file_info.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
43 typedef struct apr_dbm_driver_t apr_dbm_driver_t;
44 
48 typedef struct apr_dbm_t apr_dbm_t;
49 
53 typedef struct
54 {
56  char *dptr;
59 } apr_datum_t;
60 
61 /* modes to open the DB */
62 #define APR_DBM_READONLY 1
63 #define APR_DBM_READWRITE 2
64 #define APR_DBM_RWCREATE 3
65 #define APR_DBM_RWTRUNC 4
84  const char *name, const apu_err_t **result, apr_pool_t *pool);
85 
116  const char *name,
118  apr_pool_t *cntxt);
119 
138  const apr_dbm_driver_t *driver,
139  const char *name, apr_int32_t mode,
141 
160  apr_pool_t *cntxt);
161 
167 
175  apr_datum_t *pvalue);
183  apr_datum_t value);
184 
192 
199 
206 
213 
220 
231  char *errbuf, apr_size_t errbufsize);
247  const char *type,
248  const char *pathname,
249  const char **used1,
250  const char **used2);
251 
265  const char *pathname,
266  const char **used1,
267  const char **used2);
268 
270 #ifdef __cplusplus
271 }
272 #endif
273 
274 #endif /* !APR_DBM_H */
APR Platform Definitions.
APR Error Codes.
APR File Information.
APR memory allocation.
APR-Util Error Codes.
apr_status_t apr_dbm_store(apr_dbm_t *dbm, apr_datum_t key, apr_datum_t value)
void apr_dbm_get_usednames(apr_pool_t *pool, const char *pathname, const char **used1, const char **used2)
int apr_dbm_exists(apr_dbm_t *dbm, apr_datum_t key)
apr_status_t apr_dbm_delete(apr_dbm_t *dbm, apr_datum_t key)
char * apr_dbm_geterror(apr_dbm_t *dbm, int *errcode, char *errbuf, apr_size_t errbufsize)
apr_status_t apr_dbm_open2(apr_dbm_t **pdb, const apr_dbm_driver_t *driver, const char *name, apr_int32_t mode, apr_fileperms_t perm, apr_pool_t *pool)
apr_status_t apr_dbm_get_usednames_ex(apr_pool_t *pool, const char *type, const char *pathname, const char **used1, const char **used2)
apr_status_t apr_dbm_nextkey(apr_dbm_t *dbm, apr_datum_t *pkey)
void apr_dbm_close(apr_dbm_t *dbm)
apr_status_t apr_dbm_open(apr_dbm_t **dbm, const char *name, apr_int32_t mode, apr_fileperms_t perm, apr_pool_t *cntxt)
apr_status_t apr_dbm_get_driver(const apr_dbm_driver_t **driver, const char *name, const apu_err_t **result, apr_pool_t *pool)
apr_status_t apr_dbm_fetch(apr_dbm_t *dbm, apr_datum_t key, apr_datum_t *pvalue)
void apr_dbm_freedatum(apr_dbm_t *dbm, apr_datum_t data)
apr_status_t apr_dbm_firstkey(apr_dbm_t *dbm, apr_datum_t *pkey)
apr_status_t apr_dbm_open_ex(apr_dbm_t **dbm, const char *type, const char *name, apr_int32_t mode, apr_fileperms_t perm, apr_pool_t *cntxt)
apr_bucket_brigade ap_input_mode_t mode
Definition: mod_dav.h:2662
apr_bucket_brigade request_rec apr_pool_t * pool
Definition: mod_dav.h:557
const char * name
Definition: mod_dav.h:805
int apr_status_t
Definition: apr_errno.h:44
apr_int32_t apr_fileperms_t
Definition: apr_file_info.h:125
int apr_int32_t
Definition: apr.h:347
size_t apr_size_t
Definition: apr.h:394
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
#define APR_DECLARE(x)
Definition: macros.h:6
Definition: apr_dbm.h:54
apr_size_t dsize
Definition: apr_dbm.h:58
char * dptr
Definition: apr_dbm.h:56
Definition: apr_dbm_private.h:47
Definition: apr_dbm_private.h:94
int errcode
Definition: apr_dbm_private.h:102
const apr_dbm_driver_t * type
Definition: apr_dbm_private.h:107
Definition: apu_errno.h:169