summaryrefslogtreecommitdiff
path: root/src/shared/dns-domain.h
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-07-28 00:40:15 +0200
committerDaniel Mack <github@zonque.org>2015-07-28 00:40:15 +0200
commit8baebe85cc1dd06c8545037a4b0662e004281eff (patch)
tree66fc29b111e47fa2f6c082865e88791747920f92 /src/shared/dns-domain.h
parent77cc990db90e862fc3f65c1ebd4bfb79031d3180 (diff)
parent510cc5ae0810d71e167cc5b389d36995f90e29cf (diff)
Merge pull request #748 from teg/dns-name-between-4
basic: dns-name - between()
Diffstat (limited to 'src/shared/dns-domain.h')
-rw-r--r--src/shared/dns-domain.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/dns-domain.h b/src/shared/dns-domain.h
index 00caf5d700..bd50ad3e6d 100644
--- a/src/shared/dns-domain.h
+++ b/src/shared/dns-domain.h
@@ -29,6 +29,7 @@
#define DNS_NAME_MAX 255
int dns_label_unescape(const char **name, char *dest, size_t sz);
+int dns_label_unescape_suffix(const char *name, const char **label_end, char *dest, size_t sz);
int dns_label_escape(const char *p, size_t l, char **ret);
int dns_label_apply_idna(const char *encoded, size_t encoded_size, char *decoded, size_t decoded_max);
@@ -49,6 +50,7 @@ unsigned long dns_name_hash_func(const void *s, const uint8_t hash_key[HASH_KEY_
int dns_name_compare_func(const void *a, const void *b);
extern const struct hash_ops dns_name_hash_ops;
+int dns_name_between(const char *a, const char *b, const char *c);
int dns_name_equal(const char *x, const char *y);
int dns_name_endswith(const char *name, const char *suffix);