X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=wfqueue.c;h=14272cb2eefba483bcb7a949209965684838597a;hp=182b4a427ca9886f0ac64c924ccd3c21565103ce;hb=a4922ed92bea8e5552a3e66b7dd7b4721b754c90;hpb=b0dd35e28adda68dc6a564cf770a5d422d62259f diff --git a/wfqueue.c b/wfqueue.c index 182b4a4..14272cb 100644 --- a/wfqueue.c +++ b/wfqueue.c @@ -20,35 +20,38 @@ * 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) { - _wfq_node_init(node); + _cds_wfq_node_init(node); } -void wfq_init(struct wfq_queue *q) +void cds_wfq_init(struct cds_wfq_queue *q) { - _wfq_init(q); + _cds_wfq_init(q); } -void wfq_enqueue(struct wfq_queue *q, struct wfq_node *node) +void cds_wfq_enqueue(struct cds_wfq_queue *q, struct cds_wfq_node *node) { - _wfq_enqueue(q, node); + _cds_wfq_enqueue(q, node); } -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); } -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); }