buffer.h relies on proto/activity because it contains some code and not
just type definitions. It must not be included from types files. It
should probably also be split in two if it starts to include a proto.
This causes some circular dependencies at other places.
#include <common/config.h>
#include <common/mini-clist.h>
#include <common/regex.h>
-#include <common/buffer.h>
+#include <common/buf.h>
#include <types/connection.h>
#include <types/obj_type.h>
#ifndef _TYPES_RING_H
#define _TYPES_RING_H
-#include <common/buffer.h>
+#include <common/buf.h>
#include <common/compat.h>
#include <common/config.h>
#include <common/ist.h>