summaryrefslogtreecommitdiff
path: root/src/include/gnunet_dns_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_dns_service.h')
-rw-r--r--src/include/gnunet_dns_service.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/include/gnunet_dns_service.h b/src/include/gnunet_dns_service.h
index e97429d1d..da2881e5b 100644
--- a/src/include/gnunet_dns_service.h
+++ b/src/include/gnunet_dns_service.h
@@ -49,7 +49,8 @@ struct GNUNET_DNS_RequestHandle;
49/** 49/**
50 * Flags that specify when to call the client's handler. 50 * Flags that specify when to call the client's handler.
51 */ 51 */
52enum GNUNET_DNS_Flags { 52enum GNUNET_DNS_Flags
53{
53 /** 54 /**
54 * Useless option: never call the client. 55 * Useless option: never call the client.
55 */ 56 */
@@ -134,7 +135,7 @@ typedef void
134 * @param rh request that should now be forwarded 135 * @param rh request that should now be forwarded
135 */ 136 */
136void 137void
137GNUNET_DNS_request_forward(struct GNUNET_DNS_RequestHandle *rh); 138GNUNET_DNS_request_forward (struct GNUNET_DNS_RequestHandle *rh);
138 139
139 140
140/** 141/**
@@ -144,7 +145,7 @@ GNUNET_DNS_request_forward(struct GNUNET_DNS_RequestHandle *rh);
144 * @param rh request that should now be dropped 145 * @param rh request that should now be dropped
145 */ 146 */
146void 147void
147GNUNET_DNS_request_drop(struct GNUNET_DNS_RequestHandle *rh); 148GNUNET_DNS_request_drop (struct GNUNET_DNS_RequestHandle *rh);
148 149
149 150
150/** 151/**
@@ -158,9 +159,9 @@ GNUNET_DNS_request_drop(struct GNUNET_DNS_RequestHandle *rh);
158 * @param reply reply data 159 * @param reply reply data
159 */ 160 */
160void 161void
161GNUNET_DNS_request_answer(struct GNUNET_DNS_RequestHandle *rh, 162GNUNET_DNS_request_answer (struct GNUNET_DNS_RequestHandle *rh,
162 uint16_t reply_length, 163 uint16_t reply_length,
163 const char *reply); 164 const char *reply);
164 165
165 166
166/** 167/**
@@ -173,10 +174,10 @@ GNUNET_DNS_request_answer(struct GNUNET_DNS_RequestHandle *rh,
173 * @return DNS handle 174 * @return DNS handle
174 */ 175 */
175struct GNUNET_DNS_Handle * 176struct GNUNET_DNS_Handle *
176GNUNET_DNS_connect(const struct GNUNET_CONFIGURATION_Handle *cfg, 177GNUNET_DNS_connect (const struct GNUNET_CONFIGURATION_Handle *cfg,
177 enum GNUNET_DNS_Flags flags, 178 enum GNUNET_DNS_Flags flags,
178 GNUNET_DNS_RequestHandler rh, 179 GNUNET_DNS_RequestHandler rh,
179 void *rh_cls); 180 void *rh_cls);
180 181
181 182
182/** 183/**
@@ -185,7 +186,7 @@ GNUNET_DNS_connect(const struct GNUNET_CONFIGURATION_Handle *cfg,
185 * @param dh DNS handle 186 * @param dh DNS handle
186 */ 187 */
187void 188void
188GNUNET_DNS_disconnect(struct GNUNET_DNS_Handle *dh); 189GNUNET_DNS_disconnect (struct GNUNET_DNS_Handle *dh);
189 190
190 191
191#endif 192#endif