Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 49 lines (38 sloc) 1.741 kb
4659a29 Alvaro Lopez Ortega git-svn-id: svn://cherokee-project.com/cherokee/trunk@1887 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 Alvaro Lopez Ortega Happy new year!
alobbs authored
8 * Copyright (C) 2001-2011 Alvaro Lopez Ortega
4659a29 Alvaro Lopez Ortega git-svn-id: svn://cherokee-project.com/cherokee/trunk@1887 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 Alvaro Lopez Ortega 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 Alvaro Lopez Ortega Clean up: Trims trailing spaces.
alobbs authored
23 */
4659a29 Alvaro Lopez Ortega git-svn-id: svn://cherokee-project.com/cherokee/trunk@1887 5dc97367-97f1...
alobbs authored
24
25 #ifndef CHEROKEE_HANDLER_CUSTOM_ERROR_H
26 #define CHEROKEE_HANDLER_CUSTOM_ERROR_H
27
28 #include "handler_file.h"
29 #include "handler_dirlist.h"
30
31
32 typedef struct {
a594aaa Alvaro Lopez Ortega Addresses a memory initialization issue. Some handlers property
alobbs authored
33 cherokee_handler_props_t base;
4659a29 Alvaro Lopez Ortega git-svn-id: svn://cherokee-project.com/cherokee/trunk@1887 5dc97367-97f1...
alobbs authored
34 cherokee_http_t error_code;
35 } cherokee_handler_custom_error_props_t;
36
37 #define PROP_CUSTOM_ERROR(x) ((cherokee_handler_custom_error_props_t *)(x))
38
39
40 /* Library init function
41 */
42 void PLUGIN_INIT_NAME(custom_error) (cherokee_plugin_loader_t *loader);
43
44 ret_t cherokee_handler_custom_error_configure (cherokee_config_node_t *conf, cherokee_server_t *srv, cherokee_module_props_t **props);
45 ret_t cherokee_handler_custom_error_new (cherokee_handler_t **hdl, void *cnt, cherokee_module_props_t *props);
46 ret_t cherokee_handler_custom_error_props_free (cherokee_handler_custom_error_props_t *props);
47
48 #endif /* CHEROKEE_HANDLER_CUSTOM_ERROR_H */
Something went wrong with that request. Please try again.