Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 57 lines (46 sloc) 2.132 kb
c026a2d @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3003 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
c026a2d @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3003 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
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 * 02110-1301, USA.
72f6444 @alobbs Clean up: Trims trailing spaces.
alobbs authored
23 */
c026a2d @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3003 5dc97367-97f1...
alobbs authored
24
25 #ifndef CHEROKEE_LOGGER_CUSTOM_H
26 #define CHEROKEE_LOGGER_CUSTOM_H
27
28 #include "common-internal.h"
29 #include "connection.h"
30 #include "template.h"
31 #include "logger.h"
32 #include "logger_writer.h"
6392f7f @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3045 5dc97367-97f1...
alobbs authored
33 #include "virtual_server.h"
b8698b6 @alobbs Fixes a bunch of compilation warnings
alobbs authored
34 #include "plugin_loader.h"
c026a2d @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3003 5dc97367-97f1...
alobbs authored
35
36 typedef struct {
6392f7f @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3045 5dc97367-97f1...
alobbs authored
37 cherokee_logger_t logger;
38 cherokee_template_t template_conn;
39 cherokee_logger_writer_t *writer_access;
c026a2d @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3003 5dc97367-97f1...
alobbs authored
40 } cherokee_logger_custom_t;
41
468a464 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3168 5dc97367-97f1...
alobbs authored
42 #define LOG_CUSTOM(x) ((cherokee_logger_custom_t *)(x))
c026a2d @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3003 5dc97367-97f1...
alobbs authored
43
b8698b6 @alobbs Fixes a bunch of compilation warnings
alobbs authored
44 void PLUGIN_INIT_NAME(custom) (cherokee_plugin_loader_t *loader);
45
468a464 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3168 5dc97367-97f1...
alobbs authored
46 ret_t cherokee_logger_custom_new (cherokee_logger_t **logger, cherokee_virtual_server_t *vsrv, cherokee_config_node_t *config);
47 ret_t cherokee_logger_custom_free (cherokee_logger_custom_t *logger);
48 ret_t cherokee_logger_custom_init (cherokee_logger_custom_t *logger);
c026a2d @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3003 5dc97367-97f1...
alobbs authored
49
468a464 @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3168 5dc97367-97f1...
alobbs authored
50 ret_t cherokee_logger_custom_flush (cherokee_logger_custom_t *logger);
51 ret_t cherokee_logger_custom_reopen (cherokee_logger_custom_t *logger);
52
53 ret_t cherokee_logger_custom_write_access (cherokee_logger_custom_t *logger, cherokee_connection_t *conn);
54 ret_t cherokee_logger_custom_write_string (cherokee_logger_custom_t *logger, const char *string);
c026a2d @alobbs git-svn-id: svn://cherokee-project.com/cherokee/trunk@3003 5dc97367-97f1...
alobbs authored
55
56 #endif /* CHEROKEE_LOGGER_CUSTOM_H */
Something went wrong with that request. Please try again.