aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_mq_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-06-27 12:20:12 +0000
committerChristian Grothoff <christian@grothoff.org>2016-06-27 12:20:12 +0000
commitd3834ca8024608b1dc7df467405d8a6ed31e8c05 (patch)
tree574d04cea76f73ed0657f400a3267d20a720e01f /src/include/gnunet_mq_lib.h
parent1655c09ee78640747e2d49326e464855ae999d5b (diff)
downloadgnunet-d3834ca8024608b1dc7df467405d8a6ed31e8c05.tar.gz
gnunet-d3834ca8024608b1dc7df467405d8a6ed31e8c05.zip
add function to obtain mq length
Diffstat (limited to 'src/include/gnunet_mq_lib.h')
-rw-r--r--src/include/gnunet_mq_lib.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/gnunet_mq_lib.h b/src/include/gnunet_mq_lib.h
index 0d201d36d..08e09d5b5 100644
--- a/src/include/gnunet_mq_lib.h
+++ b/src/include/gnunet_mq_lib.h
@@ -433,6 +433,16 @@ GNUNET_MQ_discard (struct GNUNET_MQ_Envelope *mqm);
433 433
434 434
435/** 435/**
436 * Obtain the current length of the message queue.
437 *
438 * @param mq queue to inspect
439 * @return number of queued, non-transmitted messages
440 */
441unsigned int
442GNUNET_MQ_get_length (struct GNUNET_MQ_Handle *mq);
443
444
445/**
436 * Send a message with the give message queue. 446 * Send a message with the give message queue.
437 * May only be called once per message. 447 * May only be called once per message.
438 * 448 *