diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2016-09-25 18:29:08 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2016-09-25 18:29:08 +0000 |
commit | ca1cea453795dd8aa1b68dfb8f311bda85102a8c (patch) | |
tree | e239916b784d980a599fef3b14c40202bc1460c9 /src/gns/gns_api.c | |
parent | 0f498b21da0314edd8d35b419ea10ca25128bc83 (diff) | |
download | gnunet-ca1cea453795dd8aa1b68dfb8f311bda85102a8c.tar.gz gnunet-ca1cea453795dd8aa1b68dfb8f311bda85102a8c.zip |
- move to new MQ API
Diffstat (limited to 'src/gns/gns_api.c')
-rw-r--r-- | src/gns/gns_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gns/gns_api.c b/src/gns/gns_api.c index 475d5b5cd..b9b95b7c2 100644 --- a/src/gns/gns_api.c +++ b/src/gns/gns_api.c | |||
@@ -193,7 +193,7 @@ mq_error_handler (void *cls, | |||
193 | */ | 193 | */ |
194 | static int | 194 | static int |
195 | check_result (void *cls, | 195 | check_result (void *cls, |
196 | const struct GNUNET_GNS_ClientLookupResultMessage *lookup_msg) | 196 | const struct LookupResultMessage *lookup_msg) |
197 | { | 197 | { |
198 | size_t mlen = ntohs (lookup_msg->header.size) - sizeof (*lookup_msg); | 198 | size_t mlen = ntohs (lookup_msg->header.size) - sizeof (*lookup_msg); |
199 | uint32_t rd_count = ntohl (lookup_msg->rd_count); | 199 | uint32_t rd_count = ntohl (lookup_msg->rd_count); |
@@ -220,7 +220,7 @@ check_result (void *cls, | |||
220 | */ | 220 | */ |
221 | static void | 221 | static void |
222 | handle_result (void *cls, | 222 | handle_result (void *cls, |
223 | const struct GNUNET_GNS_ClientLookupResultMessage *lookup_msg) | 223 | const struct LookupResultMessage *lookup_msg) |
224 | { | 224 | { |
225 | struct GNUNET_GNS_Handle *handle = cls; | 225 | struct GNUNET_GNS_Handle *handle = cls; |
226 | size_t mlen = ntohs (lookup_msg->header.size) - sizeof (*lookup_msg); | 226 | size_t mlen = ntohs (lookup_msg->header.size) - sizeof (*lookup_msg); |
@@ -267,7 +267,7 @@ reconnect (struct GNUNET_GNS_Handle *handle) | |||
267 | struct GNUNET_MQ_MessageHandler handlers[] = { | 267 | struct GNUNET_MQ_MessageHandler handlers[] = { |
268 | GNUNET_MQ_hd_var_size (result, | 268 | GNUNET_MQ_hd_var_size (result, |
269 | GNUNET_MESSAGE_TYPE_GNS_LOOKUP_RESULT, | 269 | GNUNET_MESSAGE_TYPE_GNS_LOOKUP_RESULT, |
270 | struct GNUNET_GNS_ClientLookupResultMessage, | 270 | struct LookupResultMessage, |
271 | handle), | 271 | handle), |
272 | GNUNET_MQ_handler_end () | 272 | GNUNET_MQ_handler_end () |
273 | }; | 273 | }; |
@@ -377,7 +377,7 @@ GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, | |||
377 | void *proc_cls) | 377 | void *proc_cls) |
378 | { | 378 | { |
379 | /* IPC to shorten gns names, return shorten_handle */ | 379 | /* IPC to shorten gns names, return shorten_handle */ |
380 | struct GNUNET_GNS_ClientLookupMessage *lookup_msg; | 380 | struct LookupMessage *lookup_msg; |
381 | struct GNUNET_GNS_LookupRequest *lr; | 381 | struct GNUNET_GNS_LookupRequest *lr; |
382 | size_t nlen; | 382 | size_t nlen; |
383 | 383 | ||