Apache HTTPD
apr_hash.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_HASH_H
18#define APR_HASH_H
19
25#include "apr_pools.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
47#define APR_HASH_KEY_STRING (-1)
48
52typedef struct apr_hash_t apr_hash_t;
53
58
65typedef unsigned int (*apr_hashfunc_t)(const char *key, apr_ssize_t *klen);
66
72
79
88
97 const apr_hash_t *h);
98
109 apr_ssize_t klen, const void *val);
110
118APR_DECLARE(void *) apr_hash_get(apr_hash_t *ht, const void *key,
120
149
157
167APR_DECLARE(void) apr_hash_this(apr_hash_index_t *hi, const void **key,
168 apr_ssize_t *klen, void **val);
169
176
183
190
197
203
216
234 void * (*merger)(apr_pool_t *p,
235 const void *key,
237 const void *h1_val,
238 const void *h2_val,
239 const void *data),
240 const void *data);
241
253typedef int (apr_hash_do_callback_fn_t)(void *rec, const void *key,
255 const void *value);
256
270 void *rec, const apr_hash_t *ht);
271
276
279#ifdef __cplusplus
280}
281#endif
282
283#endif /* !APR_HASH_H */
APR memory allocation.
#define hash(h, r, b, n)
Definition apr_random.c:51
apr_size_t size
const char int apr_pool_t * pool
Definition apr_cstr.h:84
const char * value
Definition apr_env.h:51
unsigned int(* apr_hashfunc_t)(const char *key, apr_ssize_t *klen)
Definition apr_hash.h:65
const apr_hash_t * h
Definition apr_hash.h:97
const apr_hash_t const apr_hash_t void *(* merger)(apr_pool_t *p, const void *key, apr_ssize_t klen, const void *h1_val, const void *h2_val, const void *data)
Definition apr_hash.h:234
apr_hash_t * ht
Definition apr_hash.h:148
apr_ssize_t * klen
Definition apr_hash.h:71
const void apr_ssize_t const void * val
Definition apr_hash.h:109
const void * key
Definition apr_hash.h:108
const apr_hash_t * h1
Definition apr_hash.h:232
APR_DECLARE(void) apr_hash_set(apr_hash_t *ht
Definition apr_pools.h:646
apr_hashfunc_t hash_func
Definition apr_hash.h:87
const apr_hash_t * overlay
Definition apr_hash.h:214
const apr_hash_t const apr_hash_t void *(*) const void data)
Definition apr_hash.h:240
void * rec
Definition apr_hash.h:270
const apr_hash_t const apr_hash_t * h2
Definition apr_hash.h:233
const apr_hash_t const apr_hash_t * base
Definition apr_hash.h:215
int() apr_hash_do_callback_fn_t(void *rec, const void *key, apr_ssize_t klen, const void *value)
Definition apr_hash.h:253
APR_DECLARE_NONSTD(void) apr_terminate(void)
Definition start.c:173
#define APR_POOL_DECLARE_ACCESSOR(type)
Definition apr_pools.h:81
void apr_skiplistnode apr_skiplist_compare comp
apr_pool_t * p
Definition md_event.c:32
typedef int(WSAAPI *apr_winapi_fpt_WSAPoll)(IN OUT LPWSAPOLLFD fdArray