Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 69 lines (55 sloc) 2.143 kb
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
3 /* Cherokee
4 *
5 * Authors:
6 * Alvaro Lopez Ortega <alvaro@alobbs.com>
7 *
920e20b @alobbs Happy new year!
alobbs authored
8 * Copyright (C) 2001-2011 Alvaro Lopez Ortega
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of version 2 of the GNU General Public
12 * License as published by the Free Software Foundation.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
2c39092 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@2660 5dc97367-97f1...
alobbs authored
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 * 02110-1301, USA.
72f6444 @alobbs Clean up: Trims trailing spaces.
alobbs authored
23 */
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
24
25 #ifndef CHEROKEE_HANDLER_SCGI_H
26 #define CHEROKEE_HANDLER_SCGI_H
27
28 #include "common-internal.h"
29
30 #include "handler.h"
31 #include "buffer.h"
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97f1-...
alobbs authored
32 #include "plugin_loader.h"
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
33 #include "socket.h"
34 #include "handler_cgi_base.h"
7b0e48a @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@387 5dc97367-97f1-...
alobbs authored
35 #include "balancer.h"
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
36
37
38 typedef struct {
3509796 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@282 5dc97367-97f1-...
alobbs authored
39 cherokee_handler_cgi_base_t base;
ee8023f @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@384 5dc97367-97f1-...
alobbs authored
40 cherokee_list_t scgi_env_ref;
7b0e48a @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@387 5dc97367-97f1-...
alobbs authored
41 cherokee_balancer_t *balancer;
3509796 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@282 5dc97367-97f1-...
alobbs authored
42 } cherokee_handler_scgi_props_t;
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
43
44
3509796 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@282 5dc97367-97f1-...
alobbs authored
45 typedef struct {
46 cherokee_handler_cgi_base_t base;
47 cherokee_buffer_t header;
7b0e48a @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@387 5dc97367-97f1-...
alobbs authored
48 cherokee_socket_t socket;
a18b345 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1708 5dc97367-97f1...
alobbs authored
49 cherokee_source_t *src_ref;
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
50 } cherokee_handler_scgi_t;
51
a18b345 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1708 5dc97367-97f1...
alobbs authored
52 #define HDL_SCGI(x) ((cherokee_handler_scgi_t *)(x))
53 #define PROP_SCGI(x) ((cherokee_handler_scgi_props_t *)(x))
54 #define HANDLER_SCGI_PROPS(x) (PROP_SCGI(MODULE(x)->props))
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
55
72f6444 @alobbs Clean up: Trims trailing spaces.
alobbs authored
56
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
57 /* Library init function
58 */
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97f1-...
alobbs authored
59 void PLUGIN_INIT_NAME(scgi) (cherokee_plugin_loader_t *loader);
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
60
61 /* Methods
62 */
475ecb2 @alobbs The POST management code has been rewritten from scratch. The new
alobbs authored
63 ret_t cherokee_handler_scgi_new (cherokee_handler_t **hdl, void *cnt, cherokee_module_props_t *props);
64 ret_t cherokee_handler_scgi_free (cherokee_handler_scgi_t *hdl);
65 ret_t cherokee_handler_scgi_init (cherokee_handler_scgi_t *hdl);
66 ret_t cherokee_handler_scgi_read_post (cherokee_handler_scgi_t *hdl);
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97f1-...
alobbs authored
67
fe68099 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@1478 5dc97367-97f1...
alobbs authored
68 #endif /* CHEROKEE_HANDLER_SCGI_H */
Something went wrong with that request. Please try again.