From e25c41578e710aed96939e5c7e503fc1db5dab3a Mon Sep 17 00:00:00 2001
From: Laurent Bercot
Date: Mon, 5 Aug 2024 13:13:45 +0000
Subject: Prepare for 2.3.8.0; add s6dns_engine_query
Signed-off-by: Laurent Bercot
---
NEWS | 3 ++-
doc/index.html | 2 +-
doc/libs6dns/s6dns-engine.html | 11 +++++++++++
doc/upgrade.html | 3 ++-
package/deps.mak | 9 +++++----
package/info | 2 +-
src/include/s6-dns/s6dns-engine.h | 2 ++
src/libs6dns/deps-lib/s6dns | 1 +
src/libs6dns/s6dns_engine_query.c | 14 ++++++++++++++
9 files changed, 39 insertions(+), 8 deletions(-)
create mode 100644 src/libs6dns/s6dns_engine_query.c
diff --git a/NEWS b/NEWS
index 6e5a290..0a48a27 100644
--- a/NEWS
+++ b/NEWS
@@ -1,10 +1,11 @@
Changelog for s6-dns.
-In 2.3.7.3
+In 2.3.8.0
----------
- Depend on skalibs-2.14.3.0, remove s6dns_mininetstring_read
- Better debug packet dump in s6-dnsq[r]
+ - New s6dns_engine_query() to get the query encoded in a dt
In 2.3.7.2
diff --git a/doc/index.html b/doc/index.html
index 0c61a88..8ce5d8c 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -72,7 +72,7 @@ requirement if you link against the shared version of the skalibs library.
Download
- - The current released version of s6-dns is 2.3.7.3.
+ - The current released version of s6-dns is 2.3.8.0.
- Alternatively, you can checkout a copy of the
s6-dns
git repository:
diff --git a/doc/libs6dns/s6dns-engine.html b/doc/libs6dns/s6dns-engine.html
index 5a24194..4449fbe 100644
--- a/doc/libs6dns/s6dns-engine.html
+++ b/doc/libs6dns/s6dns-engine.html
@@ -252,5 +252,16 @@ if s6dns_engine_event() returned 1.
You should recycle or free dt after reading the response packet.
+
+ void s6dns_engine_query (s6dns_engine_t const *dt, char **name, uint16_t *len, uint16_t *qtype)
+
+
+
+ Recalls the query encoded in *dt: stores a pointer to the encoded name in
+*name, its length in *len and the query type in *qtype.
+You can call this function
+even if dt has been recycled - but, of course, not if it has been freed.
+
+