mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-08 19:18:53 +08:00
Remove nghttp2_on_data_recv_callback and nghttp2_on_data_send_callback
nghttp2_data is added to nghttp2_frame union. When DATA is received, nghttp2_on_frame_recv_callback is called. When DATA is sent, nghttp2_on_frame_send_callback is called.
This commit is contained in:
@@ -181,9 +181,10 @@ void nghttp2_frame_window_update_init(nghttp2_window_update *frame,
|
||||
void nghttp2_frame_window_update_free(nghttp2_window_update *frame)
|
||||
{}
|
||||
|
||||
void nghttp2_frame_data_init(nghttp2_private_data *frame, uint8_t flags,
|
||||
int32_t stream_id,
|
||||
const nghttp2_data_provider *data_prd)
|
||||
void nghttp2_frame_private_data_init(nghttp2_private_data *frame,
|
||||
uint8_t flags,
|
||||
int32_t stream_id,
|
||||
const nghttp2_data_provider *data_prd)
|
||||
{
|
||||
memset(frame, 0, sizeof(nghttp2_private_data));
|
||||
/* At this moment, the length of DATA frame is unknown */
|
||||
@@ -191,7 +192,7 @@ void nghttp2_frame_data_init(nghttp2_private_data *frame, uint8_t flags,
|
||||
frame->data_prd = *data_prd;
|
||||
}
|
||||
|
||||
void nghttp2_frame_data_free(nghttp2_private_data *frame)
|
||||
void nghttp2_frame_private_data_free(nghttp2_private_data *frame)
|
||||
{}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user