aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_dns_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-01 23:39:24 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-01 23:39:24 +0000
commit402a25de1ef93133c9879706071081405ade61f6 (patch)
tree96763797649dd4bff0b7f8b2010a0589f8179dcb /src/include/gnunet_dns_service.h
parent3e73780b201b600dd8dd8725f5a628d62d9c4f51 (diff)
downloadgnunet-402a25de1ef93133c9879706071081405ade61f6.tar.gz
gnunet-402a25de1ef93133c9879706071081405ade61f6.zip
first quick hack to extract an initial DNS service API
Diffstat (limited to 'src/include/gnunet_dns_service.h')
-rw-r--r--src/include/gnunet_dns_service.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/include/gnunet_dns_service.h b/src/include/gnunet_dns_service.h
index 2423009eb..4dcf6c375 100644
--- a/src/include/gnunet_dns_service.h
+++ b/src/include/gnunet_dns_service.h
@@ -29,6 +29,7 @@
29#define GNUNET_DNS_SERVICE_H 29#define GNUNET_DNS_SERVICE_H
30 30
31#include "gnunet_common.h" 31#include "gnunet_common.h"
32#include "gnunet_util_lib.h"
32 33
33GNUNET_NETWORK_STRUCT_BEGIN 34GNUNET_NETWORK_STRUCT_BEGIN
34 35
@@ -140,4 +141,29 @@ struct answer_packet_list
140}; 141};
141GNUNET_NETWORK_STRUCT_END 142GNUNET_NETWORK_STRUCT_END
142 143
144struct GNUNET_DNS_Handle;
145
146/**
147 * Connect to the service-dns
148 */
149struct GNUNET_DNS_Handle *
150GNUNET_DNS_connect (const struct GNUNET_CONFIGURATION_Handle *cfg,
151 GNUNET_SCHEDULER_Task cb,
152 void *cb_cls);
153
154void
155GNUNET_DNS_restart_hijack (struct GNUNET_DNS_Handle *h);
156
157
158/**
159 * FIXME: we should not expost our internal structures like this.
160 * Just a quick initial hack.
161 */
162void
163GNUNET_DNS_queue_request (struct GNUNET_DNS_Handle *h,
164 struct query_packet_list *q);
165
166void
167GNUNET_DNS_disconnect (struct GNUNET_DNS_Handle *h);
168
143#endif 169#endif