diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-09-29 18:26:44 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-09-30 14:22:53 +0200 |
commit | 4d593fb151317f9054f308f4656cce63c1abbe52 (patch) | |
tree | 0bd220a6f57af8a8218b75b44096fb1f95fe3622 /src/resolve/resolved-dns-question.h | |
parent | resolved: add generic formatters for RRs into JSON (diff) | |
download | systemd-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.h | 2 |
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) \ |