1a74702c6SGeorge Wang/* Copyright (c) 2017 - 2022 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
9fbc6cc04SDmitri Tikhonovstruct lsquic_ext_http_prio;
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 *,
26758aff32SDmitri Tikhonov                                        unsigned, unsigned, unsigned, 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
37fbc6cc04SDmitri Tikhonovint
38fbc6cc04SDmitri Tikhonovlsquic_hcso_write_priority_update (struct hcso_writer *,
39fbc6cc04SDmitri Tikhonov                enum hq_frame_type, uint64_t stream_or_push_id,
40fbc6cc04SDmitri Tikhonov                const struct lsquic_ext_http_prio *);
41fbc6cc04SDmitri Tikhonov
425392f7a3SLiteSpeed Techextern const struct lsquic_stream_if *const lsquic_hcso_writer_if;
435392f7a3SLiteSpeed Tech
445392f7a3SLiteSpeed Tech#endif
45