comparison src/event/quic/ngx_event_quic_frames.h @ 8948:19e063e955bf quic

QUIC: renamed buffer-related functions. ngx_quic_alloc_buf() -> ngx_quic_alloc_chain(), ngx_quic_free_bufs() -> ngx_quic_free_chain(), ngx_quic_trim_bufs() -> ngx_quic_trim_chain()
author Roman Arutyunyan <arut@nginx.com>
date Thu, 16 Dec 2021 17:06:35 +0300
parents 6ccf3867959a
children 2e22110828dd
comparison
equal deleted inserted replaced
8947:6ccf3867959a 8948:19e063e955bf
21 void ngx_quic_free_frames(ngx_connection_t *c, ngx_queue_t *frames); 21 void ngx_quic_free_frames(ngx_connection_t *c, ngx_queue_t *frames);
22 void ngx_quic_queue_frame(ngx_quic_connection_t *qc, ngx_quic_frame_t *frame); 22 void ngx_quic_queue_frame(ngx_quic_connection_t *qc, ngx_quic_frame_t *frame);
23 ngx_int_t ngx_quic_split_frame(ngx_connection_t *c, ngx_quic_frame_t *f, 23 ngx_int_t ngx_quic_split_frame(ngx_connection_t *c, ngx_quic_frame_t *f,
24 size_t len); 24 size_t len);
25 25
26 ngx_chain_t *ngx_quic_alloc_buf(ngx_connection_t *c); 26 ngx_chain_t *ngx_quic_alloc_chain(ngx_connection_t *c);
27 ngx_chain_t *ngx_quic_copy_buf(ngx_connection_t *c, u_char *data, 27 ngx_chain_t *ngx_quic_copy_buf(ngx_connection_t *c, u_char *data,
28 size_t len); 28 size_t len);
29 ngx_chain_t *ngx_quic_copy_chain(ngx_connection_t *c, ngx_chain_t *in, 29 ngx_chain_t *ngx_quic_copy_chain(ngx_connection_t *c, ngx_chain_t *in,
30 size_t limit); 30 size_t limit);
31 void ngx_quic_trim_bufs(ngx_chain_t *in, size_t size); 31 void ngx_quic_trim_chain(ngx_chain_t *in, size_t size);
32 void ngx_quic_free_bufs(ngx_connection_t *c, ngx_chain_t *in); 32 void ngx_quic_free_chain(ngx_connection_t *c, ngx_chain_t *in);
33 ngx_chain_t *ngx_quic_read_chain(ngx_connection_t *c, ngx_chain_t **chain, 33 ngx_chain_t *ngx_quic_read_chain(ngx_connection_t *c, ngx_chain_t **chain,
34 off_t limit); 34 off_t limit);
35 ngx_chain_t *ngx_quic_write_chain(ngx_connection_t *c, ngx_chain_t **chain, 35 ngx_chain_t *ngx_quic_write_chain(ngx_connection_t *c, ngx_chain_t **chain,
36 ngx_chain_t *in, off_t limit, off_t offset); 36 ngx_chain_t *in, off_t limit, off_t offset);
37 37