diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-01 23:39:24 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-01 23:39:24 +0000 |
commit | 402a25de1ef93133c9879706071081405ade61f6 (patch) | |
tree | 96763797649dd4bff0b7f8b2010a0589f8179dcb /src/include/gnunet_dns_service.h | |
parent | 3e73780b201b600dd8dd8725f5a628d62d9c4f51 (diff) | |
download | gnunet-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.h | 26 |
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 | ||
33 | GNUNET_NETWORK_STRUCT_BEGIN | 34 | GNUNET_NETWORK_STRUCT_BEGIN |
34 | 35 | ||
@@ -140,4 +141,29 @@ struct answer_packet_list | |||
140 | }; | 141 | }; |
141 | GNUNET_NETWORK_STRUCT_END | 142 | GNUNET_NETWORK_STRUCT_END |
142 | 143 | ||
144 | struct GNUNET_DNS_Handle; | ||
145 | |||
146 | /** | ||
147 | * Connect to the service-dns | ||
148 | */ | ||
149 | struct GNUNET_DNS_Handle * | ||
150 | GNUNET_DNS_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, | ||
151 | GNUNET_SCHEDULER_Task cb, | ||
152 | void *cb_cls); | ||
153 | |||
154 | void | ||
155 | GNUNET_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 | */ | ||
162 | void | ||
163 | GNUNET_DNS_queue_request (struct GNUNET_DNS_Handle *h, | ||
164 | struct query_packet_list *q); | ||
165 | |||
166 | void | ||
167 | GNUNET_DNS_disconnect (struct GNUNET_DNS_Handle *h); | ||
168 | |||
143 | #endif | 169 | #endif |