From: Christian Grothoff Date: Mon, 2 Jan 2012 14:28:15 +0000 (+0000) Subject: -implementing new DNS client API X-Git-Tag: initial-import-from-subversion-38251~15459 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8b453e998873b8b77ebef9d5282314ff3c5f7875;p=oweals%2Fgnunet.git -implementing new DNS client API --- diff --git a/src/dns/Makefile.am b/src/dns/Makefile.am index 9dd95a3b9..393b70cd3 100644 --- a/src/dns/Makefile.am +++ b/src/dns/Makefile.am @@ -28,6 +28,7 @@ endif lib_LTLIBRARIES = \ libgnunetdnsparser.la \ + libgnunetdnsnew.la \ libgnunetdns.la bin_PROGRAMS = \ @@ -68,6 +69,13 @@ libgnunetdns_la_LIBADD = \ libgnunetdns_la_LDFLAGS = \ $(GN_LIB_LDFLAGS) +libgnunetdnsnew_la_SOURCES = \ + dns_api_new.c dns_new.h +libgnunetdnsnew_la_LIBADD = \ + $(top_builddir)/src/util/libgnunetutil.la $(XLIB) +libgnunetdnsnew_la_LDFLAGS = \ + $(GN_LIB_LDFLAGS) + libgnunet_plugin_block_dns_la_SOURCES = \ plugin_block_dns.c libgnunet_plugin_block_dns_la_LIBADD = \ diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index 5b9f0612a..89b00e20d 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h @@ -639,6 +639,25 @@ extern "C" */ #define GNUNET_MESSAGE_TYPE_VPN_REMOTE_ANSWER_DNS 209 +/** + * Initial message from client to DNS service for registration. + */ +#define GNUNET_MESSAGE_TYPE_DNS_CLIENT_INIT 211 + +/** + * Type of messages between the gnunet-helper-dns and the service + */ +#define GNUNET_MESSAGE_TYPE_DNS_CLIENT_REQUEST 212 + +/** + * Type of messages between the gnunet-helper-dns and the service + */ +#define GNUNET_MESSAGE_TYPE_DNS_CLIENT_RESPONSE 213 + +/** + * Type of messages between the gnunet-helper-dns and the service + */ +#define GNUNET_MESSAGE_TYPE_DNS_HELPER 214 /*******************************************************************************