REORG: include: move task.h to haproxy/task{,-t}.h
The TASK_IS_TASKLET() macro was moved to the proto file instead of the
type one. The proto part was a bit reordered to remove a number of ugly
forward declaration of static inline functions. About a tens of C and H
files had their dependency dropped since they were not using anything
from task.h.
diff --git a/contrib/debug/flags.c b/contrib/debug/flags.c
index f38378f..2287ee3 100644
--- a/contrib/debug/flags.c
+++ b/contrib/debug/flags.c
@@ -6,7 +6,7 @@
#include <types/http_ana.h>
#include <types/stream.h>
#include <types/stream_interface.h>
-#include <types/task.h>
+#include <haproxy/task-t.h>
// 1 bit per flag, no hole permitted here
#define SHOW_AS_ANA 0x00000001
diff --git a/contrib/prometheus-exporter/service-prometheus.c b/contrib/prometheus-exporter/service-prometheus.c
index ed27bc4..50dc14f 100644
--- a/contrib/prometheus-exporter/service-prometheus.c
+++ b/contrib/prometheus-exporter/service-prometheus.c
@@ -36,7 +36,7 @@
#include <proto/stats.h>
#include <proto/stream.h>
#include <proto/stream_interface.h>
-#include <proto/task.h>
+#include <haproxy/task.h>
/* Prometheus exporter applet states (appctx->st0) */
enum {