]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
buf.h added, we need some kind of holding place of dns data
authorMiek Gieben <miekg@NLnetLabs.nl>
Thu, 16 Dec 2004 12:11:39 +0000 (12:11 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Thu, 16 Dec 2004 12:11:39 +0000 (12:11 +0000)
Makefile.in
buf.h [new file with mode: 0644]
wire2host.c

index 099e69eca704acb1fbe33f6a2dfc67ef71a37ef4..b423a95718eb32d7a2e22ce11a39f97e86233306 100644 (file)
@@ -25,7 +25,8 @@ LIBDNS_HEADERS        =       ldns/error.h            \
                        ldns/prototype.h        \
                        ldns/rdata.h            \
                        ldns/rr.h               \
-                       util.h
+                       util.h                  \
+                       buf.h
 LIBDNS_OBJECTS =       $(LIBDNS_SOURCES:.c=.o)
 
 ALL_SOURCES    =       run-test0.c $(LIBDNS_SOURCES)
diff --git a/buf.h b/buf.h
new file mode 100644 (file)
index 0000000..6a02e19
--- /dev/null
+++ b/buf.h
@@ -0,0 +1,19 @@
+/*
+ * buf.h
+ *
+ * a buffer with dns data and a length
+ *
+ * a Net::DNS like library for C
+ *
+ * (c) NLnet Labs, 2004
+ *
+ * See the file LICENSE for the license
+ */
+
+struct ldns_struct_buf
+{
+       size_t size;
+       uint8_t *data;
+};
+typedef ldns_struct_buf ldns_buf;
+
index fd43598515360e2af655784c2611ea80844c1b76..1ef1105090758a4a68da64da91c1c83743a34b27 100644 (file)
  * internal representation
  */
 ssize_t
-rdata_wireformat_to_rdata_atoms(region_type *region,
-                                domain_table_type *owners,
-                                uint16_t rrtype,
-                                uint16_t data_size,
-                                buffer_type *packet,
-                                rdata_atom_type **rdatas)
+rdata_buf_to_rdf(ldns_rdf *rd, ldns_buf *buffer)
 {
         size_t end = buffer_position(packet) + data_size;
         ssize_t i;