| 165 | } |
| 166 | |
| 167 | static int on_event(h2_stream* stream, h2_stream_event_t ev) |
| 168 | { |
| 169 | H2_STRM_ASSERT_MAGIC(stream, H2_STRM_MAGIC_OK); |
| 170 | if (stream->monitor && stream->monitor->on_event) { |
| 171 | stream->monitor->on_event(stream->monitor->ctx, stream, ev); |
| 172 | } |
| 173 | if (ev < H2_ALEN(trans_on_event)) { |
| 174 | return on_map(stream->state, trans_on_event[ev]); |
| 175 | } |
| 176 | return stream->state; |
| 177 | } |
| 178 | |
| 179 | static ssize_t stream_data_cb(nghttp2_session *ng2s, |
| 180 | int32_t stream_id, |
no test coverage detected