Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mod_serf.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 
17 
24 #include "httpd.h"
25 #include "http_config.h"
26 #if !defined(WIN32) && !defined(NETWARE)
27 #include "ap_config_auto.h"
28 #endif
29 #ifdef HAVE_SERF
30 #include "serf.h"
31 #endif
32 
33 #include "ap_provider.h"
34 
35 #ifndef _MOD_SERF_H_
36 #define _MOD_SERF_H_
37 
41 #define AP_SERF_CLUSTER_PROVIDER "serf_cluster"
44  /* TOOD: consider using apr_sockaddr_t, except they suck. */
45  const char *ip;
47 };
48 
54  const char *name;
60  void *baton;
70  const char* (*check_config)(void *baton,
71  cmd_parms *cmd,
72  apr_table_t *params);
85  request_rec *r,
86  apr_table_t *params,
87  apr_array_header_t **servers);
95  ap_serf_server_t* server);
103  ap_serf_server_t* server);
104 
105 };
108 #endif /* _MOD_SERF_H_ */
109 
void(* server_failure)(void *baton, request_rec *r, apr_table_t *params, ap_serf_server_t *server)
Definition: mod_serf.h:102
Apache Configuration.
Definition: apr_tables.h:62
apr_port_t port
Definition: mod_serf.h:46
Apache Provider API.
void * baton
Definition: mod_serf.h:60
Definition: mod_serf.h:50
Definition: http_config.h:295
HTTP Daemon routines.
int
Definition: mod_proxy.h:617
const char * ip
Definition: mod_serf.h:45
A structure that represents the current request.
Definition: httpd.h:805
Definition: mod_serf.h:43
struct apr_table_t apr_table_t
Definition: apr_tables.h:56
typedef void(APR_THREAD_FUNC *PFN_HSE_IO_COMPLETION)(EXTENSION_CONTROL_BLOCK *ecb
int(* list_servers)(void *baton, request_rec *r, apr_table_t *params, apr_array_header_t **servers)
Definition: mod_serf.h:84
request_rec * r
Definition: mod_dav.h:519
const char * name
Definition: mod_serf.h:54
apr_uint16_t apr_port_t
Definition: apr_network_io.h:257
void(* server_success)(void *baton, request_rec *r, apr_table_t *params, ap_serf_server_t *server)
Definition: mod_serf.h:94