]> err.no Git - sope/blob - sope-appserver/mod_ngobjweb/ngobjweb_module.c
added strict OSX bundle dependencies
[sope] / sope-appserver / mod_ngobjweb / ngobjweb_module.c
1 /*
2   Copyright (C) 2000-2005 SKYRIX Software AG
3
4   This file is part of SOPE.
5
6   SOPE is free software; you can redistribute it and/or modify it under
7   the terms of the GNU Lesser General Public License as published by the
8   Free Software Foundation; either version 2, or (at your option) any
9   later version.
10
11   SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
12   WARRANTY; without even the implied warranty of MERCHANTABILITY or
13   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
14   License for more details.
15
16   You should have received a copy of the GNU Lesser General Public
17   License along with SOPE; see the file COPYING.  If not, write to the
18   Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19   02111-1307, USA.
20 */
21
22 #include "common.h"
23
24 static command_rec ngobjweb_cmds[] = {
25   {
26     "SetSNSPort",
27     ngobjweb_set_sns_port,
28     NULL,
29     OR_FILEINFO,
30     TAKE1,
31     "the path of the Unix domain address to use (eg /tmp/.snsd)"
32   },
33   {
34     "SetAppPort",
35     ngobjweb_set_app_port,
36     NULL,
37     OR_FILEINFO,
38     TAKE1,
39     "the path of the Unix domain address to use (eg /tmp/.snsd)"
40   },
41   {
42     "SetAppPrefix",
43     ngobjweb_set_app_prefix,
44     NULL,
45     OR_FILEINFO,
46     TAKE1,
47     "any prefix that is before the app name (eg /MyDir with /MyDir/MyApp.woa)"
48   },
49   {
50     "SNSUseHTTP",
51     ngobjweb_set_use_http,
52     NULL,
53     OR_FILEINFO,
54     0,
55     "use HTTP protocol to query snsd (on,off) ?"
56   },
57   { NULL }
58 };
59
60 #ifdef AP_VERSION_1
61 static handler_rec ngobjweb_handlers[] = {
62   { "ngobjweb-adaptor", ngobjweb_handler },
63   { NULL }
64 };
65
66 static void ngobjweb_init(server_rec *_server, pool *_pool) {
67 }
68
69 module ngobjweb_module = {
70   STANDARD_MODULE_STUFF,
71   ngobjweb_init,              /* initializer */
72   ngobjweb_create_dir_config, /* dir config creater */
73   ngobjweb_merge_dir_configs, /* dir merger --- default is to override */
74   NULL,                       /* server config */
75   NULL,                       /* merge server config */
76   ngobjweb_cmds,              /* command table */
77   ngobjweb_handlers,          /* handlers */
78   NULL,                       /* filename translation */ 
79   NULL,                       /* check_user_id */
80   NULL,                       /* check auth */
81   NULL,                       /* check access */
82   NULL,                       /* type_checker */
83   NULL,                       /* fixups */
84   NULL,                       /* logger */
85   NULL                        /* header parser */
86 };
87 #else
88 static void ngobjweb_register_hooks(apr_pool_t *p) {
89   ap_hook_handler(ngobjweb_handler, NULL, NULL, APR_HOOK_LAST);
90 }
91
92 module AP_MODULE_DECLARE_DATA ngobjweb_module = {
93   STANDARD20_MODULE_STUFF,
94   ngobjweb_create_dir_config,  /* create per-directory config structures */
95   ngobjweb_merge_dir_configs,  /* merge per-directory config structures  */
96   NULL,                        /* create per-server config structures    */
97   NULL,                        /* merge per-server config structures     */
98   ngobjweb_cmds,               /* command handlers */
99   ngobjweb_register_hooks      /* register hooks */
100 };
101 #endif
102