Apache2
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
32 extern "C" {
33 #endif
34 
35 typedef struct ap_regkey_t ap_regkey_t;
36 
37 /* Used to recover AP_REGKEY_* constants
38  */
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 
81  const ap_regkey_t *parentkey,
82  const char *keyname,
84  apr_pool_t *pool);
85 
91 
111  const char *keyname,
112  apr_pool_t *pool);
113 
125  ap_regkey_t *key,
126  const char *valuename,
127  apr_pool_t *pool);
128 
139  const char *valuename,
140  const char *value,
142  apr_pool_t *pool);
143 
154  apr_size_t *resultsize,
155  apr_int32_t *resulttype,
156  ap_regkey_t *key,
157  const char *valuename,
158  apr_pool_t *pool);
159 
171  const char *valuename,
172  const void *value,
173  apr_size_t valuesize,
174  apr_int32_t valuetype,
175  apr_pool_t *pool);
176 
185  ap_regkey_t *key,
186  const char *valuename,
187  apr_pool_t *pool);
188 
198  const char *valuename,
199  int nelts,
200  const char * const * elts,
201  apr_pool_t *pool);
202 
210  const char *valuename,
211  apr_pool_t *pool);
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.
apr_status_t ap_regkey_value_get(char **result, ap_regkey_t *key, const char *valuename, apr_pool_t *pool)
const ap_regkey_t * ap_regkey_const(int i)
apr_status_t ap_regkey_value_set(ap_regkey_t *key, const char *valuename, const char *value, apr_int32_t flags, apr_pool_t *pool)
struct ap_regkey_t ap_regkey_t
Definition: ap_regkey.h:35
apr_status_t ap_regkey_value_remove(const ap_regkey_t *key, const char *valuename, apr_pool_t *pool)
apr_status_t ap_regkey_value_raw_set(ap_regkey_t *key, const char *valuename, const void *value, apr_size_t valuesize, apr_int32_t valuetype, apr_pool_t *pool)
apr_status_t ap_regkey_value_array_set(ap_regkey_t *key, const char *valuename, int nelts, const char *const *elts, apr_pool_t *pool)
apr_status_t ap_regkey_remove(const ap_regkey_t *parent, const char *keyname, apr_pool_t *pool)
apr_status_t ap_regkey_open(ap_regkey_t **newkey, const ap_regkey_t *parentkey, const char *keyname, apr_int32_t flags, apr_pool_t *pool)
apr_status_t ap_regkey_value_array_get(apr_array_header_t **result, ap_regkey_t *key, const char *valuename, apr_pool_t *pool)
apr_status_t ap_regkey_value_raw_get(void **result, apr_size_t *resultsize, apr_int32_t *resulttype, ap_regkey_t *key, const char *valuename, apr_pool_t *pool)
apr_status_t ap_regkey_close(ap_regkey_t *key)
APR Platform Definitions.
APR memory allocation.
dav_resource int dav_locktoken dav_response int flags
Definition: mod_dav.h:1458
apr_bucket_brigade request_rec apr_pool_t * pool
Definition: mod_dav.h:557
int apr_status_t
Definition: apr_errno.h:44
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 AP_DECLARE(x)
Definition: macros.h:1
Definition: apr_tables.h:62