47#ifndef PROTOCORE_GRPCWEB_H
48#define PROTOCORE_GRPCWEB_H
52#if PROTOCORE_ENABLE_GRPC_WEB
57#define PROTOCORE_GRPCWEB_COMPRESSED 0x01
59#define PROTOCORE_GRPCWEB_TRAILERS 0x80
61#define PROTOCORE_GRPCWEB_PREFIX_LEN 5
131 GrpcWebMessageArgs msg;
132 GrpcWebTrailersArgs trailers;
143extern GrpcWebVars GrpcWebV;
148 void (*
const frame)(uint8_t *work);
149 void (*
const frame_message)(uint8_t *work);
150 void (*
const frame_trailers)(uint8_t *work);
151 void (*
const parse)(uint8_t *work);
152 void (*
const trailers_status)(uint8_t *work);
153 void (*
const trailers_message)(uint8_t *work);
158void protocore_grpc_web_frame(uint8_t *work);
159void protocore_grpc_web_frame_message(uint8_t *work);
160void protocore_grpc_web_frame_trailers(uint8_t *work);
161void protocore_grpc_web_parse(uint8_t *work);
162void protocore_grpc_web_trailers_status(uint8_t *work);
163void protocore_grpc_web_trailers_message(uint8_t *work);
169static const GrpcWebNs GrpcWeb __attribute__((unused)) = {
170 .frame = protocore_grpc_web_frame,
171 .frame_message = protocore_grpc_web_frame_message,
172 .frame_trailers = protocore_grpc_web_frame_trailers,
173 .parse = protocore_grpc_web_parse,
174 .trailers_status = protocore_grpc_web_trailers_status,
175 .trailers_message = protocore_grpc_web_trailers_message,
#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