4#ifndef PROTOCORE_HTTP_RANGE_H
5#define PROTOCORE_HTTP_RANGE_H
34 int (*http_parse_byte_range)(uint8_t *,
const char *, size_t,
size_t *,
size_t *);
PROTOCORE_NS HttpRangeNs HttpRange PROTOCORE_UNUSED
Module namespace.
int protocore_http_range_http_parse_byte_range(uint8_t *work, const char *hdr, size_t size, size_t *out_start, size_t *out_end)
Parse a single-range Range: bytes=... header value against a .
#define PROTOCORE_NS_LAYOUT(T,...)
Pin every dispatch slot of a table that is nothing but function pointers.
#define PROTOCORE_NS
Storage for a dispatch table. The const is load bearing.
Dispatch table. Addressed by offset, so the layout is asserted below.
int(* http_parse_byte_range)(uint8_t *, const char *, size_t, size_t *, size_t *)
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
#define PROTOCORE_END_DECLS