#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 */
/*
- * 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>
* 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,
unsigned char *pos, size_t left, size_t vlen);
};
-#endif /* _TYPES_PROTOCOL_BUFFERS_H */
+#endif /* _HAPROXY_PROTOBUF_T_H */
/*
* Local variables:
/*
- * 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>
* 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)
return 0;
}
-#endif /* _PROTO_PROTOCOL_BUFFERS_H */
+#endif /* _HAPROXY_PROTOBUF_H */
/*
* Local variables:
#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>
#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>