REORG: include: move arg.h to haproxy/arg{,-t}.h

Almost no change was needed; chunk.h was replaced with buf-t.h.
It dpeends on types/vars.h and types/protocol_buffers.h.
diff --git a/include/proto/arg.h b/include/proto/arg.h
deleted file mode 100644
index 884e5bb..0000000
--- a/include/proto/arg.h
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * include/proto/arg.h
- * This file contains functions and macros declarations for generic argument parsing.
- *
- * Copyright 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
- * 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_ARG_H
-#define _PROTO_ARG_H
-
-#include <types/arg.h>
-
-/* Some macros used to build some arg list. We can declare various argument
- * combinations from 0 to 7 args using a single 32-bit integer. The first
- * argument of these macros is always the mandatory number of arguments, and
- * remaining ones are optional args. Note: ARGM() may also be used to return
- * the number of mandatory arguments in a mask.
- */
-#define ARGM(m) \
-	(uint64_t)(m & ARGM_MASK)
-
-#define ARG1(m, t1) \
-	(ARGM(m) + ((uint64_t)ARGT_##t1 << (ARGM_BITS)))
-
-#define ARG2(m, t1, t2) \
-	(ARG1(m, t1) + ((uint64_t)ARGT_##t2 << (ARGM_BITS + ARGT_BITS)))
-
-#define ARG3(m, t1, t2, t3) \
-	(ARG2(m, t1, t2) + ((uint64_t)ARGT_##t3 << (ARGM_BITS + ARGT_BITS * 2)))
-
-#define ARG4(m, t1, t2, t3, t4) \
-	(ARG3(m, t1, t2, t3) + ((uint64_t)ARGT_##t4 << (ARGM_BITS + ARGT_BITS * 3)))
-
-#define ARG5(m, t1, t2, t3, t4, t5) \
-	(ARG4(m, t1, t2, t3, t4) + ((uint64_t)ARGT_##t5 << (ARGM_BITS + ARGT_BITS * 4)))
-
-#define ARG6(m, t1, t2, t3, t4, t5, t6) \
-	(ARG5(m, t1, t2, t3, t4, t5) + ((uint64_t)ARGT_##t6 << (ARGM_BITS + ARGT_BITS * 5)))
-
-#define ARG7(m, t1, t2, t3, t4, t5, t6, t7) \
-	(ARG6(m, t1, t2, t3, t4, t5, t6) + ((uint64_t)ARGT_##t7 << (ARGM_BITS + ARGT_BITS * 6)))
-
-#define ARG8(m, t1, t2, t3, t4, t5, t6, t7, t8) \
-	(ARG7(m, t1, t2, t3, t4, t5, t6, t7) + ((uint64_t)ARGT_##t8 << (ARGM_BITS + ARGT_BITS * 7)))
-
-#define ARG9(m, t1, t2, t3, t4, t5, t6, t7, t8, t9) \
-	(ARG8(m, t1, t2, t3, t4, t5, t6, t7, t8) + ((uint64_t)ARGT_##t9 << (ARGM_BITS + ARGT_BITS * 8)))
-
-#define ARG10(m, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) \
-	(ARG9(m, t1, t2, t3, t4, t5, t6, t7, t8, t9) + ((uint64_t)ARGT_##t10 << (ARGM_BITS + ARGT_BITS * 9)))
-
-#define ARG11(m, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) \
-	(ARG10(m, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) + ((uint64_t)ARGT_##t11 << (ARGM_BITS + ARGT_BITS * 10)))
-
-#define ARG12(m, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) \
-	(ARG11(m, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) + ((uint64_t)ARGT_##t12 << (ARGM_BITS + ARGT_BITS * 11)))
-
-/* Mapping between argument number and literal description. */
-extern const char *arg_type_names[];
-
-/* This dummy arg list may be used by default when no arg is found, it helps
- * parsers by removing pointer checks.
- */
-extern struct arg empty_arg_list[ARGM_NBARGS];
-
-struct arg_list *arg_list_clone(const struct arg_list *orig);
-struct arg_list *arg_list_add(struct arg_list *orig, struct arg *arg, int pos);
-int make_arg_list(const char *in, int len, uint64_t mask, struct arg **argp,
-                  char **err_msg, const char **end_ptr, int *err_arg,
-                  struct arg_list *al);
-
-#endif /* _PROTO_ARG_H */
-
-/*
- * Local variables:
- *  c-indent-level: 8
- *  c-basic-offset: 8
- * End:
- */
diff --git a/include/proto/http_fetch.h b/include/proto/http_fetch.h
index 8df991c..e631bc0 100644
--- a/include/proto/http_fetch.h
+++ b/include/proto/http_fetch.h
@@ -24,7 +24,7 @@
 
 #include <haproxy/api.h>
 #include <haproxy/htx.h>
-#include <types/arg.h>
+#include <haproxy/arg-t.h>
 #include <types/channel.h>
 #include <types/checks.h>
 #include <types/sample.h>
diff --git a/include/proto/protocol_buffers.h b/include/proto/protocol_buffers.h
index 0426d83..3e1571a 100644
--- a/include/proto/protocol_buffers.h
+++ b/include/proto/protocol_buffers.h
@@ -23,7 +23,7 @@
 #define _PROTO_PROTOCOL_BUFFERS_H
 
 #include <inttypes.h>
-#include <types/arg.h>
+#include <haproxy/arg-t.h>
 #include <types/protocol_buffers.h>
 #include <proto/sample.h>