diff options
author | David Brodski <david@brodski.eu> | 2011-04-12 23:32:17 +0000 |
---|---|---|
committer | David Brodski <david@brodski.eu> | 2011-04-12 23:32:17 +0000 |
commit | d8cd4422e9d88a0c8180976179662ae2e890db6d (patch) | |
tree | 39bae110bd2dc618212207ac6a6c9ab382207c9b /src/util | |
parent | d1012f124a152d33d686487d16c0d2cb64121927 (diff) | |
download | gnunet-d8cd4422e9d88a0c8180976179662ae2e890db6d.tar.gz gnunet-d8cd4422e9d88a0c8180976179662ae2e890db6d.zip |
Added GNUNET_CONTAINER_node_get_cost
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/container_heap.c | 12 |
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 | */ | ||
196 | GNUNET_CONTAINER_HeapCostType | ||
197 | GNUNET_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 |