]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: rename "pattern" files
authorWilly Tarreau <w@1wt.eu>
Fri, 27 Apr 2012 19:52:18 +0000 (21:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 18:57:21 +0000 (20:57 +0200)
They're now called "sample" everywhere to match their description.

15 files changed:
Makefile
Makefile.bsd
Makefile.osx
include/proto/acl.h
include/proto/sample.h [moved from include/proto/pattern.h with 85% similarity]
include/types/acl.h
include/types/proxy.h
include/types/sample.h [moved from include/types/pattern.h with 96% similarity]
src/cfgparse.c
src/peers.c
src/proto_http.c
src/proto_tcp.c
src/sample.c [moved from src/pattern.c with 99% similarity]
src/session.c
src/stick_table.c

index c832338d0bf5b80f25f656222e129aa1af6c7b3c..8a96dd7a101e67192535e2c8c3c204a7c77ca63f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -516,7 +516,7 @@ OBJS = src/haproxy.o src/sessionhash.o src/base64.o src/protocols.o \
        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 \
index 14dafacca1e952eda7b8aa41a9ac6cf3d90e4c4c..9b0e5146a4b9e63bee304fc6b7197cd25e4d7606 100644 (file)
@@ -115,7 +115,7 @@ OBJS = src/haproxy.o src/sessionhash.o src/base64.o src/protocols.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 \
index a4389ef7c71e6821221561f6dec0e35848f08f52..ffd9a6136b9a336182d93a16e64183172c67b776 100644 (file)
@@ -112,7 +112,7 @@ OBJS = src/haproxy.o src/sessionhash.o src/base64.o src/protocols.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 \
index c60b9140d3cc57cd17964c17b99b1754af614293..d514076e233798d380c70a3c45e9a67bd7e5b0b1 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <common/config.h>
 #include <types/acl.h>
-#include <proto/pattern.h>
+#include <proto/sample.h>
 
 /*
  * FIXME: we need destructor functions too !
similarity index 85%
rename from include/proto/pattern.h
rename to include/proto/sample.h
index c595ed69f22f963eddc63664cb83ecda63dbace7..471eb5f2a7b93de0db0023d26c84fcd682105416 100644 (file)
@@ -1,8 +1,9 @@
 /*
- * 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);
@@ -31,4 +32,5 @@ struct sample *sample_process(struct proxy *px, struct session *l4,
                                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 */
index 9e560cf6453c3a3488673757a7cb8c794f2665fa..ed8582b7c62028f2f43b01adf3a0bea559844a0b 100644 (file)
@@ -28,8 +28,8 @@
 
 #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>
 
index e18bb7a2cc10ffbd1634bd9c2650e680e98aed9d..4766e130d4c77cc8133efb986af68383cae09014 100644 (file)
@@ -36,7 +36,6 @@
 #include <eb32tree.h>
 
 #include <types/acl.h>
-#include <types/pattern.h>
 #include <types/backend.h>
 #include <types/buffers.h>
 #include <types/counters.h>
@@ -44,6 +43,7 @@
 #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>
similarity index 96%
rename from include/types/pattern.h
rename to include/types/sample.h
index 314bdda7fad34d74bf70ddf635a08d06dd1ad491..b806a12c5828097c4a837bbf346f40a0848ec652 100644 (file)
@@ -1,8 +1,9 @@
 /*
- * 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
@@ -19,8 +20,8 @@
  * 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>
@@ -161,4 +162,4 @@ struct sample_conv_kw_list {
        struct sample_conv kw[VAR_ARRAY];         /* array of sample conversion descriptors */
 };
 
-#endif /* _TYPES_PATTERN_H */
+#endif /* _TYPES_SAMPLE_H */
index 1fd5fe1ebbde1c9133be3237773c3d95cc76cb48..8bfa4b2c9798169032980646b300fed491a3660e 100644 (file)
@@ -51,7 +51,6 @@
 #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>
@@ -59,6 +58,7 @@
 #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>
index 3d2fd01d1490d5cbcb01bbc21c949d86cf676dcb..ab6f7ed0384d7a5c74eeabd9036d9d6682d8cc47 100644 (file)
@@ -32,7 +32,6 @@
 #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>
index 1cc3cc7658bc744714584d712c868fece882ef0f..0fffad4d9d21c0a687dfd2551ac2206038318faa 100644 (file)
 #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>
index 2cb4b27fe694a76f8bd6384d47ad267c084d7451..1f0d6dce77a5499a9dd2ac8c84d05c10cdb083a4 100644 (file)
 #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>
similarity index 99%
rename from src/pattern.c
rename to src/sample.c
index 5ecc0d13d395a32dedb3593fef5335cd59d3b5e0..f14b99b91530156dfe6e079e90a0c5d800c250df 100644 (file)
@@ -1,7 +1,8 @@
 /*
- * 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;
index 8ea2a3cee98a704cde30c50dc41bcf3ee6c0389a..f8b651682ca48f02e62304b318a12a560c7b3a49 100644 (file)
@@ -39,6 +39,7 @@
 #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>
index d2ce3e3dfc5b48e38e3ecda3a4e8bbb24df6c1a4..52ea7cfdb54056a21aa5bb0f9e66f080d1caa65c 100644 (file)
@@ -22,8 +22,8 @@
 #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>