Skip to content
This repository
Newer
Older
100644 81 lines (63 sloc) 2.461 kb
352fd272 »
2008-11-02 git-svn-id: svn://cherokee-project.com/cherokee/trunk@2289 5dc97367-9…
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 *
920e20bc »
2011-01-14 Happy new year!
8 * Copyright (C) 2001-2011 Alvaro Lopez Ortega
352fd272 »
2008-11-02 git-svn-id: svn://cherokee-project.com/cherokee/trunk@2289 5dc97367-9…
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
2c390923 »
2009-01-02 git-svn-id: svn://cherokee-project.com/cherokee/trunk@2660 5dc97367-9…
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 * 02110-1301, USA.
72f64441 »
2009-12-13 Clean up: Trims trailing spaces.
23 */
352fd272 »
2008-11-02 git-svn-id: svn://cherokee-project.com/cherokee/trunk@2289 5dc97367-9…
24
25 #ifndef CHEROKEE_HANDLER_SSI_H
26 #define CHEROKEE_HANDLER_SSI_H
27
28 #include "common-internal.h"
29
30 #include <sys/types.h>
31 #include <sys/stat.h>
32 #include <unistd.h>
33 #include <fcntl.h>
34
35 #include "buffer.h"
36 #include "handler.h"
37 #include "connection.h"
38 #include "mime.h"
39 #include "plugin_loader.h"
40
41 /* Data types
42 */
43 typedef struct {
a594aaaf »
2010-04-15 Addresses a memory initialization issue. Some handlers property
44 cherokee_handler_props_t base;
45 int foo;
352fd272 »
2008-11-02 git-svn-id: svn://cherokee-project.com/cherokee/trunk@2289 5dc97367-9…
46 } cherokee_handler_ssi_props_t;
47
48
49 typedef struct {
50 cherokee_handler_t handler;
72f64441 »
2009-12-13 Clean up: Trims trailing spaces.
51
352fd272 »
2008-11-02 git-svn-id: svn://cherokee-project.com/cherokee/trunk@2289 5dc97367-9…
52 cherokee_mime_entry_t *mime;
72f64441 »
2009-12-13 Clean up: Trims trailing spaces.
53 struct stat cache_info;
352fd272 »
2008-11-02 git-svn-id: svn://cherokee-project.com/cherokee/trunk@2289 5dc97367-9…
54 cherokee_buffer_t dir;
55
56 cherokee_buffer_t source;
57 cherokee_buffer_t render;
58 } cherokee_handler_ssi_t;
59
60
61 #define PROP_SSI(x) ((cherokee_handler_ssi_props_t *)(x))
62 #define HDL_SSI(x) ((cherokee_handler_ssi_t *)(x))
63 #define HDL_SSI_PROP(x) (PROP_SSI(MODULE(x)->props))
64
65
66 /* Library init function
67 */
68 void PLUGIN_INIT_NAME(ssi) (cherokee_plugin_loader_t *loader);
69
70 ret_t cherokee_handler_ssi_new (cherokee_handler_t **hdl, cherokee_connection_t *cnt, cherokee_module_props_t *props);
71 ret_t cherokee_handler_ssi_configure (cherokee_config_node_t *conf, cherokee_server_t *srv, cherokee_module_props_t **_props);
72
73 /* Virtual methods
74 */
75 ret_t cherokee_handler_ssi_init (cherokee_handler_ssi_t *hdl);
76 ret_t cherokee_handler_ssi_free (cherokee_handler_ssi_t *hdl);
77 ret_t cherokee_handler_ssi_step (cherokee_handler_ssi_t *hdl, cherokee_buffer_t *buffer);
78 ret_t cherokee_handler_ssi_add_headers (cherokee_handler_ssi_t *hdl, cherokee_buffer_t *buffer);
72f64441 »
2009-12-13 Clean up: Trims trailing spaces.
79
352fd272 »
2008-11-02 git-svn-id: svn://cherokee-project.com/cherokee/trunk@2289 5dc97367-9…
80 #endif /* CHEROKEE_HANDLER_SSI_H */
Something went wrong with that request. Please try again.