~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to include/ap_provider.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
17
/**
 
18
 * @file  ap_provider.h
 
19
 * @brief Apache Provider API
 
20
 *
 
21
 * @defgroup APACHE_CORE_PROVIDER Provider API
 
22
 * @ingroup  APACHE_CORE
 
23
 * @{
 
24
 */
 
25
 
 
26
#ifndef AP_PROVIDER_H
 
27
#define AP_PROVIDER_H
 
28
 
 
29
#include "ap_config.h"
 
30
 
 
31
typedef struct {
 
32
    const char *provider_name;
 
33
} ap_list_provider_names_t;
 
34
 
 
35
 
 
36
/**
 
37
 * This function is used to register a provider with the global
 
38
 * provider pool.
 
39
 * @param pool The pool to create any storage from
 
40
 * @param provider_group The group to store the provider in
 
41
 * @param provider_name The name for this provider
 
42
 * @param provider_version The version for this provider
 
43
 * @param provider Opaque structure for this provider
 
44
 * @return APR_SUCCESS if all went well
 
45
 */
 
46
AP_DECLARE(apr_status_t) ap_register_provider(apr_pool_t *pool,
 
47
                                              const char *provider_group,
 
48
                                              const char *provider_name,
 
49
                                              const char *provider_version,
 
50
                                              const void *provider);
 
51
 
 
52
/**
 
53
 * This function is used to retrieve a provider from the global
 
54
 * provider pool.
 
55
 * @param provider_group The group to look for this provider in
 
56
 * @param provider_name The name for the provider
 
57
 * @param provider_version The version for the provider
 
58
 * @return provider pointer to provider if found, NULL otherwise
 
59
 */
 
60
AP_DECLARE(void *) ap_lookup_provider(const char *provider_group,
 
61
                                      const char *provider_name,
 
62
                                      const char *provider_version);
 
63
 
 
64
/**
 
65
 * This function is used to retrieve a list (array) of provider
 
66
 * names from the specified group with the specified version.
 
67
 * @param pool The pool to create any storage from
 
68
 * @param provider_group The group to look for this provider in
 
69
 * @param provider_version The version for the provider
 
70
 * @return pointer to array of ap_list_provider_names_t of provider names (could be empty)
 
71
 */
 
72
 
 
73
AP_DECLARE(apr_array_header_t *) ap_list_provider_names(apr_pool_t *pool,
 
74
                                              const char *provider_group,
 
75
                                              const char *provider_version);
 
76
 
 
77
#endif
 
78
/** @} */