]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/apachemods/mod_xmltools.h
75a00f82920012a55a33425386c42643ed2d1839
[working/Evergreen.git] / Open-ILS / src / apachemods / mod_xmltools.h
1 #include "apachetools.h"
2 #include "xmltools.h"
3
4 #define MODULE_NAME             "mod_xmltools" /* our module name */
5 #define PARAM_LOCALE            "locale"                        /* the URL param for the local directory */
6 #define LANG_DTD                        "lang.dtd"              /* the DTD for the test entities */
7
8
9
10 /* ------------------------------------------------------------------------------ */
11 /* Apache config items.  These are defaults which are only  used if they are not
12         overriden by the Apache config or URL where appropriate */
13 /* ------------------------------------------------------------------------------ */
14 /* The default directory where the local files are stored */
15 #define DEFAULT_LOCALE_DIR              "/openils/var/locale"
16 #define DEFAULT_LOCALE                  "en-US"                 
17 /* ------------------------------------------------------------------------------ */
18
19
20 /* This module */
21 module AP_MODULE_DECLARE_DATA mod_xmltools;
22
23
24 /* our config structure */
25 typedef struct {
26         /* directory on disk where the locale directories live */
27         char* locale_dir;
28         char* default_locale;
29 } mod_xmltools_config;
30
31
32
33 /* allocates a char* to hold the name of the DTD language file 
34         Prints to stderr and returns NULL if there was an error loading the file 
35         default_locale comes from the apache config and is used only if no 
36         locale is provided via URL 
37         locale_dir also comes from the apache config.
38         */
39 char* get_dtd_lang_file(string_array* params, char* default_locale, char* locale_dir);