23#ifndef PROTOCORE_HPACK_H
24#define PROTOCORE_HPACK_H
28#if PROTOCORE_ENABLE_HTTP2
33typedef proto_bool (*HpackEmitFn)(
void *ctx,
const char *name,
size_t name_len,
const char *value,
size_t value_len);
83 HpackInitArgs init_args;
84 HpackDecodeArgs decode_args;
85 HpackEncodeArgs encode_args;
91extern HpackVars HpackV;
96 void (*
const dyn_init)(uint8_t *work);
97 void (*
const decode)(uint8_t *work);
98 void (*
const encode_header)(uint8_t *work);
103void protocore_hpack_dyn_init(uint8_t *work);
104void protocore_hpack_decode(uint8_t *work);
105void protocore_hpack_encode_header(uint8_t *work);
111static const HpackNs Hpack __attribute__((unused)) = {
112 .dyn_init = protocore_hpack_dyn_init,
113 .decode = protocore_hpack_decode,
114 .encode_header = protocore_hpack_encode_header,
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS