#ifndef _NGX_HTTP_UPSTREAM_ROUND_ROBIN_H_INCLUDED_
#define _NGX_HTTP_UPSTREAM_ROUND_ROBIN_H_INCLUDED_
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
ngx_http_upstream_rr_peer_t;
struct ngx_http_upstream_rr_peer_s { … };
ngx_http_upstream_rr_peers_t;
struct ngx_http_upstream_rr_peers_s { … };
#if (NGX_HTTP_UPSTREAM_ZONE)
#define ngx_http_upstream_rr_peers_rlock(peers) …
#define ngx_http_upstream_rr_peers_wlock(peers) …
#define ngx_http_upstream_rr_peers_unlock(peers) …
#define ngx_http_upstream_rr_peer_lock(peers, peer) …
#define ngx_http_upstream_rr_peer_unlock(peers, peer) …
#else
#define ngx_http_upstream_rr_peers_rlock …
#define ngx_http_upstream_rr_peers_wlock …
#define ngx_http_upstream_rr_peers_unlock …
#define ngx_http_upstream_rr_peer_lock …
#define ngx_http_upstream_rr_peer_unlock …
#endif
ngx_http_upstream_rr_peer_data_t;
ngx_int_t ngx_http_upstream_init_round_robin(ngx_conf_t *cf,
ngx_http_upstream_srv_conf_t *us);
ngx_int_t ngx_http_upstream_init_round_robin_peer(ngx_http_request_t *r,
ngx_http_upstream_srv_conf_t *us);
ngx_int_t ngx_http_upstream_create_round_robin_peer(ngx_http_request_t *r,
ngx_http_upstream_resolved_t *ur);
ngx_int_t ngx_http_upstream_get_round_robin_peer(ngx_peer_connection_t *pc,
void *data);
void ngx_http_upstream_free_round_robin_peer(ngx_peer_connection_t *pc,
void *data, ngx_uint_t state);
#if (NGX_HTTP_SSL)
ngx_int_t
ngx_http_upstream_set_round_robin_peer_session(ngx_peer_connection_t *pc,
void *data);
void ngx_http_upstream_save_round_robin_peer_session(ngx_peer_connection_t *pc,
void *data);
#endif
#endif