aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_container_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-16 11:24:30 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-16 11:24:30 +0100
commitd473582634ea55c2a412da1360b05a2898ed568d (patch)
tree39ca0098ac657e5dbc0960469ae05195e2506f60 /src/include/gnunet_container_lib.h
parent301693904d07a063711bfc1ff4c5505c61eaf821 (diff)
downloadgnunet-d473582634ea55c2a412da1360b05a2898ed568d.tar.gz
gnunet-d473582634ea55c2a412da1360b05a2898ed568d.zip
simplify GNUNET_CONTAINER_heap_update_cost API
Diffstat (limited to 'src/include/gnunet_container_lib.h')
-rw-r--r--src/include/gnunet_container_lib.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/include/gnunet_container_lib.h b/src/include/gnunet_container_lib.h
index 03c47c201..075c0822a 100644
--- a/src/include/gnunet_container_lib.h
+++ b/src/include/gnunet_container_lib.h
@@ -1915,8 +1915,8 @@ GNUNET_CONTAINER_heap_get_size (const struct GNUNET_CONTAINER_Heap *heap);
1915 * @return cost of the node 1915 * @return cost of the node
1916 */ 1916 */
1917GNUNET_CONTAINER_HeapCostType 1917GNUNET_CONTAINER_HeapCostType
1918GNUNET_CONTAINER_heap_node_get_cost (const struct GNUNET_CONTAINER_HeapNode 1918GNUNET_CONTAINER_heap_node_get_cost (const struct GNUNET_CONTAINER_HeapNode *node);
1919 *node); 1919
1920 1920
1921/** 1921/**
1922 * @ingroup heap 1922 * @ingroup heap
@@ -2006,13 +2006,11 @@ GNUNET_CONTAINER_heap_remove_node (struct GNUNET_CONTAINER_HeapNode *node);
2006 * @ingroup heap 2006 * @ingroup heap
2007 * Updates the cost of any node in the tree 2007 * Updates the cost of any node in the tree
2008 * 2008 *
2009 * @param heap heap to modify
2010 * @param node node for which the cost is to be changed 2009 * @param node node for which the cost is to be changed
2011 * @param new_cost new cost for the node 2010 * @param new_cost new cost for the node
2012 */ 2011 */
2013void 2012void
2014GNUNET_CONTAINER_heap_update_cost (struct GNUNET_CONTAINER_Heap *heap, 2013GNUNET_CONTAINER_heap_update_cost (struct GNUNET_CONTAINER_HeapNode *node,
2015 struct GNUNET_CONTAINER_HeapNode *node,
2016 GNUNET_CONTAINER_HeapCostType new_cost); 2014 GNUNET_CONTAINER_HeapCostType new_cost);
2017 2015
2018 2016