From 214a74a16f74f1dd6daebb34a79d564b1544acba Mon Sep 17 00:00:00 2001 From: glmfe Date: Wed, 29 Jan 2025 10:35:03 -0300 Subject: [PATCH] add copy right text --- .../examples/client-echo/main/lws-client-echo.c | 14 ++++++++++++-- .../examples/server-echo/main/lws-server-echo.c | 13 ++++++++++++- components/libwebsockets/port/lws_port.c | 5 ++++- 3 files changed, 28 insertions(+), 4 deletions(-) diff --git a/components/libwebsockets/examples/client-echo/main/lws-client-echo.c b/components/libwebsockets/examples/client-echo/main/lws-client-echo.c index 939f4585a3..5d0f915f78 100644 --- a/components/libwebsockets/examples/client-echo/main/lws-client-echo.c +++ b/components/libwebsockets/examples/client-echo/main/lws-client-echo.c @@ -1,6 +1,16 @@ /* -TODO + * SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Unlicense OR CC0-1.0 */ +/* ESP libwebsockets client example + + This example code is in the Public Domain (or CC0 licensed, at your option.) + + Unless required by applicable law or agreed to in writing, this + software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. +*/ #include #include @@ -115,7 +125,7 @@ static int callback_minimal_echo(struct lws *wsi, enum lws_callback_reasons reas static const struct lws_protocols protocols[] = { { - "lws-ping-test", + "lws-echo", callback_minimal_echo, 4096, 4096, 0, NULL, 0 }, diff --git a/components/libwebsockets/examples/server-echo/main/lws-server-echo.c b/components/libwebsockets/examples/server-echo/main/lws-server-echo.c index 2f6f8297ec..3fa1104a54 100644 --- a/components/libwebsockets/examples/server-echo/main/lws-server-echo.c +++ b/components/libwebsockets/examples/server-echo/main/lws-server-echo.c @@ -1,6 +1,17 @@ /* -TODO + * SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Unlicense OR CC0-1.0 */ +/* ESP libwebsockets server example + + This example code is in the Public Domain (or CC0 licensed, at your option.) + + Unless required by applicable law or agreed to in writing, this + software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + CONDITIONS OF ANY KIND, either express or implied. +*/ + #include #include diff --git a/components/libwebsockets/port/lws_port.c b/components/libwebsockets/port/lws_port.c index 60ffd40f39..713bd25e4e 100644 --- a/components/libwebsockets/port/lws_port.c +++ b/components/libwebsockets/port/lws_port.c @@ -1,6 +1,9 @@ /* -TODO + * SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 */ + #include "stdio.h" #include