Skip to content

Commit

Permalink
dnsdist: Clean up the dnsdist protobuf header
Browse files Browse the repository at this point in the history
  • Loading branch information
rgacogne committed Dec 24, 2024
1 parent afe6ab1 commit c49ef4f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions pdns/dnsdistdist/dnsdist-protobuf.hh
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,18 @@
*/
#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:
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit c49ef4f

Please sign in to comment.