libwebsockets
Lightweight C library for HTML5 websockets
Loading...
Searching...
No Matches
lws_hl_ops Struct Reference

#include <lws-hl.h>

Collaboration diagram for lws_hl_ops:

Data Fields

const char * name
int(* construct )(lws_hl_ctx_t *ctx)
lws_stateful_ret_t(* parse )(lws_hl_ctx_t *ctx, const uint8_t **buf, size_t *len)
lws_stateful_ret_t(* finish )(lws_hl_ctx_t *ctx)

Detailed Description

Definition at line 96 of file lws-hl.h.

Field Documentation

◆ name

const char* lws_hl_ops::name

language name

Definition at line 97 of file lws-hl.h.

◆ construct

int(* lws_hl_ops::construct) (lws_hl_ctx_t *ctx)

initialize driver-private parts of ctx... optional, return nonzero to fail construction

Definition at line 100 of file lws-hl.h.

◆ parse

lws_stateful_ret_t(* lws_hl_ops::parse) (lws_hl_ctx_t *ctx, const uint8_t **buf, size_t *len)

consume bytes from *buf, adjusting them to reflect only what was consumed and emitted

Definition at line 104 of file lws-hl.h.

◆ finish

lws_stateful_ret_t(* lws_hl_ops::finish) (lws_hl_ctx_t *ctx)

handle end of input: emit best-guess classification for anything pending; nonzero return means call it again later

Definition at line 109 of file lws-hl.h.


The documentation for this struct was generated from the following file: