summaryrefslogtreecommitdiffstats
path: root/prioq.h
diff options
context:
space:
mode:
Diffstat (limited to 'prioq.h')
-rw-r--r--prioq.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/prioq.h b/prioq.h
index e1b8796..46c6482 100644
--- a/prioq.h
+++ b/prioq.h
@@ -13,7 +13,7 @@ struct _flxPrioQueue {
flxPrioQueueNode *root, *last;
guint n_nodes;
- gint (*compare) (gpointer a, gpointer b);
+ gint (*compare) (gconstpointer a, gconstpointer b);
};
struct _flxPrioQueueNode {
@@ -24,10 +24,12 @@ struct _flxPrioQueueNode {
flxPrioQueueNode *left, *right, *parent, *next, *prev;
};
-flxPrioQueue* flx_prio_queue_new(gint (*compare) (gpointer a, gpointer b));
+flxPrioQueue* flx_prio_queue_new(gint (*compare) (gconstpointer a, gconstpointer b));
void flx_prio_queue_free(flxPrioQueue *q);
flxPrioQueueNode* flx_prio_queue_put(flxPrioQueue *q, gpointer data);
void flx_prio_queue_remove(flxPrioQueue *q, flxPrioQueueNode *n);
+void flx_prio_queue_shuffle(flxPrioQueue *q, flxPrioQueueNode *n);
+
#endif