Skip to content
Newer
Older
100644 64 lines (52 sloc) 2.09 KB
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
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-97…
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-9…
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-97…
alobbs authored
24
25 #ifndef CHEROKEE_ADMIN_HANDLER_H
26 #define CHEROKEE_ADMIN_HANDLER_H
27
28 #include "handler.h"
b69d2e0 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@476 5dc97367-97…
alobbs authored
29 #include "plugin_loader.h"
197ba3c @alobbs The admin_client classes are not longer needed, so libcherokee-config
alobbs authored
30 #include "dwriter.h"
b8698b6 @alobbs Fixes a bunch of compilation warnings
alobbs authored
31 #include "plugin_loader.h"
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
32
33 typedef enum {
34 state_valid,
35 state_invalid_request
36 } cherokee_handler_admin_state_t;
37
38 typedef struct {
197ba3c @alobbs The admin_client classes are not longer needed, so libcherokee-config
alobbs authored
39 cherokee_handler_t handler;
40 cherokee_buffer_t reply;
41 cherokee_dwriter_t dwriter;
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
42 } cherokee_handler_admin_t;
43
72f6444 @alobbs Clean up: Trims trailing spaces.
alobbs authored
44 #define PROP_ADMIN(x) ((cherokee_handler_admin_props_t *)(x))
3509796 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@282 5dc97367-97…
alobbs authored
45 #define HDL_ADMIN(x) ((cherokee_handler_admin_t *)(x))
46 #define HDL_ADMIN_PROPS(x) (PROP_ADMIN(HANDLER(x)->props))
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
47
48
49 /* Library init function
50 */
b8698b6 @alobbs Fixes a bunch of compilation warnings
alobbs authored
51 void PLUGIN_INIT_NAME(admin) (cherokee_plugin_loader_t *loader);
7b0e48a @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@387 5dc97367-97…
alobbs authored
52 ret_t cherokee_handler_admin_new (cherokee_handler_t **hdl, void *cnt, cherokee_module_props_t *props);
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
53
54 /* virtual methods implementation
55 */
197ba3c @alobbs The admin_client classes are not longer needed, so libcherokee-config
alobbs authored
56 ret_t cherokee_handler_admin_init (cherokee_handler_admin_t *hdl);
57 ret_t cherokee_handler_admin_free (cherokee_handler_admin_t *hdl);
58 ret_t cherokee_handler_admin_read_post (cherokee_handler_admin_t *hdl);
59 ret_t cherokee_handler_admin_step (cherokee_handler_admin_t *hdl, cherokee_buffer_t *buffer);
60 ret_t cherokee_handler_admin_add_headers (cherokee_handler_admin_t *hdl, cherokee_buffer_t *buffer);
ae9d971 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@243 5dc97367-97…
alobbs authored
61
62
63 #endif /* CHEROKEE_ADMIN_HANDLER_H */
Something went wrong with that request. Please try again.