diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-11-27 10:04:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-11-27 10:04:14 +0000 |
commit | 47c52147dac6bc423b43aa8e2721585df893440b (patch) | |
tree | f70838a0ad5400cc100ec948a6ccb6295a509379 /src/set/set_api.c | |
parent | 4d376fad783520443f21216de0eed2d8cfc43c97 (diff) | |
download | gnunet-47c52147dac6bc423b43aa8e2721585df893440b.tar.gz gnunet-47c52147dac6bc423b43aa8e2721585df893440b.zip |
rename element's type field to 'element_type'
Diffstat (limited to 'src/set/set_api.c')
-rw-r--r-- | src/set/set_api.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/set/set_api.c b/src/set/set_api.c index 10421ebda..1ef0cc50c 100644 --- a/src/set/set_api.c +++ b/src/set/set_api.c | |||
@@ -234,7 +234,7 @@ handle_iter_element (void *cls, const struct GNUNET_MessageHeader *mh) | |||
234 | return; | 234 | return; |
235 | 235 | ||
236 | element.size = ntohs (mh->size) - sizeof (struct GNUNET_SET_IterResponseMessage); | 236 | element.size = ntohs (mh->size) - sizeof (struct GNUNET_SET_IterResponseMessage); |
237 | element.type = htons (msg->element_type); | 237 | element.element_type = htons (msg->element_type); |
238 | element.data = &msg[1]; | 238 | element.data = &msg[1]; |
239 | set->iterator (set->iterator_cls, &element); | 239 | set->iterator (set->iterator_cls, &element); |
240 | ev = GNUNET_MQ_msg (ack_msg, GNUNET_MESSAGE_TYPE_SET_ITER_ACK); | 240 | ev = GNUNET_MQ_msg (ack_msg, GNUNET_MESSAGE_TYPE_SET_ITER_ACK); |
@@ -306,7 +306,7 @@ handle_result (void *cls, const struct GNUNET_MessageHeader *mh) | |||
306 | 306 | ||
307 | e.data = &msg[1]; | 307 | e.data = &msg[1]; |
308 | e.size = ntohs (mh->size) - sizeof (struct GNUNET_SET_ResultMessage); | 308 | e.size = ntohs (mh->size) - sizeof (struct GNUNET_SET_ResultMessage); |
309 | e.type = msg->element_type; | 309 | e.element_type = msg->element_type; |
310 | if (NULL != oh->result_cb) | 310 | if (NULL != oh->result_cb) |
311 | oh->result_cb (oh->result_cls, &e, result_status); | 311 | oh->result_cb (oh->result_cls, &e, result_status); |
312 | } | 312 | } |
@@ -552,7 +552,7 @@ GNUNET_SET_add_element (struct GNUNET_SET_Handle *set, | |||
552 | } | 552 | } |
553 | 553 | ||
554 | mqm = GNUNET_MQ_msg_extra (msg, element->size, GNUNET_MESSAGE_TYPE_SET_ADD); | 554 | mqm = GNUNET_MQ_msg_extra (msg, element->size, GNUNET_MESSAGE_TYPE_SET_ADD); |
555 | msg->element_type = element->type; | 555 | msg->element_type = element->element_type; |
556 | memcpy (&msg[1], element->data, element->size); | 556 | memcpy (&msg[1], element->data, element->size); |
557 | GNUNET_MQ_notify_sent (mqm, cont, cont_cls); | 557 | GNUNET_MQ_notify_sent (mqm, cont, cont_cls); |
558 | GNUNET_MQ_send (set->mq, mqm); | 558 | GNUNET_MQ_send (set->mq, mqm); |
@@ -569,8 +569,8 @@ GNUNET_SET_add_element (struct GNUNET_SET_Handle *set, | |||
569 | * @param set set to remove element from | 569 | * @param set set to remove element from |
570 | * @param element element to remove from the set | 570 | * @param element element to remove from the set |
571 | * @param cont continuation called after the element has been removed | 571 | * @param cont continuation called after the element has been removed |
572 | * @param cont_cls closure for cont | 572 | * @param cont_cls closure for @a cont |
573 | * @return GNUNET_OK on success, GNUNET_SYSERR if the | 573 | * @return #GNUNET_OK on success, #GNUNET_SYSERR if the |
574 | * set is invalid (e.g. the set service crashed) | 574 | * set is invalid (e.g. the set service crashed) |
575 | */ | 575 | */ |
576 | int | 576 | int |
@@ -590,7 +590,7 @@ GNUNET_SET_remove_element (struct GNUNET_SET_Handle *set, | |||
590 | } | 590 | } |
591 | 591 | ||
592 | mqm = GNUNET_MQ_msg_extra (msg, element->size, GNUNET_MESSAGE_TYPE_SET_REMOVE); | 592 | mqm = GNUNET_MQ_msg_extra (msg, element->size, GNUNET_MESSAGE_TYPE_SET_REMOVE); |
593 | msg->element_type = element->type; | 593 | msg->element_type = element->element_type; |
594 | memcpy (&msg[1], element->data, element->size); | 594 | memcpy (&msg[1], element->data, element->size); |
595 | GNUNET_MQ_notify_sent (mqm, cont, cont_cls); | 595 | GNUNET_MQ_notify_sent (mqm, cont, cont_cls); |
596 | GNUNET_MQ_send (set->mq, mqm); | 596 | GNUNET_MQ_send (set->mq, mqm); |