* 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)
+{
+ _cds_wfq_init(q);
+}
+
+void cds_wfq_destroy(struct cds_wfq_queue *q)
{
- _wfq_node_init(node);
+ _cds_wfq_destroy(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);
}