From 92c0ac2809cf6f4de509bad77d8bc68ae02ca335 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Wed, 9 Dec 2015 15:38:46 +0100 Subject: [PATCH] Make the QType enum list better diffible --- pdns/qtype.hh | 58 +++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 54 insertions(+), 4 deletions(-) diff --git a/pdns/qtype.hh b/pdns/qtype.hh index 615848fc5..07d1a6db7 100644 --- a/pdns/qtype.hh +++ b/pdns/qtype.hh @@ -79,10 +79,60 @@ public: static int chartocode(const char *p); //!< convert a character string to a code // more solaris fun #undef DS - enum typeenum : uint16_t {A=1, NS=2, CNAME=5, SOA=6, MR=9, WKS=11, PTR=12, HINFO=13, MINFO=14, MX=15, TXT=16, RP=17, AFSDB=18, SIG=24, KEY=25, AAAA=28, LOC=29, SRV=33, NAPTR=35, KX=36, - CERT=37, A6=38, DNAME=39, OPT=41, DS=43, SSHFP=44, IPSECKEY=45, RRSIG=46, NSEC=47, DNSKEY=48, DHCID=49, NSEC3=50, NSEC3PARAM=51, - TLSA=52, RKEY=57, CDS=59, CDNSKEY=60, OPENPGPKEY=61, SPF=99, EUI48=108, EUI64=109, TKEY=249, TSIG=250, IXFR=251, AXFR=252, MAILB=253, MAILA=254, ANY=255, - DLV=32769, ADDR=65400, ALIAS=65401 }; + enum typeenum : uint16_t { + A=1, + NS=2, + CNAME=5, + SOA=6, + MR=9, + WKS=11, + PTR=12, + HINFO=13, + MINFO=14, + MX=15, + TXT=16, + RP=17, + AFSDB=18, + SIG=24, + KEY=25, + AAAA=28, + LOC=29, + SRV=33, + NAPTR=35, + KX=36, + CERT=37, + A6=38, + DNAME=39, + OPT=41, + DS=43, + SSHFP=44, + IPSECKEY=45, + RRSIG=46, + NSEC=47, + DNSKEY=48, + DHCID=49, + NSEC3=50, + NSEC3PARAM=51, + TLSA=52, + RKEY=57, + CDS=59, + CDNSKEY=60, + OPENPGPKEY=61, + SPF=99, + EUI48=108, + EUI64=109, + TKEY=249, + TSIG=250, + IXFR=251, + AXFR=252, + MAILB=253, + MAILA=254, + ANY=255, + DLV=32769, + ADDR=65400, + ALIAS=65401 + }; + typedef pair namenum; static vector names; -- 2.40.0