Apache HTTPD
ap_regkey.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
22#ifndef AP_REGKEY_H
23#define AP_REGKEY_H
24
25#if defined(WIN32) || defined(DOXYGEN)
26
27#include "apr.h"
28#include "apr_pools.h"
29#include "ap_config.h" /* Just for AP_DECLARE */
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35typedef struct ap_regkey_t ap_regkey_t;
36
37/* Used to recover AP_REGKEY_* constants
38 */
39AP_DECLARE(const ap_regkey_t *) ap_regkey_const(int i);
40
44#define AP_REGKEY_CLASSES_ROOT ap_regkey_const(0)
45#define AP_REGKEY_CURRENT_CONFIG ap_regkey_const(1)
46#define AP_REGKEY_CURRENT_USER ap_regkey_const(2)
47#define AP_REGKEY_LOCAL_MACHINE ap_regkey_const(3)
48#define AP_REGKEY_USERS ap_regkey_const(4)
49#define AP_REGKEY_PERFORMANCE_DATA ap_regkey_const(5)
50#define AP_REGKEY_DYN_DATA ap_regkey_const(6)
51
55#define AP_REGKEY_EXPAND 0x0001
56
80AP_DECLARE(apr_status_t) ap_regkey_open(ap_regkey_t **newkey,
81 const ap_regkey_t *parentkey,
82 const char *keyname,
83 apr_int32_t flags,
85
90AP_DECLARE(apr_status_t) ap_regkey_close(ap_regkey_t *key);
91
110AP_DECLARE(apr_status_t) ap_regkey_remove(const ap_regkey_t *parent,
111 const char *keyname,
113
124AP_DECLARE(apr_status_t) ap_regkey_value_get(char **result,
125 ap_regkey_t *key,
126 const char *valuename,
128
138AP_DECLARE(apr_status_t) ap_regkey_value_set(ap_regkey_t *key,
139 const char *valuename,
140 const char *value,
141 apr_int32_t flags,
143
153AP_DECLARE(apr_status_t) ap_regkey_value_raw_get(void **result,
154 apr_size_t *resultsize,
155 apr_int32_t *resulttype,
156 ap_regkey_t *key,
157 const char *valuename,
159
170AP_DECLARE(apr_status_t) ap_regkey_value_raw_set(ap_regkey_t *key,
171 const char *valuename,
172 const void *value,
173 apr_size_t valuesize,
174 apr_int32_t valuetype,
176
184AP_DECLARE(apr_status_t) ap_regkey_value_array_get(apr_array_header_t **result,
185 ap_regkey_t *key,
186 const char *valuename,
188
197AP_DECLARE(apr_status_t) ap_regkey_value_array_set(ap_regkey_t *key,
198 const char *valuename,
199 int nelts,
200 const char * const * elts,
202
209AP_DECLARE(apr_status_t) ap_regkey_value_remove(const ap_regkey_t *key,
210 const char *valuename,
212
213#ifdef __cplusplus
214}
215#endif
216
217#endif /* def WIN32 || def DOXYGEN */
218
219#endif /* AP_REGKEY_H */
Symbol export macros and hook functions.
#define AP_DECLARE(type)
Definition ap_config.h:67
APR memory allocation.
const char apr_ssize_t int flags
Definition apr_encode.h:168
const char int apr_pool_t * pool
Definition apr_cstr.h:84
const char * value
Definition apr_env.h:51
int apr_status_t
Definition apr_errno.h:44
const char * key
apr_array_header_t ** result
apr_pool_t * parent
Definition apr_pools.h:197
int nelts
Definition apr_tables.h:122
int i
Definition mod_so.c:347