LRN: Fix automake deps to allow -j* builds again
[oweals/gnunet.git] / src / util / container_heap.c
index c332cdd63da68c9843efc21cded890f32320bc7c..a7e79cc7e387b4c79709455dc9448a3599962d3a 100644 (file)
@@ -187,6 +187,18 @@ GNUNET_CONTAINER_heap_get_size (const struct GNUNET_CONTAINER_Heap *heap)
 }
 
 
+/**
+ * Get the current cost of the node
+ *
+ * @param node the node to get the cost of
+ * @return cost of the node
+ */
+GNUNET_CONTAINER_HeapCostType
+GNUNET_CONTAINER_heap_node_get_cost (const struct GNUNET_CONTAINER_HeapNode *node)
+{
+  return node->cost;
+}
+
 /**
  * Iterate over the children of the given node.
  *