]> git.meshlink.io Git - catta/blobdiff - prioq.h
* improve dns.c testing program
[catta] / prioq.h
diff --git a/prioq.h b/prioq.h
index e1b87966bfb303fb0046943378f07217dbf0293e..46c64827965f3d0f8931a704360e474d8adc13ac 100644 (file)
--- 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