]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: task: stop including stream.h from task.c
authorWilly Tarreau <w@1wt.eu>
Sat, 8 May 2021 18:10:13 +0000 (20:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 8 May 2021 18:27:08 +0000 (20:27 +0200)
This one comes with a very deep dependency hell, only to know that
process_stream() is a function. Dropping it reduces the preprocessed
output from 1.5MB to 640kB.

src/task.c

index 283d507bb9f8cb67380e1e1bc9b4d0edfe4d4138..c3145b04d92ca7ab4b4def7b0167aa0e04834bbc 100644 (file)
 #include <haproxy/fd.h>
 #include <haproxy/list.h>
 #include <haproxy/pool.h>
-#include <haproxy/stream.h>
 #include <haproxy/task.h>
 #include <haproxy/tools.h>
 
+extern struct task *process_stream(struct task *t, void *context, unsigned int state);
 
 DECLARE_POOL(pool_head_task,    "task",    sizeof(struct task));
 DECLARE_POOL(pool_head_tasklet, "tasklet", sizeof(struct tasklet));