Make opaque_data parameter in nghttp2_submit_goaway const

This commit is contained in:
Tatsuhiro Tsujikawa 2014-03-22 19:05:58 +09:00
parent e1eebf08fb
commit dbb82b0f9c
4 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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);