e6d3757cb9a5fda9e4d6de836b01a1398ee5a040
[platform/upstream/nghttp2.git] / doc / nghttp2_priority_spec_init.rst
1
2 nghttp2_priority_spec_init
3 ==========================
4
5 Synopsis
6 --------
7
8 *#include <nghttp2/nghttp2.h>*
9
10 .. function:: void nghttp2_priority_spec_init(nghttp2_priority_spec *pri_spec, int32_t stream_id, int32_t weight, int exclusive)
11
12     
13     Initializes *pri_spec* with the *stream_id* of the stream to depend
14     on with *weight* and its exclusive flag.  If *exclusive* is
15     nonzero, exclusive flag is set.
16     
17     The *weight* must be in [:macro:`NGHTTP2_MIN_WEIGHT`,
18     :macro:`NGHTTP2_MAX_WEIGHT`], inclusive.