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

There is no C file for this one, the code was placed into sample.c which
thus has a dependency on this file which itself includes sample.h. Probably
that it would be wise to split that later.
diff --git a/include/haproxy/arg-t.h b/include/haproxy/arg-t.h
index 1a4208d..d63d60f 100644
--- a/include/haproxy/arg-t.h
+++ b/include/haproxy/arg-t.h
@@ -27,9 +27,9 @@
 
 #include <haproxy/buf-t.h>
 #include <haproxy/list-t.h>
+#include <haproxy/protobuf-t.h>
 
 #include <types/vars.h>
-#include <types/protocol_buffers.h>
 #include <types/stick_table.h>
 
 /* encoding of each arg type : up to 31 types are supported */
diff --git a/include/types/protocol_buffers.h b/include/haproxy/protobuf-t.h
similarity index 92%
rename from include/types/protocol_buffers.h
rename to include/haproxy/protobuf-t.h
index 35e8444..b1a14e7 100644
--- a/include/types/protocol_buffers.h
+++ b/include/haproxy/protobuf-t.h
@@ -1,5 +1,5 @@
 /*
- * include/types/protocol_buffers.h
+ * include/haproxy/protobuf-t.h
  * This file contains structure declarations for protocol buffers.
  *
  * Copyright 2012 Willy Tarreau <w@1wt.eu>
@@ -19,8 +19,10 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef _TYPES_PROTOCOL_BUFFERS_H
-#define _TYPES_PROTOCOL_BUFFERS_H
+#ifndef _HAPROXY_PROTOBUF_T_H
+#define _HAPROXY_PROTOBUF_T_H
+
+#include <haproxy/api-t.h>
 
 enum protobuf_wire_type {
 	PBUF_TYPE_VARINT,
@@ -75,7 +77,7 @@
 	                 unsigned char *pos, size_t left, size_t vlen);
 };
 
-#endif /* _TYPES_PROTOCOL_BUFFERS_H */
+#endif /* _HAPROXY_PROTOBUF_T_H */
 
 /*
  * Local variables:
diff --git a/include/proto/protocol_buffers.h b/include/haproxy/protobuf.h
similarity index 97%
rename from include/proto/protocol_buffers.h
rename to include/haproxy/protobuf.h
index 16ccee5..7f46543 100644
--- a/include/proto/protocol_buffers.h
+++ b/include/haproxy/protobuf.h
@@ -1,5 +1,5 @@
 /*
- * include/proto/protocol_buffers.h
+ * include/haproxy/protobuf.h
  * This file contains functions and macros declarations for protocol buffers decoding.
  *
  * Copyright 2012 Willy Tarreau <w@1wt.eu>
@@ -19,13 +19,13 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef _PROTO_PROTOCOL_BUFFERS_H
-#define _PROTO_PROTOCOL_BUFFERS_H
+#ifndef _HAPROXY_PROTOBUF_H
+#define _HAPROXY_PROTOBUF_H
 
-#include <inttypes.h>
+#include <haproxy/api-t.h>
 #include <haproxy/arg-t.h>
+#include <haproxy/protobuf-t.h>
 #include <haproxy/sample-t.h>
-#include <types/protocol_buffers.h>
 
 #define PBUF_VARINT_DONT_STOP_BIT       7
 #define PBUF_VARINT_DONT_STOP_BITMASK  (1 << PBUF_VARINT_DONT_STOP_BIT)
@@ -567,7 +567,7 @@
 	return 0;
 }
 
-#endif /* _PROTO_PROTOCOL_BUFFERS_H */
+#endif /* _HAPROXY_PROTOBUF_H */
 
 /*
  * Local variables:
diff --git a/src/sample.c b/src/sample.c
index 871db00..8ee3407 100644
--- a/src/sample.c
+++ b/src/sample.c
@@ -25,6 +25,7 @@
 #include <haproxy/hash.h>
 #include <haproxy/http.h>
 #include <haproxy/net_helper.h>
+#include <haproxy/protobuf.h>
 #include <haproxy/regex.h>
 #include <haproxy/sample.h>
 #include <haproxy/tools.h>
@@ -34,7 +35,6 @@
 #include <haproxy/arg.h>
 #include <proto/log.h>
 #include <proto/proxy.h>
-#include <proto/protocol_buffers.h>
 #include <haproxy/sink.h>
 #include <proto/stick_table.h>
 #include <proto/vars.h>