diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-21 14:51:28 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-21 14:51:28 +0100 |
commit | 745cf54e655a9fb40a4ba3643de09a3471ca6ef6 (patch) | |
tree | c592fbe4609fd8256d96c4b32f94b4a1a0a5600a /src/cadet/cadet_api.c | |
parent | 0eec69c59e625ecc41dcff20bf2395613185d342 (diff) | |
download | gnunet-745cf54e655a9fb40a4ba3643de09a3471ca6ef6.tar.gz gnunet-745cf54e655a9fb40a4ba3643de09a3471ca6ef6.zip |
renames to avoid ambiguity
Diffstat (limited to 'src/cadet/cadet_api.c')
-rw-r--r-- | src/cadet/cadet_api.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c index fa67eb094..494aab612 100644 --- a/src/cadet/cadet_api.c +++ b/src/cadet/cadet_api.c | |||
@@ -588,7 +588,7 @@ request_data (void *cls) | |||
588 | */ | 588 | */ |
589 | static void | 589 | static void |
590 | handle_channel_created (void *cls, | 590 | handle_channel_created (void *cls, |
591 | const struct GNUNET_CADET_TunnelCreateMessage *msg) | 591 | const struct GNUNET_CADET_LocalChannelCreateMessage *msg) |
592 | { | 592 | { |
593 | struct GNUNET_CADET_Handle *h = cls; | 593 | struct GNUNET_CADET_Handle *h = cls; |
594 | struct GNUNET_CADET_Channel *ch; | 594 | struct GNUNET_CADET_Channel *ch; |
@@ -628,12 +628,12 @@ handle_channel_created (void *cls, | |||
628 | } | 628 | } |
629 | else | 629 | else |
630 | { | 630 | { |
631 | struct GNUNET_CADET_TunnelDestroyMessage *d_msg; | 631 | struct GNUNET_CADET_LocalChannelDestroyMessage *d_msg; |
632 | struct GNUNET_MQ_Envelope *env; | 632 | struct GNUNET_MQ_Envelope *env; |
633 | 633 | ||
634 | LOG (GNUNET_ERROR_TYPE_DEBUG, "No handler for incoming channels\n"); | 634 | LOG (GNUNET_ERROR_TYPE_DEBUG, "No handler for incoming channels\n"); |
635 | env = GNUNET_MQ_msg (d_msg, | 635 | env = GNUNET_MQ_msg (d_msg, |
636 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_DESTROY); | 636 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_DESTROY); |
637 | d_msg->channel_id = msg->channel_id; | 637 | d_msg->channel_id = msg->channel_id; |
638 | GNUNET_MQ_send (h->mq, env); | 638 | GNUNET_MQ_send (h->mq, env); |
639 | } | 639 | } |
@@ -649,7 +649,7 @@ handle_channel_created (void *cls, | |||
649 | */ | 649 | */ |
650 | static void | 650 | static void |
651 | handle_channel_destroy (void *cls, | 651 | handle_channel_destroy (void *cls, |
652 | const struct GNUNET_CADET_TunnelDestroyMessage *msg) | 652 | const struct GNUNET_CADET_LocalChannelDestroyMessage *msg) |
653 | { | 653 | { |
654 | struct GNUNET_CADET_Handle *h = cls; | 654 | struct GNUNET_CADET_Handle *h = cls; |
655 | struct GNUNET_CADET_Channel *ch; | 655 | struct GNUNET_CADET_Channel *ch; |
@@ -1282,12 +1282,12 @@ do_reconnect (struct GNUNET_CADET_Handle *h) | |||
1282 | { | 1282 | { |
1283 | struct GNUNET_MQ_MessageHandler handlers[] = { | 1283 | struct GNUNET_MQ_MessageHandler handlers[] = { |
1284 | GNUNET_MQ_hd_fixed_size (channel_created, | 1284 | GNUNET_MQ_hd_fixed_size (channel_created, |
1285 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_CREATE, | 1285 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_CREATE, |
1286 | struct GNUNET_CADET_TunnelCreateMessage, | 1286 | struct GNUNET_CADET_LocalChannelCreateMessage, |
1287 | h), | 1287 | h), |
1288 | GNUNET_MQ_hd_fixed_size (channel_destroy, | 1288 | GNUNET_MQ_hd_fixed_size (channel_destroy, |
1289 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_DESTROY, | 1289 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_DESTROY, |
1290 | struct GNUNET_CADET_TunnelDestroyMessage, | 1290 | struct GNUNET_CADET_LocalChannelDestroyMessage, |
1291 | h), | 1291 | h), |
1292 | GNUNET_MQ_hd_var_size (local_data, | 1292 | GNUNET_MQ_hd_var_size (local_data, |
1293 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_DATA, | 1293 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_DATA, |
@@ -1576,7 +1576,7 @@ GNUNET_CADET_channel_create (struct GNUNET_CADET_Handle *h, | |||
1576 | const struct GNUNET_HashCode *port, | 1576 | const struct GNUNET_HashCode *port, |
1577 | enum GNUNET_CADET_ChannelOption options) | 1577 | enum GNUNET_CADET_ChannelOption options) |
1578 | { | 1578 | { |
1579 | struct GNUNET_CADET_TunnelCreateMessage *msg; | 1579 | struct GNUNET_CADET_LocalChannelCreateMessage *msg; |
1580 | struct GNUNET_MQ_Envelope *env; | 1580 | struct GNUNET_MQ_Envelope *env; |
1581 | struct GNUNET_CADET_Channel *ch; | 1581 | struct GNUNET_CADET_Channel *ch; |
1582 | struct GNUNET_CADET_ClientChannelNumber chid; | 1582 | struct GNUNET_CADET_ClientChannelNumber chid; |
@@ -1592,7 +1592,7 @@ GNUNET_CADET_channel_create (struct GNUNET_CADET_Handle *h, | |||
1592 | ch->ctx = channel_ctx; | 1592 | ch->ctx = channel_ctx; |
1593 | ch->peer = GNUNET_PEER_intern (peer); | 1593 | ch->peer = GNUNET_PEER_intern (peer); |
1594 | 1594 | ||
1595 | env = GNUNET_MQ_msg (msg, GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_CREATE); | 1595 | env = GNUNET_MQ_msg (msg, GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_CREATE); |
1596 | msg->channel_id = ch->chid; | 1596 | msg->channel_id = ch->chid; |
1597 | msg->port = *port; | 1597 | msg->port = *port; |
1598 | msg->peer = *peer; | 1598 | msg->peer = *peer; |
@@ -1608,7 +1608,7 @@ void | |||
1608 | GNUNET_CADET_channel_destroy (struct GNUNET_CADET_Channel *channel) | 1608 | GNUNET_CADET_channel_destroy (struct GNUNET_CADET_Channel *channel) |
1609 | { | 1609 | { |
1610 | struct GNUNET_CADET_Handle *h; | 1610 | struct GNUNET_CADET_Handle *h; |
1611 | struct GNUNET_CADET_TunnelDestroyMessage *msg; | 1611 | struct GNUNET_CADET_LocalChannelDestroyMessage *msg; |
1612 | struct GNUNET_MQ_Envelope *env; | 1612 | struct GNUNET_MQ_Envelope *env; |
1613 | struct GNUNET_CADET_TransmitHandle *th; | 1613 | struct GNUNET_CADET_TransmitHandle *th; |
1614 | struct GNUNET_CADET_TransmitHandle *next; | 1614 | struct GNUNET_CADET_TransmitHandle *next; |
@@ -1638,7 +1638,7 @@ GNUNET_CADET_channel_destroy (struct GNUNET_CADET_Channel *channel) | |||
1638 | } | 1638 | } |
1639 | 1639 | ||
1640 | env = GNUNET_MQ_msg (msg, | 1640 | env = GNUNET_MQ_msg (msg, |
1641 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_DESTROY); | 1641 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_DESTROY); |
1642 | msg->channel_id = channel->chid; | 1642 | msg->channel_id = channel->chid; |
1643 | GNUNET_MQ_send (h->mq, env); | 1643 | GNUNET_MQ_send (h->mq, env); |
1644 | 1644 | ||