Move frame_type parameter in front of stream_id

This commit moves frame_type parameter of
nghttp2_data_soruce_read_length_callback in front of stream_id
parameter.  The motivation is that other callback is generally put
frame related parameters first.  To make it consistent, we move
frame_type, which is frame ralted parameter, to the left.
This commit is contained in:
Tatsuhiro Tsujikawa
2014-08-25 22:31:11 +09:00
parent 93b4d9efc3
commit 0b1ab90fb8
3 changed files with 9 additions and 9 deletions

View File

@@ -1444,11 +1444,10 @@ typedef ssize_t (*nghttp2_select_padding_callback)
* `nghttp2_session_callbacks_set_data_source_read_length_callback()`.
*/
typedef ssize_t (*nghttp2_data_source_read_length_callback)
(nghttp2_session *session, int32_t stream_id,
(nghttp2_session *session, uint8_t frame_type, int32_t stream_id,
int32_t session_remote_window_size,
int32_t stream_remote_window_size,
uint32_t remote_max_frame_size,
uint8_t frame_type,
void *user_data);
/**