1 /* Copyright 2002-2004 The Apache Software Foundation
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
19 #include "ap_config.h"
22 * @package Provider API
26 * This function is used to register a provider with the global
28 * @param pool The pool to create any storage from
29 * @param provider_group The group to store the provider in
30 * @param provider_name The name for this provider
31 * @param provider_version The version for this provider
32 * @param provider Opaque structure for this provider
33 * @return APR_SUCCESS if all went well
35 AP_DECLARE(apr_status_t) ap_register_provider(apr_pool_t *pool,
36 const char *provider_group,
37 const char *provider_name,
38 const char *provider_version,
39 const void *provider);
42 * This function is used to retrieve a provider from the global
44 * @param provider_group The group to look for this provider in
45 * @param provider_name The name for the provider
46 * @param provider_version The version for the provider
47 * @return provider pointer to provider if found, NULL otherwise
49 AP_DECLARE(void *) ap_lookup_provider(const char *provider_group,
50 const char *provider_name,
51 const char *provider_version);