summaryrefslogtreecommitdiff
path: root/sldns/wire2str.h
diff options
context:
space:
mode:
Diffstat (limited to 'sldns/wire2str.h')
-rw-r--r--sldns/wire2str.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sldns/wire2str.h b/sldns/wire2str.h
index aac13c548acd7..a64f5807269ce 100644
--- a/sldns/wire2str.h
+++ b/sldns/wire2str.h
@@ -359,6 +359,22 @@ int sldns_wire2str_rr_buf(uint8_t* rr, size_t rr_len, char* str,
size_t str_len);
/**
+ * Convert question RR to string presentation format, on one line. User buffer.
+ * @param rr: wireformat RR data
+ * @param rr_len: length of the rr wire data.
+ * @param str: the string buffer to write to.
+ * If you pass NULL as the str, the return value of the function is
+ * the str_len you need for the entire packet. It does not include
+ * the 0 byte at the end.
+ * @param str_len: the size of the string buffer. If more is needed, it'll
+ * silently truncate the output to fit in the buffer.
+ * @return the number of characters for this element, excluding zerobyte.
+ * Is larger or equal than str_len if output was truncated.
+ */
+int sldns_wire2str_rrquestion_buf(uint8_t* rr, size_t rr_len, char* str,
+ size_t str_len);
+
+/**
* 3597 printout of an RR in unknown rr format.
* There are more format and comment options available for printout
* with the function: TBD(TODO)