2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 05:28:00 +00:00

Stop including dnstap headers from <dns/dnstap.h>

The <fstrm.h> and <protobuf-c/protobuf-c.h> headers are only directly
included where used and we stopped exposing those headers from libdns
headers.
This commit is contained in:
Ondřej Surý 2021-02-11 14:25:58 +01:00 committed by Mark Andrews
parent dce292e7f4
commit 23c3bcc711
6 changed files with 15 additions and 8 deletions

View File

@ -18,6 +18,10 @@
#include <string.h>
#include <uv.h>
#ifdef HAVE_DNSTAP
#include <protobuf-c/protobuf-c.h>
#endif
#include <isc/app.h>
#include <isc/attributes.h>
#include <isc/backtrace.h>

View File

@ -20,6 +20,10 @@
#include <sys/types.h>
#include <unistd.h>
#ifdef HAVE_DNSTAP
#include <fstrm.h>
#endif
#include <isc/aes.h>
#include <isc/app.h>
#include <isc/attributes.h>

View File

@ -15,6 +15,10 @@
#include <stdbool.h>
#include <stdlib.h>
#ifdef HAVE_DNSTAP
#include <fstrm.h>
#endif
#include <isc/aes.h>
#include <isc/base64.h>
#include <isc/buffer.h>

View File

@ -47,12 +47,11 @@
#error DNSTAP not configured.
#endif /* HAVE_DNSTAP */
#include <fstrm.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdlib.h>
#include <protobuf-c/protobuf-c.h>
#include <isc/buffer.h>
#include <isc/file.h>
#include <isc/log.h>

View File

@ -26,13 +26,7 @@
#include <inttypes.h>
#include <stdbool.h>
#ifdef HAVE_DNSTAP
#include <fstrm.h>
#include <protobuf-c/protobuf-c.h>
#else /* ifdef HAVE_DNSTAP */
struct fstrm_iothr_options;
#endif /* HAVE_DNSTAP */
#include <isc/log.h>
#include <isc/refcount.h>

View File

@ -37,6 +37,8 @@
#ifdef HAVE_DNSTAP
#include <fstrm.h>
#include <protobuf-c/protobuf-c.h>
#define TAPFILE "testdata/dnstap/dnstap.file"