|
Packit |
90a5c9 |
/* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
Packit |
90a5c9 |
* contributor license agreements. See the NOTICE file distributed with
|
|
Packit |
90a5c9 |
* this work for additional information regarding copyright ownership.
|
|
Packit |
90a5c9 |
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
Packit |
90a5c9 |
* (the "License"); you may not use this file except in compliance with
|
|
Packit |
90a5c9 |
* the License. You may obtain a copy of the License at
|
|
Packit |
90a5c9 |
*
|
|
Packit |
90a5c9 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
Packit |
90a5c9 |
*
|
|
Packit |
90a5c9 |
* Unless required by applicable law or agreed to in writing, software
|
|
Packit |
90a5c9 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
Packit |
90a5c9 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
Packit |
90a5c9 |
* See the License for the specific language governing permissions and
|
|
Packit |
90a5c9 |
* limitations under the License.
|
|
Packit |
90a5c9 |
*/
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
/**
|
|
Packit |
90a5c9 |
* @file ap_provider.h
|
|
Packit |
90a5c9 |
* @brief Apache Provider API
|
|
Packit |
90a5c9 |
*
|
|
Packit |
90a5c9 |
* @defgroup APACHE_CORE_PROVIDER Provider API
|
|
Packit |
90a5c9 |
* @ingroup APACHE_CORE
|
|
Packit |
90a5c9 |
* @{
|
|
Packit |
90a5c9 |
*/
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#ifndef AP_PROVIDER_H
|
|
Packit |
90a5c9 |
#define AP_PROVIDER_H
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#include "ap_config.h"
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#ifdef __cplusplus
|
|
Packit |
90a5c9 |
extern "C" {
|
|
Packit |
90a5c9 |
#endif
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
typedef struct {
|
|
Packit |
90a5c9 |
const char *provider_name;
|
|
Packit |
90a5c9 |
} ap_list_provider_names_t;
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
typedef struct {
|
|
Packit |
90a5c9 |
const char *provider_group;
|
|
Packit |
90a5c9 |
const char *provider_version;
|
|
Packit |
90a5c9 |
} ap_list_provider_groups_t;
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
/**
|
|
Packit |
90a5c9 |
* This function is used to register a provider with the global
|
|
Packit |
90a5c9 |
* provider pool.
|
|
Packit |
90a5c9 |
* @param pool The pool to create any storage from
|
|
Packit |
90a5c9 |
* @param provider_group The group to store the provider in
|
|
Packit |
90a5c9 |
* @param provider_name The name for this provider
|
|
Packit |
90a5c9 |
* @param provider_version The version for this provider
|
|
Packit |
90a5c9 |
* @param provider Opaque structure for this provider
|
|
Packit |
90a5c9 |
* @return APR_SUCCESS if all went well
|
|
Packit |
90a5c9 |
*/
|
|
Packit |
90a5c9 |
AP_DECLARE(apr_status_t) ap_register_provider(apr_pool_t *pool,
|
|
Packit |
90a5c9 |
const char *provider_group,
|
|
Packit |
90a5c9 |
const char *provider_name,
|
|
Packit |
90a5c9 |
const char *provider_version,
|
|
Packit |
90a5c9 |
const void *provider);
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
/**
|
|
Packit |
90a5c9 |
* This function is used to retrieve a provider from the global
|
|
Packit |
90a5c9 |
* provider pool.
|
|
Packit |
90a5c9 |
* @param provider_group The group to look for this provider in
|
|
Packit |
90a5c9 |
* @param provider_name The name for the provider
|
|
Packit |
90a5c9 |
* @param provider_version The version for the provider
|
|
Packit |
90a5c9 |
* @return provider pointer to provider if found, NULL otherwise
|
|
Packit |
90a5c9 |
*/
|
|
Packit |
90a5c9 |
AP_DECLARE(void *) ap_lookup_provider(const char *provider_group,
|
|
Packit |
90a5c9 |
const char *provider_name,
|
|
Packit |
90a5c9 |
const char *provider_version);
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
/**
|
|
Packit |
90a5c9 |
* This function is used to retrieve a list (array) of provider
|
|
Packit |
90a5c9 |
* names from the specified group with the specified version.
|
|
Packit |
90a5c9 |
* @param pool The pool to create any storage from
|
|
Packit |
90a5c9 |
* @param provider_group The group to look for this provider in
|
|
Packit |
90a5c9 |
* @param provider_version The version for the provider
|
|
Packit |
90a5c9 |
* @return pointer to array of ap_list_provider_names_t of provider names (could be empty)
|
|
Packit |
90a5c9 |
*/
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
AP_DECLARE(apr_array_header_t *) ap_list_provider_names(apr_pool_t *pool,
|
|
Packit |
90a5c9 |
const char *provider_group,
|
|
Packit |
90a5c9 |
const char *provider_version);
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
/**
|
|
Packit |
90a5c9 |
* This function is used to retrieve a list (array) of provider groups and versions
|
|
Packit |
90a5c9 |
* @param pool The pool to create any storage from
|
|
Packit |
90a5c9 |
* @return pointer to array of ap_list_provider_groups_t of provider groups
|
|
Packit |
90a5c9 |
* and versions (could be empty)
|
|
Packit |
90a5c9 |
*/
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
AP_DECLARE(apr_array_header_t *) ap_list_provider_groups(apr_pool_t *pool);
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#ifdef __cplusplus
|
|
Packit |
90a5c9 |
}
|
|
Packit |
90a5c9 |
#endif
|
|
Packit |
90a5c9 |
|
|
Packit |
90a5c9 |
#endif
|
|
Packit |
90a5c9 |
/** @} */
|