summaryrefslogtreecommitdiff
path: root/src/pqueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pqueue.h')
-rw-r--r--src/pqueue.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pqueue.h b/src/pqueue.h
index 6db74661d..7a1394803 100644
--- a/src/pqueue.h
+++ b/src/pqueue.h
@@ -53,6 +53,11 @@ int git_pqueue_init(git_pqueue *q, size_t n, git_pqueue_cmp cmppri);
*/
void git_pqueue_free(git_pqueue *q);
+/**
+ * clear all the elements in the queue
+ * @param q the queue
+ */
+void git_pqueue_clear(git_pqueue *q);
/**
* return the size of the queue.