Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 56 lines (44 sloc) 1.71 kB
992ee81 @alobbs Adds a new rule type. It evaluates regular expressions against the
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
992ee81 @alobbs Adds a new rule type. It evaluates regular expressions against the
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 */
992ee81 @alobbs Adds a new rule type. It evaluates regular expressions against the
alobbs authored
24
25 #if !defined (CHEROKEE_INSIDE_CHEROKEE_H) && !defined (CHEROKEE_COMPILATION)
26 # error "Only <cherokee/cherokee.h> can be included directly, this file may disappear or change contents."
27 #endif
28
73eb682 @alobbs Renames the URL parameter matching module (http_arg to url_arg), and
alobbs authored
29 #ifndef CHEROKEE_RULE_URL_ARG_H
30 #define CHEROKEE_RULE_URL_ARG_H
992ee81 @alobbs Adds a new rule type. It evaluates regular expressions against the
alobbs authored
31
32 #include <cherokee/common.h>
33 #include <cherokee/buffer.h>
34 #include <cherokee/rule.h>
35 #include <cherokee/regex.h>
b8698b6 @alobbs Fixes a bunch of compilation warnings
alobbs authored
36 #include <cherokee/plugin_loader.h>
992ee81 @alobbs Adds a new rule type. It evaluates regular expressions against the
alobbs authored
37
38 CHEROKEE_BEGIN_DECLS
39
40 typedef struct {
41 cherokee_rule_t rule;
42 cherokee_buffer_t arg;
43 cherokee_buffer_t match;
44 void *pcre;
45
73eb682 @alobbs Renames the URL parameter matching module (http_arg to url_arg), and
alobbs authored
46 } cherokee_rule_url_arg_t;
992ee81 @alobbs Adds a new rule type. It evaluates regular expressions against the
alobbs authored
47
73eb682 @alobbs Renames the URL parameter matching module (http_arg to url_arg), and
alobbs authored
48 #define RULE_URL_ARG(x) ((cherokee_rule_url_arg_t *)(x))
992ee81 @alobbs Adds a new rule type. It evaluates regular expressions against the
alobbs authored
49
b8698b6 @alobbs Fixes a bunch of compilation warnings
alobbs authored
50 void PLUGIN_INIT_NAME(url_arg) (cherokee_plugin_loader_t *loader);
73eb682 @alobbs Renames the URL parameter matching module (http_arg to url_arg), and
alobbs authored
51 ret_t cherokee_rule_url_arg_new (cherokee_rule_url_arg_t **rule);
992ee81 @alobbs Adds a new rule type. It evaluates regular expressions against the
alobbs authored
52
53 CHEROKEE_END_DECLS
54
73eb682 @alobbs Renames the URL parameter matching module (http_arg to url_arg), and
alobbs authored
55 #endif /* CHEROKEE_RULE_URL_ARG_H */
Something went wrong with that request. Please try again.