properly mark symbols in the public API to be exported. This allows us to use -fvisib...
[libfirm] / include / libfirm / adt / pqueue.h
index 05a0d33..b355c24 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef FIRM_ADT_PQUEUE_H
 #define FIRM_ADT_PQUEUE_H
 
+#include "../begin.h"
+
 typedef struct _pqueue_t pqueue_t;
 
 /**
@@ -44,11 +46,11 @@ void del_pqueue(pqueue_t *q);
 
 /**
  * Inserts a new element into a priority queue.
- * @param q      The priority queue the element should be inserted to.
- * @param data   The actual data which should be stored in the queue.
- * @param key    The priority for the data.
+ * @param q         The priority queue the element should be inserted to.
+ * @param data      The actual data which should be stored in the queue.
+ * @param priority  The priority for the data.
  */
-void pqueue_put(pqueue_t *q, void *data, int key);
+void pqueue_put(pqueue_t *q, void *data, int priority);
 
 /**
  * Returns and removes the first element, ie. that one with the highest priority, from the queue.
@@ -71,4 +73,6 @@ int pqueue_length(const pqueue_t *q);
  */
 int pqueue_empty(const pqueue_t *q);
 
+#include "../end.h"
+
 #endif