]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Clean up the dnsdist protobuf header
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 24 Dec 2024 16:12:34 +0000 (17:12 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 16 Jan 2025 08:50:31 +0000 (09:50 +0100)
pdns/dnsdistdist/dnsdist-protobuf.hh

index c2dee817daf37526ffc3358790adb204c49f4c7f..13d035749e60bb6d009f3276feb8bb6aab66e764 100644 (file)
  */
 #pragma once
 
-#include "dnsdist.hh"
 #include "dnsname.hh"
 
 #ifndef DISABLE_PROTOBUF
+#include <boost/multi_index_container.hpp>
+#include <boost/multi_index/hashed_index.hpp>
+#include <boost/multi_index/key_extractors.hpp>
+
 #include "protozero.hh"
 
+struct DNSQuestion;
+struct DNSResponse;
+
 class DNSDistProtoBufMessage
 {
 public:
@@ -146,9 +152,9 @@ class ProtoBufMetaKey
 
   using TypeContainer = boost::multi_index_container<
     KeyTypeDescription,
-    indexed_by<
-      hashed_unique<tag<NameTag>, member<KeyTypeDescription, const std::string, &KeyTypeDescription::d_name>>,
-      hashed_unique<tag<TypeTag>, member<KeyTypeDescription, const Type, &KeyTypeDescription::d_type>>>>;
+    boost::multi_index::indexed_by<
+      boost::multi_index::hashed_unique<boost::multi_index::tag<NameTag>, boost::multi_index::member<KeyTypeDescription, const std::string, &KeyTypeDescription::d_name>>,
+      boost::multi_index::hashed_unique<boost::multi_index::tag<TypeTag>, boost::multi_index::member<KeyTypeDescription, const Type, &KeyTypeDescription::d_type>>>>;
 
   static const TypeContainer s_types;