]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/apachemods/apachetools.h
added a header file for the gateway
[working/Evergreen.git] / Open-ILS / src / apachemods / apachetools.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 #include "string_array.h"
9 #include "utils.h"
10
11 #ifndef APACHE_TOOLS_H
12 #define APACHE_TOOLS_H
13
14
15 /* parses apache URL params (GET and POST).  
16         Returns a string_array of the form [ key, val, key, val, ...]
17         Returns NULL if there are no params */
18 string_array* apacheParseParms(request_rec* r);
19
20 /* provide the params string array, and this will generate a 
21         string of array of param keys 
22         the returned string_array most be freed by the caller
23         */
24 string_array* apacheGetParamKeys(string_array* params);
25
26 /* provide the params string array and a key name, and 
27         this will provide the value found for that key 
28         the returned string_array most be freed by the caller
29         */
30 string_array* apacheGetParamValues(string_array* params, char* key);
31
32 /* returns the first value found for the given param.  
33         char* must be freed by the caller */
34 char* apacheGetFirstParamValue(string_array* params, char* key);
35
36
37 #endif