Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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  */
39 AP_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 
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,
141  apr_int32_t flags,
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 */
size_t apr_size_t
Definition: apr.h:375
apr_status_t ap_regkey_value_remove(const ap_regkey_t *key, const char *valuename, apr_pool_t *pool)
apr_status_t ap_regkey_remove(const ap_regkey_t *parent, const char *keyname, apr_pool_t *pool)
Definition: apr_tables.h:62
apr_bucket_brigade request_rec apr_pool_t * pool
Definition: mod_dav.h:556
#define AP_DECLARE(x)
Definition: macros.h:1
struct ap_regkey_t ap_regkey_t
Definition: ap_regkey.h:35
const ap_regkey_t * ap_regkey_const(int i)
Symbol export macros and hook functions.
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_set(ap_regkey_t *key, const char *valuename, const char *value, apr_int32_t flags, apr_pool_t *pool)
APR memory allocation.
APR Platform Definitions.
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_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_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_open(ap_regkey_t **newkey, const ap_regkey_t *parentkey, const char *keyname, apr_int32_t flags, apr_pool_t *pool)
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
apr_status_t ap_regkey_value_get(char **result, ap_regkey_t *key, const char *valuename, apr_pool_t *pool)
int apr_status_t
Definition: apr_errno.h:44
apr_status_t ap_regkey_close(ap_regkey_t *key)
dav_resource int dav_locktoken dav_response int flags
Definition: mod_dav.h:1350
int apr_int32_t
Definition: apr.h:333