-implementing new DNS client API
authorChristian Grothoff <christian@grothoff.org>
Mon, 2 Jan 2012 14:28:15 +0000 (14:28 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 2 Jan 2012 14:28:15 +0000 (14:28 +0000)
src/dns/Makefile.am
src/include/gnunet_protocols.h

index 9dd95a3b9d3fa81d441a2b8e0198085e583f8d1b..393b70cd35bd5185b4336b04eb9f890bd8ac6b0c 100644 (file)
@@ -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 = \
index 5b9f0612a1864ffcccfd09ed23f15bdddbe5ed00..89b00e20d7a73c6352757562f3b86dc1ad63d3e1 100644 (file)
@@ -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
 
 
 /*******************************************************************************