aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorDavid Brodski <david@brodski.eu>2011-04-12 23:32:17 +0000
committerDavid Brodski <david@brodski.eu>2011-04-12 23:32:17 +0000
commitd8cd4422e9d88a0c8180976179662ae2e890db6d (patch)
tree39bae110bd2dc618212207ac6a6c9ab382207c9b /src/util
parentd1012f124a152d33d686487d16c0d2cb64121927 (diff)
downloadgnunet-d8cd4422e9d88a0c8180976179662ae2e890db6d.tar.gz
gnunet-d8cd4422e9d88a0c8180976179662ae2e890db6d.zip
Added GNUNET_CONTAINER_node_get_cost
Diffstat (limited to 'src/util')
-rw-r--r--src/util/container_heap.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/util/container_heap.c b/src/util/container_heap.c
index c332cdd63..89e65b270 100644
--- a/src/util/container_heap.c
+++ b/src/util/container_heap.c
@@ -188,6 +188,18 @@ GNUNET_CONTAINER_heap_get_size (const struct GNUNET_CONTAINER_Heap *heap)
188 188
189 189
190/** 190/**
191 * Get the current cost of the node
192 *
193 * @param node the node to get the cost of
194 * @return cost of the node
195 */
196GNUNET_CONTAINER_HeapCostType
197GNUNET_CONTAINER_node_get_cost (const struct GNUNET_CONTAINER_HeapNode *node)
198{
199 return node->cost;
200}
201
202/**
191 * Iterate over the children of the given node. 203 * Iterate over the children of the given node.
192 * 204 *
193 * @param heap argument to give to iterator 205 * @param heap argument to give to iterator