#INSTALL_PROGRAM = $(INSTALL)
LIBDNS_SOURCES = rdata.c util.c rr.c packet.c wire2host.c \
- host2str.c buffer.c str2host.c resolver.c
+ host2str.c buffer.c str2host.c resolver.c \
+ net.c
LIBDNS_HEADERS = ldns/error.h \
ldns/packet.h \
ldns/prototype.h \
ldns_pkt * ldns_search();
ldns_pkt * ldns_query();
-ldns_pkt * ldns_send();
+ldns_pkt * ldns_send(ldns_resolver *, uint8_t*, uint8_t*, uint8_t*);
ldns_pkt * ldns_bgsend();
#endif /* !_LDNS_RESOLVER_H */
--- /dev/null
+/*
+ * net.c
+ *
+ * Network implementation
+ * All network related functions are grouped here
+ *
+ * a Net::DNS like library for C
+ *
+ * (c) NLnet Labs, 2004
+ *
+ * See the file LICENSE for the license
+ */
+
+#include <config.h>
+
+#include <ldns/rdata.h>
+#include <ldns/error.h>
+#include <ldns/resolver.h>
+
+#include "util.h"
/* more sophisticated functions */
+/** \brief create a new resolver structure */
+ldns_resolver *
+ldns_resover_new(void)
+{
+ ldns_resolver *r;
+
+ r = MALLOC(ldns_resolver);
+
+ /* no defaults are filled out yet */
+
+ return r;
+}
+
/* search for information in the DNS.
* search() applies the search list.
* See Net::DNS::Resolver for details
/* send the query as-is */
ldns_pkt *
-ldns_send()
+ldns_send(ldns_resolver *r, uint8_t *name, uint8_t *type, uint8_t *class)
{
+ assert(r != NULL);
+ assert(name != NULL);
+
return NULL;
}