Apache2
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_
41 #define AP_SERF_CLUSTER_PROVIDER "serf_cluster"
42 typedef struct ap_serf_server_t ap_serf_server_t;
44  /* TODO: 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);
94  void (*server_success)(void *baton, request_rec *r, apr_table_t *params,
95  ap_serf_server_t* server);
102  void (*server_failure)(void *baton, request_rec *r, apr_table_t *params,
103  ap_serf_server_t* server);
104 
105 };
108 #endif /* _MOD_SERF_H_ */
109 
Apache Provider API.
request_rec * r
Definition: mod_dav.h:518
int
Definition: mod_proxy.h:674
apr_uint16_t apr_port_t
Definition: apr_network_io.h:230
struct apr_table_t apr_table_t
Definition: apr_tables.h:56
Apache Configuration.
HTTP Daemon routines.
Definition: mod_serf.h:50
const char * name
Definition: mod_serf.h:54
void * baton
Definition: mod_serf.h:60
void(* server_failure)(void *baton, request_rec *r, apr_table_t *params, ap_serf_server_t *server)
Definition: mod_serf.h:102
void(* server_success)(void *baton, request_rec *r, apr_table_t *params, ap_serf_server_t *server)
Definition: mod_serf.h:94
int(* list_servers)(void *baton, request_rec *r, apr_table_t *params, apr_array_header_t **servers)
Definition: mod_serf.h:84
Definition: mod_serf.h:43
apr_port_t port
Definition: mod_serf.h:46
const char * ip
Definition: mod_serf.h:45
Definition: apr_tables.h:62
Definition: http_config.h:288
A structure that represents the current request.
Definition: httpd.h:856