]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CONTRIB: mod_defender: import the minimal number of includes
authorWilly Tarreau <w@1wt.eu>
Tue, 20 Apr 2021 17:16:59 +0000 (19:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Apr 2021 17:34:02 +0000 (19:34 +0200)
commitfe5d501c4d84c2c23ba177d8d8bf9320c93d9096
treea83012151145bff67fdd14a301004563551ebbbc
parentdcb121fd9ce25ab5087fb45442bef24c031d2fe6
CONTRIB: mod_defender: import the minimal number of includes

mod_defender currently depends on haproxy includes while it should be
totally autonomous since it should build without and not even depend
on any specific haproxy version.

This imports the strictly minimum number of includes required to build
it. These have been manually stripped from their exported functions
prototypes and their unneeded dependencies.

In reality, the defender.c mostly needs sample.h because it stores its
data this way, spoe.h for the protocol definitions, and a few intops
and tools to decode varints. The rest mostly comes as intermediate
dependencies.
15 files changed:
contrib/mod_defender/include/haproxy/api-t.h [new file with mode: 0644]
contrib/mod_defender/include/haproxy/api.h [new file with mode: 0644]
contrib/mod_defender/include/haproxy/buf-t.h [new file with mode: 0644]
contrib/mod_defender/include/haproxy/compat.h [new file with mode: 0644]
contrib/mod_defender/include/haproxy/compiler.h [new file with mode: 0644]
contrib/mod_defender/include/haproxy/defaults.h [new file with mode: 0644]
contrib/mod_defender/include/haproxy/http-t.h [new file with mode: 0644]
contrib/mod_defender/include/haproxy/intops.h [new file with mode: 0644]
contrib/mod_defender/include/haproxy/list-t.h [new file with mode: 0644]
contrib/mod_defender/include/haproxy/list.h [new file with mode: 0644]
contrib/mod_defender/include/haproxy/sample-t.h [new file with mode: 0644]
contrib/mod_defender/include/haproxy/sample_data-t.h [new file with mode: 0644]
contrib/mod_defender/include/haproxy/spoe-t.h [new file with mode: 0644]
contrib/mod_defender/include/haproxy/spoe.h [new file with mode: 0644]
contrib/mod_defender/include/haproxy/tools.h [new file with mode: 0644]