summaryrefslogtreecommitdiff
path: root/lib/pqueue.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-04-17 00:06:02 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-04-17 00:06:02 +0000
commit6cbc63316b75e72a04e57ffca146e81ee89d645c (patch)
tree67a20bba1871e3453586434207627eedce777867 /lib/pqueue.h
parentb43d5ea3302a62133e249d0659e531becbcfbe8b (diff)
lib: add removal by item to pqueue
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/pqueue.h')
-rw-r--r--lib/pqueue.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pqueue.h b/lib/pqueue.h
index 8bb6961d86..b39fb92ee9 100644
--- a/lib/pqueue.h
+++ b/lib/pqueue.h
@@ -39,6 +39,7 @@ extern void pqueue_delete (struct pqueue *queue);
extern void pqueue_enqueue (void *data, struct pqueue *queue);
extern void *pqueue_dequeue (struct pqueue *queue);
extern void pqueue_remove_at (int index, struct pqueue *queue);
+extern void pqueue_remove (void *data, struct pqueue *queue);
extern void trickle_down (int index, struct pqueue *queue);
extern void trickle_up (int index, struct pqueue *queue);