Commit dbb82b0f authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Make opaque_data parameter in nghttp2_submit_goaway const

parent e1eebf08
...@@ -2230,7 +2230,7 @@ int nghttp2_submit_ping(nghttp2_session *session, uint8_t flags, ...@@ -2230,7 +2230,7 @@ int nghttp2_submit_ping(nghttp2_session *session, uint8_t flags,
*/ */
int nghttp2_submit_goaway(nghttp2_session *session, uint8_t flags, int nghttp2_submit_goaway(nghttp2_session *session, uint8_t flags,
nghttp2_error_code error_code, nghttp2_error_code error_code,
uint8_t *opaque_data, size_t opaque_data_len); const uint8_t *opaque_data, size_t opaque_data_len);
/** /**
* @function * @function
......
...@@ -4650,7 +4650,8 @@ int nghttp2_session_add_ping(nghttp2_session *session, uint8_t flags, ...@@ -4650,7 +4650,8 @@ int nghttp2_session_add_ping(nghttp2_session *session, uint8_t flags,
int nghttp2_session_add_goaway(nghttp2_session *session, int nghttp2_session_add_goaway(nghttp2_session *session,
int32_t last_stream_id, int32_t last_stream_id,
nghttp2_error_code error_code, nghttp2_error_code error_code,
uint8_t *opaque_data, size_t opaque_data_len) const uint8_t *opaque_data,
size_t opaque_data_len)
{ {
int rv; int rv;
nghttp2_frame *frame; nghttp2_frame *frame;
......
...@@ -274,7 +274,8 @@ int nghttp2_session_add_ping(nghttp2_session *session, uint8_t flags, ...@@ -274,7 +274,8 @@ int nghttp2_session_add_ping(nghttp2_session *session, uint8_t flags,
int nghttp2_session_add_goaway(nghttp2_session *session, int nghttp2_session_add_goaway(nghttp2_session *session,
int32_t last_stream_id, int32_t last_stream_id,
nghttp2_error_code error_code, nghttp2_error_code error_code,
uint8_t *opaque_data, size_t opaque_data_len); const uint8_t *opaque_data,
size_t opaque_data_len);
/* /*
* Adds WINDOW_UPDATE frame with stream ID |stream_id| and * Adds WINDOW_UPDATE frame with stream ID |stream_id| and
......
...@@ -167,7 +167,7 @@ int nghttp2_submit_rst_stream(nghttp2_session *session, uint8_t flags, ...@@ -167,7 +167,7 @@ int nghttp2_submit_rst_stream(nghttp2_session *session, uint8_t flags,
int nghttp2_submit_goaway(nghttp2_session *session, uint8_t flags, int nghttp2_submit_goaway(nghttp2_session *session, uint8_t flags,
nghttp2_error_code error_code, nghttp2_error_code error_code,
uint8_t *opaque_data, size_t opaque_data_len) const uint8_t *opaque_data, size_t opaque_data_len)
{ {
return nghttp2_session_add_goaway(session, session->last_stream_id, return nghttp2_session_add_goaway(session, session->last_stream_id,
error_code, opaque_data, opaque_data_len); error_code, opaque_data, opaque_data_len);
......
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