67 #if defined(LWS_WITH_SYS_FAULT_INJECTION)
87 typedef struct lws_fi_ctx {
110 lws_fi(
const lws_fi_ctx_t *fic,
const char *fi_name);
131 lws_fi_range(
const lws_fi_ctx_t *fic,
const char *name, uint64_t *result);
143 lws_fi_add(lws_fi_ctx_t *fic,
const lws_fi_t *fi);
155 lws_fi_remove(lws_fi_ctx_t *fic,
const char *name);
167 lws_fi_import(lws_fi_ctx_t *fic_dest,
const lws_fi_ctx_t *fic_src);
184 const char *scope,
const char *value);
215 _lws_fi_user_wsi_fi(
struct lws *wsi,
const char *name);
217 _lws_fi_user_context_fi(
struct lws_context *ctx,
const char *name);
219 #if defined(LWS_WITH_SECURE_STREAMS)
220 struct lws_ss_handle;
222 _lws_fi_user_ss_fi(
struct lws_ss_handle *h,
const char *name);
223 #if defined(LWS_WITH_SECURE_STREAMS_PROXY_API)
224 struct lws_sspc_handle;
226 _lws_fi_user_sspc_fi(
struct lws_sspc_handle *h,
const char *name);
230 #define lws_fi_user_wsi_fi(_wsi, _name) _lws_fi_user_wsi_fi(_wsi, _name)
231 #define lws_fi_user_context_fi(_ctx, _name) _lws_fi_user_context_fi(_ctx, _name)
232 #define lws_fi_user_ss_fi(_h, _name) _lws_fi_user_ss_fi(_h, _name)
233 #define lws_fi_user_sspc_fi(_h, _name) _lws_fi_user_sspc_fi(_h, _name)
242 #define lws_fi(_fi_name, _fic) (0)
243 #define lws_fi_destroy(_x)
244 #define lws_fi_inherit_copy(_a, _b, _c, _d)
245 #define lws_fi_deserialize(_x, _y)
246 #define lws_fi_user_wsi_fi(_wsi, _name) (0)
247 #define lws_fi_user_context_fi(_wsi, _name) (0)
248 #define lws_fi_user_ss_fi(_h, _name) (0)
249 #define lws_fi_user_sspc_fi(_h, _name) (0)
#define LWS_WARN_UNUSED_RESULT
LWS_VISIBLE LWS_EXTERN int LWS_WARN_UNUSED_RESULT lws_xos_percent(struct lws_xos *xos, int percent)
#define lws_fi(_fi_name, _fic)
#define lws_fi_deserialize(_x, _y)
LWS_VISIBLE LWS_EXTERN uint64_t LWS_WARN_UNUSED_RESULT lws_xos(struct lws_xos *xos)
LWS_VISIBLE LWS_EXTERN void lws_xos_init(struct lws_xos *xos, uint64_t seed)
#define lws_fi_inherit_copy(_a, _b, _c, _d)
#define lws_fi_destroy(_x)