Skip to content

Commit a2982f9

Browse files
authored
Add missing license headers (#8630)
1 parent 00f5f2a commit a2982f9

File tree

4 files changed

+94
-2
lines changed

4 files changed

+94
-2
lines changed

Diff for: cores/esp8266/LwipIntf.cpp

+22
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/*
2+
LwipIntf.cpp
3+
4+
Arduino interface for lwIP generic callbacks and functions
5+
6+
Original Copyright (c) 2020 esp8266 Arduino All rights reserved.
7+
This file is part of the esp8266 Arduino core environment.
8+
9+
This library is free software; you can redistribute it and/or
10+
modify it under the terms of the GNU Lesser General Public
11+
License as published by the Free Software Foundation; either
12+
version 2.1 of the License, or (at your option) any later version.
13+
14+
This library is distributed in the hope that it will be useful,
15+
but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
Lesser General Public License for more details.
18+
19+
You should have received a copy of the GNU Lesser General Public
20+
License along with this library; if not, write to the Free Software
21+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22+
*/
123

224
extern "C"
325
{

Diff for: cores/esp8266/LwipIntf.h

+28-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/*
2+
LwipIntf.h
3+
4+
Arduino interface for lwIP generic callbacks and functions
5+
6+
Original Copyright (c) 2020 esp8266 Arduino All rights reserved.
7+
This file is part of the esp8266 Arduino core environment.
8+
9+
This library is free software; you can redistribute it and/or
10+
modify it under the terms of the GNU Lesser General Public
11+
License as published by the Free Software Foundation; either
12+
version 2.1 of the License, or (at your option) any later version.
13+
14+
This library is distributed in the hope that it will be useful,
15+
but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
Lesser General Public License for more details.
18+
19+
You should have received a copy of the GNU Lesser General Public
20+
License along with this library; if not, write to the Free Software
21+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22+
*/
123

224
#ifndef _LWIPINTF_H
325
#define _LWIPINTF_H
@@ -28,16 +50,21 @@ class LwipIntf
2850
IPAddress& netmask, IPAddress& dns1);
2951

3052
String hostname();
31-
bool hostname(const String& aHostname)
53+
54+
bool hostname(const String& aHostname)
3255
{
3356
return hostname(aHostname.c_str());
3457
}
58+
3559
bool hostname(const char* aHostname);
60+
3661
// ESP32 API compatibility
3762
bool setHostname(const char* aHostName)
3863
{
3964
return hostname(aHostName);
4065
}
66+
67+
// ESP32 API compatibility
4168
const char* getHostname();
4269

4370
protected:

Diff for: cores/esp8266/LwipIntfCB.cpp

+22
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/*
2+
LwipIntfCB.cpp
3+
4+
network generic callback implementation
5+
6+
Original Copyright (c) 2020 esp8266 Arduino All rights reserved.
7+
This file is part of the esp8266 Arduino core environment.
8+
9+
This library is free software; you can redistribute it and/or
10+
modify it under the terms of the GNU Lesser General Public
11+
License as published by the Free Software Foundation; either
12+
version 2.1 of the License, or (at your option) any later version.
13+
14+
This library is distributed in the hope that it will be useful,
15+
but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
Lesser General Public License for more details.
18+
19+
You should have received a copy of the GNU Lesser General Public
20+
License along with this library; if not, write to the Free Software
21+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22+
*/
123

224
#include <LwipIntf.h>
325
#include <Schedule.h>

Diff for: cores/esp8266/LwipIntfDev.h

+22-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,30 @@
1+
/*
2+
LwipIntfDev.h
3+
4+
Arduino network template class for generic device
5+
6+
Original Copyright (c) 2020 esp8266 Arduino All rights reserved.
7+
This file is part of the esp8266 Arduino core environment.
8+
9+
This library is free software; you can redistribute it and/or
10+
modify it under the terms of the GNU Lesser General Public
11+
License as published by the Free Software Foundation; either
12+
version 2.1 of the License, or (at your option) any later version.
13+
14+
This library is distributed in the hope that it will be useful,
15+
but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
Lesser General Public License for more details.
18+
19+
You should have received a copy of the GNU Lesser General Public
20+
License along with this library; if not, write to the Free Software
21+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22+
*/
123

224
#ifndef _LWIPINTFDEV_H
325
#define _LWIPINTFDEV_H
426

527
// TODO:
6-
// remove all Serial.print
728
// unchain pbufs
829

930
#include <netif/ethernet.h>

0 commit comments

Comments
 (0)