2010-01-04 15:16:05 +00:00
|
|
|
/*
|
|
|
|
* include/proto/pattern.h
|
|
|
|
* Functions for patterns management.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2009-2010 EXCELIANCE, Emeric Brun <ebrun@exceliance.fr>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation, version 2.1
|
|
|
|
* exclusively.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _PROTO_PATTERN_H
|
|
|
|
#define _PROTO_PATTERN_H
|
|
|
|
|
|
|
|
#include <types/pattern.h>
|
|
|
|
#include <types/stick_table.h>
|
|
|
|
|
2010-09-23 16:02:19 +00:00
|
|
|
struct pattern_expr *pattern_parse_expr(char **str, int *idx, char *err, int err_size);
|
2012-04-23 19:35:11 +00:00
|
|
|
struct sample *pattern_process(struct proxy *px, struct session *l4,
|
2012-04-25 08:13:36 +00:00
|
|
|
void *l7, unsigned int dir, struct pattern_expr *expr,
|
2012-04-23 19:35:11 +00:00
|
|
|
struct sample *p);
|
2010-01-04 15:16:05 +00:00
|
|
|
void pattern_register_fetches(struct pattern_fetch_kw_list *psl);
|
|
|
|
void pattern_register_convs(struct pattern_conv_kw_list *psl);
|
|
|
|
#endif
|