[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35637 - gnunet/src/cadet
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35637 - gnunet/src/cadet |
Date: |
Mon, 27 Apr 2015 21:15:36 +0200 |
Author: bartpolot
Date: 2015-04-27 21:15:36 +0200 (Mon, 27 Apr 2015)
New Revision: 35637
Modified:
gnunet/src/cadet/gnunet-service-cadet_peer.c
Log:
- proper name for continuation
Modified: gnunet/src/cadet/gnunet-service-cadet_peer.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_peer.c 2015-04-27 19:15:35 UTC
(rev 35636)
+++ gnunet/src/cadet/gnunet-service-cadet_peer.c 2015-04-27 19:15:36 UTC
(rev 35637)
@@ -107,12 +107,12 @@
/**
* Function to call on sending.
*/
- GCP_sent callback;
+ GCP_sent cont;
/**
* Closure for callback.
*/
- void *callback_cls;
+ void *cont_cls;
};
/**
@@ -1289,17 +1289,16 @@
peer->queue_n--;
}
- if (NULL != queue->callback)
+ if (NULL != queue->cont)
{
struct GNUNET_TIME_Relative wait_time;
wait_time = GNUNET_TIME_absolute_get_duration (queue->start_waiting);
LOG (GNUNET_ERROR_TYPE_DEBUG, " calling callback, time elapsed %s\n",
GNUNET_STRINGS_relative_time_to_string (wait_time, GNUNET_NO));
- connection_destroyed = queue->callback (queue->callback_cls,
- queue->c, sent, queue->type, pid,
- queue->fwd, queue->size,
- wait_time);
+ connection_destroyed = queue->cont (queue->cont_cls,
+ queue->c, sent, queue->type, pid,
+ queue->fwd, queue->size, wait_time);
}
else
{
@@ -1386,8 +1385,8 @@
q->peer = peer;
q->c = c;
q->fwd = fwd;
- q->callback = cont;
- q->callback_cls = cont_cls;
+ q->cont = cont;
+ q->cont_cls = cont_cls;
if (100 > priority)
{
GNUNET_CONTAINER_DLL_insert_tail (peer->queue_head, peer->queue_tail, q);
@@ -1548,9 +1547,9 @@
next = q->next;
if (q->c != c)
continue;
- LOG (GNUNET_ERROR_TYPE_DEBUG, " - queued: %s (%s %u), callback: %p\n",
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " - queued: %s (%s %u), cont: %p\n",
GC_m2s (q->type), GC_m2s (q->payload_type), q->payload_id,
- q->callback);
+ q->cont);
switch (q->type)
{
case GNUNET_MESSAGE_TYPE_CADET_CONNECTION_CREATE:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35637 - gnunet/src/cadet,
gnunet <=