summaryrefslogtreecommitdiffstats
path: root/src/resolve/resolved-dns-question.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-09-29 18:26:44 +0200
committerLennart Poettering <lennart@poettering.net>2022-09-30 14:22:53 +0200
commit4d593fb151317f9054f308f4656cce63c1abbe52 (patch)
tree0bd220a6f57af8a8218b75b44096fb1f95fe3622 /src/resolve/resolved-dns-question.h
parentresolved: add generic formatters for RRs into JSON (diff)
downloadsystemd-4d593fb151317f9054f308f4656cce63c1abbe52.tar.xz
systemd-4d593fb151317f9054f308f4656cce63c1abbe52.zip
resolved: add dns_question_merge() helper
Very similar to dns_answer_merge(), but for DnsQuestion objects instead of DnsAnswer.
Diffstat (limited to 'src/resolve/resolved-dns-question.h')
-rw-r--r--src/resolve/resolved-dns-question.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-question.h b/src/resolve/resolved-dns-question.h
index 31b8a2ec3e..91bbeaed5b 100644
--- a/src/resolve/resolved-dns-question.h
+++ b/src/resolve/resolved-dns-question.h
@@ -59,6 +59,8 @@ static inline bool dns_question_isempty(DnsQuestion *q) {
return dns_question_size(q) <= 0;
}
+int dns_question_merge(DnsQuestion *a, DnsQuestion *b, DnsQuestion **ret);
+
DEFINE_TRIVIAL_CLEANUP_FUNC(DnsQuestion*, dns_question_unref);
#define _DNS_QUESTION_FOREACH(u, k, q) \