29#ifndef PROTOCORE_SSE_H
30#define PROTOCORE_SSE_H
34#if PROTOCORE_ENABLE_SSE
50 uint8_t protocore_sse_id;
68typedef void (*SseConnectHandler)(uint8_t protocore_sse_id);
74 SseConnectHandler on_connect;
97#define PROTOCORE_SSE_NONE 0xFFu
141 SseEventArgs event_args;
147 SseConnectHandler handler;
156 void (*
const route_add)(uint8_t *work);
157 void (*
const route_reset)(uint8_t *work);
158 void (*
const route_connect)(uint8_t *work);
159 void (*
const init)(uint8_t *work);
160 void (*
const alloc)(uint8_t *work);
161 void (*
const find)(uint8_t *work);
162 void (*
const free)(uint8_t *work);
163 void (*
const format)(uint8_t *work);
164 void (*
const write)(uint8_t *work);
169void protocore_sse_route_add(uint8_t *work);
170void protocore_sse_route_reset(uint8_t *work);
171void protocore_sse_route_connect(uint8_t *work);
172void protocore_sse_init(uint8_t *work);
173void protocore_sse_alloc(uint8_t *work);
174void protocore_sse_find(uint8_t *work);
175void protocore_sse_free(uint8_t *work);
176void protocore_sse_format(uint8_t *work);
177void protocore_sse_write(uint8_t *work);
183static const SseNs Sse __attribute__((unused)) = {
184 .route_add = protocore_sse_route_add,
185 .route_reset = protocore_sse_route_reset,
186 .route_connect = protocore_sse_route_connect,
187 .init = protocore_sse_init,
188 .alloc = protocore_sse_alloc,
189 .find = protocore_sse_find,
190 .free = protocore_sse_free,
191 .format = protocore_sse_format,
192 .write = protocore_sse_write,
196uint8_t *protocore_sse_span(
void);
#define MAX_PATH_LEN
Maximum URL path length (including leading /).
#define MAX_SSE_CONNS
Maximum simultaneous SSE connections.
#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