nginx/src/core/ngx_queue.h


/*
 * Copyright (C) Igor Sysoev
 * Copyright (C) Nginx, Inc.
 */


#include <ngx_config.h>
#include <ngx_core.h>


#ifndef _NGX_QUEUE_H_INCLUDED_
#define _NGX_QUEUE_H_INCLUDED_


ngx_queue_t;

struct ngx_queue_s {};


#define ngx_queue_init(q)


#define ngx_queue_empty(h)


#define ngx_queue_insert_head(h, x)


#define ngx_queue_insert_after


#define ngx_queue_insert_tail(h, x)


#define ngx_queue_insert_before


#define ngx_queue_head(h)


#define ngx_queue_last(h)


#define ngx_queue_sentinel(h)


#define ngx_queue_next(q)


#define ngx_queue_prev(q)


#if (NGX_DEBUG)

#define ngx_queue_remove

#else

#define ngx_queue_remove(x)

#endif


#define ngx_queue_split(h, q, n)


#define ngx_queue_add(h, n)


#define ngx_queue_data(q, type, link)


ngx_queue_t *ngx_queue_middle(ngx_queue_t *queue);
void ngx_queue_sort(ngx_queue_t *queue,
    ngx_int_t (*cmp)(const ngx_queue_t *, const ngx_queue_t *));


#endif /* _NGX_QUEUE_H_INCLUDED_ */