From f08a488c30ff102c29f589c138bae29d91dccb2a Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 5 Jan 2025 08:39:55 -0800 Subject: Liberally apply some UWYI (use what you include) to header files --- src/supplemental/tls/tls_api.h | 2 ++ src/supplemental/websocket/sha1.h | 2 ++ src/supplemental/websocket/websocket.h | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src/supplemental') diff --git a/src/supplemental/tls/tls_api.h b/src/supplemental/tls/tls_api.h index afb8661c..83256593 100644 --- a/src/supplemental/tls/tls_api.h +++ b/src/supplemental/tls/tls_api.h @@ -12,6 +12,8 @@ #ifndef NNG_SUPPLEMENTAL_TLS_TLS_API_H #define NNG_SUPPLEMENTAL_TLS_TLS_API_H +#include "core/stream.h" + // The implementation supplies this function to create the TLS connection // object. All fields will be zeroed. extern int nni_tls_dialer_alloc(nng_stream_dialer **, const nng_url *); diff --git a/src/supplemental/websocket/sha1.h b/src/supplemental/websocket/sha1.h index 43b6f20d..b061e884 100644 --- a/src/supplemental/websocket/sha1.h +++ b/src/supplemental/websocket/sha1.h @@ -11,6 +11,8 @@ #ifndef NNG_SUPPLEMENTAL_WEBSOCKET_SHA1_H #define NNG_SUPPLEMENTAL_WEBSOCKET_SHA1_H +#include "core/defs.h" + typedef struct { uint32_t digest[5]; // resulting digest uint64_t len; // length in bits diff --git a/src/supplemental/websocket/websocket.h b/src/supplemental/websocket/websocket.h index fab716bf..36e8dba5 100644 --- a/src/supplemental/websocket/websocket.h +++ b/src/supplemental/websocket/websocket.h @@ -1,5 +1,5 @@ // -// Copyright 2020 Staysail Systems, Inc. +// Copyright 2025 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // Copyright 2019 Devolutions // @@ -14,6 +14,8 @@ #include +#include "core/stream.h" + typedef struct nni_ws nni_ws; typedef struct nni_ws_listener nni_ws_listener; typedef struct nni_ws_dialer nni_ws_dialer; -- cgit v1.2.3-70-g09d2