Commit a9d97d9d authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Update doc

parent bd7d335d
...@@ -651,18 +651,18 @@ typedef enum { ...@@ -651,18 +651,18 @@ typedef enum {
*/ */
typedef enum { typedef enum {
/** /**
* No priority is given. * No priority is given. The default priority will be used.
*/ */
NGHTTP2_PRIORITY_TYPE_NONE, NGHTTP2_PRIORITY_TYPE_NONE = 0,
/** /**
* Priority group ID and its weight are specified. * Priority group ID and its weight are specified.
*/ */
NGHTTP2_PRIORITY_TYPE_GROUP, NGHTTP2_PRIORITY_TYPE_GROUP = 1,
/** /**
* The stream ID of a stream to depend on and its exclusive flag is * The stream ID of a stream to depend on and its exclusive flag is
* specified. * specified.
*/ */
NGHTTP2_PRIORITY_TYPE_DEP NGHTTP2_PRIORITY_TYPE_DEP = 2
} nghttp2_priority_type; } nghttp2_priority_type;
/** /**
...@@ -718,7 +718,17 @@ typedef struct { ...@@ -718,7 +718,17 @@ typedef struct {
nghttp2_priority_type pri_type; nghttp2_priority_type pri_type;
union { union {
/**
* Specify priority group ID and its weight. This field is
* interpreted only when |pri_type| member is
* :enum:`NGHTTP2_PRIORITY_TYPE_GROUP`.
*/
nghttp2_priority_group group; nghttp2_priority_group group;
/**
* Specify stream ID of a stream to depend on and exclusive flag.
* This field is interpreted only when |pri_type| member is
* :enum:`NGHTTP2_PRIORITY_TYPE_DEP`.
*/
nghttp2_priority_dep dep; nghttp2_priority_dep dep;
}; };
} nghttp2_priority_spec; } nghttp2_priority_spec;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment