lsquic_hcso_writer.h revision 5392f7a3
15392f7a3SLiteSpeed Tech/* Copyright (c) 2017 - 2019 LiteSpeed Technologies Inc. See LICENSE. */ 25392f7a3SLiteSpeed Tech/* 35392f7a3SLiteSpeed Tech * lsquic_hcso_writer.h 45392f7a3SLiteSpeed Tech */ 55392f7a3SLiteSpeed Tech 65392f7a3SLiteSpeed Tech#ifndef LSQUIC_HCSO_WRITER_H 75392f7a3SLiteSpeed Tech#define LSQUIC_HCSO_WRITER_H 1 85392f7a3SLiteSpeed Tech 95392f7a3SLiteSpeed Techstruct lsquic_engine_settings; 105392f7a3SLiteSpeed Techstruct lsquic_stream; 115392f7a3SLiteSpeed Tech 125392f7a3SLiteSpeed Techstruct hcso_writer 135392f7a3SLiteSpeed Tech{ 145392f7a3SLiteSpeed Tech struct lsquic_stream *how_stream; 155392f7a3SLiteSpeed Tech struct frab_list how_fral; 165392f7a3SLiteSpeed Tech#ifndef NDEBUG 175392f7a3SLiteSpeed Tech enum { 185392f7a3SLiteSpeed Tech HOW_RAND_VARINT = 1 << 0, 195392f7a3SLiteSpeed Tech HOW_CHOP_STREAM = 1 << 1, 205392f7a3SLiteSpeed Tech } how_flags; 215392f7a3SLiteSpeed Tech#endif 225392f7a3SLiteSpeed Tech}; 235392f7a3SLiteSpeed Tech 245392f7a3SLiteSpeed Techint 255392f7a3SLiteSpeed Techlsquic_hcso_write_settings (struct hcso_writer *, 265392f7a3SLiteSpeed Tech const struct lsquic_engine_settings *, int); 275392f7a3SLiteSpeed Tech 285392f7a3SLiteSpeed Techint 295392f7a3SLiteSpeed Techlsquic_hcso_write_goaway (struct hcso_writer *, lsquic_stream_id_t); 305392f7a3SLiteSpeed Tech 315392f7a3SLiteSpeed Techint 325392f7a3SLiteSpeed Techlsquic_hcso_write_max_push_id (struct hcso_writer *, uint64_t max_push_id); 335392f7a3SLiteSpeed Tech 345392f7a3SLiteSpeed Techint 355392f7a3SLiteSpeed Techlsquic_hcso_write_cancel_push (struct hcso_writer *, uint64_t push_id); 365392f7a3SLiteSpeed Tech 375392f7a3SLiteSpeed Techextern const struct lsquic_stream_if *const lsquic_hcso_writer_if; 385392f7a3SLiteSpeed Tech 395392f7a3SLiteSpeed Tech#endif 40