diff options
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 |