]> git.evergreen-ils.org Git - Evergreen.git/blob - OpenSRF/src/gateway/mod_ils_gateway.h
0c5272e131ddc4a617587ce439dcd6a914be1a95
[Evergreen.git] / OpenSRF / src / gateway / mod_ils_gateway.h
1 #include "httpd.h"
2 #include "http_config.h"
3 #include "http_core.h"
4 #include "http_protocol.h"
5 #include "apr_compat.h"
6 #include "apr_strings.h"
7
8 /* our stuff */
9 #include "opensrf/transport_client.h"
10 #include "opensrf/osrf_message.h"
11 #include "opensrf/osrf_app_session.h"
12 #include "string_array.h"
13 #include "md5.h"
14 #include "objson/object.h"
15 #include "objson/json_parser.h"
16
17 #ifdef RESTGATEWAY
18 #include "rest_xml.h"
19 #define GATEWAY_CONFIG "ILSRestGatewayConfig"
20 #define MODULE_NAME "ils_rest_gateway_module"
21 #define CONFIG_CONTEXT "rest_gateway"
22
23 #else
24 #define MODULE_NAME "ils_gateway_module"
25 #define GATEWAY_CONFIG "ILSGatewayConfig"
26 #define CONFIG_CONTEXT "gateway"
27 #endif
28
29 #define GATEWAY_DEFAULT_CONFIG "/openils/conf/opensrf_core.xml"
30
31
32 /* our config structure */
33 typedef struct { 
34         char* configfile;  /* our bootstrap config file */
35 } ils_gateway_config;
36
37 #ifdef RESTGATEWAY
38 module AP_MODULE_DECLARE_DATA ils_rest_gateway_module;
39 #else 
40 module AP_MODULE_DECLARE_DATA ils_gateway_module;
41 #endif
42