Cleanup: tests: Branch condition evaluates to a garbage value
[urcu.git] / wfqueue.c
index d22aa7cfe9a0a754fc5e7f05d9d32bc9ff00492e..14272cb2eefba483bcb7a949209965684838597a 100644 (file)
--- a/wfqueue.c
+++ b/wfqueue.c
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+/* Remove deprecation warnings from LGPL wrapper build. */
+#define CDS_WFQ_DEPRECATED
+
 /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
 #include "urcu/wfqueue.h"
-#include "urcu/wfqueue-static.h"
+#include "urcu/static/wfqueue.h"
 
 /*
  * library wrappers to be used by non-LGPL compatible source code.
  */
 
-void wfq_node_init(struct wfq_node *node)
+void cds_wfq_node_init(struct cds_wfq_node *node)
+{
+       _cds_wfq_node_init(node);
+}
+
+void cds_wfq_init(struct cds_wfq_queue *q)
 {
-       _wfq_node_init(node);
+       _cds_wfq_init(q);
 }
 
-void wfq_init(struct wfq_queue *q)
+void cds_wfq_enqueue(struct cds_wfq_queue *q, struct cds_wfq_node *node)
 {
-       _wfq_init(q);
+       _cds_wfq_enqueue(q, node);
 }
 
-void wfq_enqueue(struct wfq_queue *q, struct wfq_node *node)
+struct cds_wfq_node *__cds_wfq_dequeue_blocking(struct cds_wfq_queue *q)
 {
-       _wfq_enqueue(q, node);
+       return ___cds_wfq_dequeue_blocking(q);
 }
 
-struct wfq_node *wfq_dequeue_blocking(struct wfq_queue *q)
+struct cds_wfq_node *cds_wfq_dequeue_blocking(struct cds_wfq_queue *q)
 {
-       return _wfq_dequeue_blocking(q);
+       return _cds_wfq_dequeue_blocking(q);
 }
This page took 0.023016 seconds and 4 git commands to generate.