They're now called "sample" everywhere to match their description.
src/lb_chash.o src/lb_fwlc.o src/lb_fwrr.o src/lb_map.o src/lb_fas.o \
src/stream_interface.o src/dumpstats.o src/proto_tcp.o \
src/session.o src/hdr_idx.o src/ev_select.o src/signal.o \
- src/acl.o src/pattern.o src/memory.o src/freq_ctr.o src/auth.o
+ src/acl.o src/sample.o src/memory.o src/freq_ctr.o src/auth.o
EBTREE_OBJS = $(EBTREE_DIR)/ebtree.o \
$(EBTREE_DIR)/eb32tree.o $(EBTREE_DIR)/eb64tree.o \
src/lb_chash.o src/lb_fwlc.o src/lb_fwrr.o src/lb_map.o src/lb_fas.o \
src/ev_poll.o src/ev_kqueue.o \
src/arg.o src/acl.o src/memory.o src/freq_ctr.o \
- src/auth.o src/stick_table.o src/pattern.o
+ src/auth.o src/stick_table.o src/sample.o
EBTREE_OBJS = $(EBTREE_DIR)/ebtree.o \
$(EBTREE_DIR)/eb32tree.o $(EBTREE_DIR)/eb64tree.o \
src/lb_chash.o src/lb_fwlc.o src/lb_fwrr.o src/lb_map.o src/lb_fas.o \
src/ev_poll.o \
src/arg.o src/acl.o src/memory.o src/freq_ctr.o \
- src/auth.o src/stick_table.o src/pattern.o
+ src/auth.o src/stick_table.o src/sample.o
EBTREE_OBJS = $(EBTREE_DIR)/ebtree.o \
$(EBTREE_DIR)/eb32tree.o $(EBTREE_DIR)/eb64tree.o \
#include <common/config.h>
#include <types/acl.h>
-#include <proto/pattern.h>
+#include <proto/sample.h>
/*
* FIXME: we need destructor functions too !
/*
- * include/proto/pattern.h
- * Functions for patterns management.
+ * include/proto/sample.h
+ * Functions for samples management.
*
* Copyright (C) 2009-2010 EXCELIANCE, Emeric Brun <ebrun@exceliance.fr>
+ * Copyright (C) 2012 Willy Tarreau <w@1wt.eu>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef _PROTO_PATTERN_H
-#define _PROTO_PATTERN_H
+#ifndef _PROTO_SAMPLE_H
+#define _PROTO_SAMPLE_H
-#include <types/pattern.h>
+#include <types/sample.h>
#include <types/stick_table.h>
struct sample_expr *sample_parse_expr(char **str, int *idx, char *err, int err_size);
struct sample *p);
void sample_register_fetches(struct sample_fetch_kw_list *psl);
void sample_register_convs(struct sample_conv_kw_list *psl);
-#endif
+
+#endif /* _PROTO_SAMPLE_H */
#include <types/arg.h>
#include <types/auth.h>
-#include <types/pattern.h>
#include <types/proxy.h>
+#include <types/sample.h>
#include <types/server.h>
#include <types/session.h>
#include <eb32tree.h>
#include <types/acl.h>
-#include <types/pattern.h>
#include <types/backend.h>
#include <types/buffers.h>
#include <types/counters.h>
#include <types/log.h>
#include <types/protocols.h>
#include <types/proto_http.h>
+#include <types/sample.h>
#include <types/session.h>
#include <types/server.h>
#include <types/stick_table.h>
/*
- * include/types/pattern.h
- * Macros, variables and structures for patterns management.
+ * include/types/sample.h
+ * Macros, variables and structures for sample management.
*
* Copyright (C) 2009-2010 EXCELIANCE, Emeric Brun <ebrun@exceliance.fr>
+ * Copyright (C) 2012 Willy Tarreau <w@1wt.eu>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef _TYPES_PATTERN_H
-#define _TYPES_PATTERN_H
+#ifndef _TYPES_SAMPLE_H
+#define _TYPES_SAMPLE_H
#include <sys/socket.h>
#include <netinet/in.h>
struct sample_conv kw[VAR_ARRAY]; /* array of sample conversion descriptors */
};
-#endif /* _TYPES_PATTERN_H */
+#endif /* _TYPES_SAMPLE_H */
#include <proto/lb_fwrr.h>
#include <proto/lb_map.h>
#include <proto/log.h>
-#include <proto/pattern.h>
#include <proto/port_range.h>
#include <proto/protocols.h>
#include <proto/proto_tcp.h>
#include <proto/proto_http.h>
#include <proto/proxy.h>
#include <proto/peers.h>
+#include <proto/sample.h>
#include <proto/server.h>
#include <proto/session.h>
#include <proto/task.h>
#include <proto/fd.h>
#include <proto/log.h>
#include <proto/hdr_idx.h>
-#include <proto/pattern.h>
#include <proto/protocols.h>
#include <proto/proto_tcp.h>
#include <proto/proto_http.h>
#include <proto/frontend.h>
#include <proto/log.h>
#include <proto/hdr_idx.h>
-#include <proto/pattern.h>
#include <proto/proto_tcp.h>
#include <proto/proto_http.h>
#include <proto/proxy.h>
#include <proto/queue.h>
+#include <proto/sample.h>
#include <proto/server.h>
#include <proto/session.h>
#include <proto/stream_interface.h>
#include <proto/buffers.h>
#include <proto/frontend.h>
#include <proto/log.h>
-#include <proto/pattern.h>
#include <proto/port_range.h>
#include <proto/protocols.h>
#include <proto/proto_tcp.h>
#include <proto/proxy.h>
+#include <proto/sample.h>
#include <proto/session.h>
#include <proto/stick_table.h>
#include <proto/stream_sock.h>
/*
- * Patterns management functions.
+ * Sample management functions.
*
* Copyright 2009-2010 EXCELIANCE, Emeric Brun <ebrun@exceliance.fr>
+ * Copyright (C) 2012 Willy Tarreau <w@1wt.eu>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
#include <string.h>
#include <arpa/inet.h>
+#include <common/standard.h>
+
#include <proto/arg.h>
-#include <proto/pattern.h>
#include <proto/buffers.h>
-#include <common/standard.h>
+#include <proto/sample.h>
/* static sample used in sample_process() when <p> is NULL */
static struct sample temp_smp;
#include <proto/proxy.h>
#include <proto/queue.h>
#include <proto/server.h>
+#include <proto/sample.h>
#include <proto/stick_table.h>
#include <proto/stream_interface.h>
#include <proto/stream_sock.h>
#include <ebmbtree.h>
#include <ebsttree.h>
-#include <proto/pattern.h>
#include <proto/proxy.h>
+#include <proto/sample.h>
#include <proto/session.h>
#include <proto/stick_table.h>
#include <proto/task.h>