summaryrefslogtreecommitdiff
path: root/src/resolve/dns-type.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-18 19:06:23 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-18 19:06:23 +0100
commit222148b66d1abf5b05c9d803472a9368331dae53 (patch)
tree2b149f95d2ebb327191e5c8da9a96b134276133a /src/resolve/dns-type.h
parentff7febd50a69c464eb2373706059194b60056883 (diff)
downloadsystemd-222148b66d1abf5b05c9d803472a9368331dae53.tar.gz
resolved: make use of dns_{class|type}_is_{pseudo|valid_rr}() everywhere
Diffstat (limited to 'src/resolve/dns-type.h')
-rw-r--r--src/resolve/dns-type.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/resolve/dns-type.h b/src/resolve/dns-type.h
index deb89e9b7e..bea0adaa16 100644
--- a/src/resolve/dns-type.h
+++ b/src/resolve/dns-type.h
@@ -23,13 +23,6 @@
#include "macro.h"
-const char *dns_type_to_string(int type);
-int dns_type_from_string(const char *s);
-
-bool dns_type_is_pseudo(uint16_t type);
-bool dns_type_is_valid_query(uint16_t type);
-bool dns_type_is_valid_rr(uint16_t type);
-
/* DNS record types, taken from
* http://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml.
*/
@@ -127,12 +120,20 @@ assert_cc(DNS_TYPE_ANY == 255);
enum {
DNS_CLASS_IN = 0x01,
DNS_CLASS_ANY = 0xFF,
+
_DNS_CLASS_MAX,
_DNS_CLASS_INVALID = -1
};
+bool dns_type_is_pseudo(uint16_t type);
+bool dns_type_is_valid_query(uint16_t type);
+bool dns_type_is_valid_rr(uint16_t type);
+
bool dns_class_is_pseudo(uint16_t class);
bool dns_class_is_valid_rr(uint16_t class);
+const char *dns_type_to_string(int type);
+int dns_type_from_string(const char *s);
+
const char *dns_class_to_string(uint16_t type);
int dns_class_from_string(const char *name);