summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2020-03-12 01:10:33 +0000
committeriphydf <iphydf@users.noreply.github.com>2020-03-14 13:06:19 +0000
commit11ad5471b91dc1b36552ba4e5a3ea434c8a30f5f (patch)
tree94429d74652509b06efef17d17734f647ee4e6ce /toxcore
parentc644ef76810f8db61bce3f52d36a1a6a25e47683 (diff)
Use spdx license identifier instead of GPL blurb.
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/DHT.c23
-rw-r--r--toxcore/DHT.h23
-rw-r--r--toxcore/LAN_discovery.api.h23
-rw-r--r--toxcore/LAN_discovery.c23
-rw-r--r--toxcore/LAN_discovery.h23
-rw-r--r--toxcore/Messenger.c23
-rw-r--r--toxcore/Messenger.h25
-rw-r--r--toxcore/TCP_client.c23
-rw-r--r--toxcore/TCP_client.h23
-rw-r--r--toxcore/TCP_connection.c23
-rw-r--r--toxcore/TCP_connection.h23
-rw-r--r--toxcore/TCP_server.c23
-rw-r--r--toxcore/TCP_server.h23
-rw-r--r--toxcore/crypto_core.api.h23
-rw-r--r--toxcore/crypto_core.c25
-rw-r--r--toxcore/crypto_core.h23
-rw-r--r--toxcore/friend_connection.c23
-rw-r--r--toxcore/friend_connection.h23
-rw-r--r--toxcore/friend_requests.c23
-rw-r--r--toxcore/friend_requests.h23
-rw-r--r--toxcore/group.c23
-rw-r--r--toxcore/group.h23
-rw-r--r--toxcore/list.c25
-rw-r--r--toxcore/list.h25
-rw-r--r--toxcore/logger.c23
-rw-r--r--toxcore/logger.h23
-rw-r--r--toxcore/mono_time.c4
-rw-r--r--toxcore/mono_time.h4
-rw-r--r--toxcore/net_crypto.c25
-rw-r--r--toxcore/net_crypto.h23
-rw-r--r--toxcore/network.c23
-rw-r--r--toxcore/network.h23
-rw-r--r--toxcore/onion.c23
-rw-r--r--toxcore/onion.h23
-rw-r--r--toxcore/onion_announce.c23
-rw-r--r--toxcore/onion_announce.h23
-rw-r--r--toxcore/onion_client.c25
-rw-r--r--toxcore/onion_client.h25
-rw-r--r--toxcore/ping.api.h26
-rw-r--r--toxcore/ping.c26
-rw-r--r--toxcore/ping.h26
-rw-r--r--toxcore/ping_array.api.h23
-rw-r--r--toxcore/ping_array.c23
-rw-r--r--toxcore/ping_array.h23
-rw-r--r--toxcore/state.c4
-rw-r--r--toxcore/state.h5
-rw-r--r--toxcore/tox.api.h23
-rw-r--r--toxcore/tox.c23
-rw-r--r--toxcore/tox.h23
-rw-r--r--toxcore/util.c26
-rw-r--r--toxcore/util.h26
51 files changed, 217 insertions, 910 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c
index 8603b9c0..55116bc0 100644
--- a/toxcore/DHT.c
+++ b/toxcore/DHT.c
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * An implementation of the DHT as seen in docs/updates/DHT.md 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2013 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * An implementation of the DHT as seen in docs/updates/DHT.md
7 * Copyright © 2013 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifdef HAVE_CONFIG_H 9#ifdef HAVE_CONFIG_H
25#include "config.h" 10#include "config.h"
diff --git a/toxcore/DHT.h b/toxcore/DHT.h
index 5feb74d2..06a7e012 100644
--- a/toxcore/DHT.h
+++ b/toxcore/DHT.h
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * An implementation of the DHT as seen in docs/updates/DHT.md 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2013 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * An implementation of the DHT as seen in docs/updates/DHT.md
7 * Copyright © 2013 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifndef C_TOXCORE_TOXCORE_DHT_H 9#ifndef C_TOXCORE_TOXCORE_DHT_H
25#define C_TOXCORE_TOXCORE_DHT_H 10#define C_TOXCORE_TOXCORE_DHT_H
diff --git a/toxcore/LAN_discovery.api.h b/toxcore/LAN_discovery.api.h
index 31d6a5f6..5c25b67b 100644
--- a/toxcore/LAN_discovery.api.h
+++ b/toxcore/LAN_discovery.api.h
@@ -1,26 +1,11 @@
1%{ 1%{
2/* 2/* SPDX-License-Identifier: GPL-3.0-or-later
3 * LAN discovery implementation. 3 * Copyright © 2016-2018 The TokTok team.
4 * Copyright © 2013 Tox project.
4 */ 5 */
5 6
6/* 7/*
7 * Copyright © 2016-2018 The TokTok team. 8 * LAN discovery implementation.
8 * Copyright © 2013 Tox project.
9 *
10 * This file is part of Tox, the free peer to peer instant messenger.
11 *
12 * Tox is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * Tox is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 9 */
25#ifndef C_TOXCORE_TOXCORE_LAN_DISCOVERY_H 10#ifndef C_TOXCORE_TOXCORE_LAN_DISCOVERY_H
26#define C_TOXCORE_TOXCORE_LAN_DISCOVERY_H 11#define C_TOXCORE_TOXCORE_LAN_DISCOVERY_H
diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c
index e7bb77ea..b1be2600 100644
--- a/toxcore/LAN_discovery.c
+++ b/toxcore/LAN_discovery.c
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * LAN discovery implementation. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2013 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * LAN discovery implementation.
7 * Copyright © 2013 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifdef HAVE_CONFIG_H 9#ifdef HAVE_CONFIG_H
25#include "config.h" 10#include "config.h"
diff --git a/toxcore/LAN_discovery.h b/toxcore/LAN_discovery.h
index 1364a280..7e049b99 100644
--- a/toxcore/LAN_discovery.h
+++ b/toxcore/LAN_discovery.h
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * LAN discovery implementation. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2013 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * LAN discovery implementation.
7 * Copyright © 2013 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifndef C_TOXCORE_TOXCORE_LAN_DISCOVERY_H 9#ifndef C_TOXCORE_TOXCORE_LAN_DISCOVERY_H
25#define C_TOXCORE_TOXCORE_LAN_DISCOVERY_H 10#define C_TOXCORE_TOXCORE_LAN_DISCOVERY_H
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index a702793c..e08758e7 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * An implementation of a simple text chat only messenger on the tox network core. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2013 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * An implementation of a simple text chat only messenger on the tox network core.
7 * Copyright © 2013 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifdef HAVE_CONFIG_H 9#ifdef HAVE_CONFIG_H
25#include "config.h" 10#include "config.h"
diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h
index f6fb3d56..4d2b1b20 100644
--- a/toxcore/Messenger.h
+++ b/toxcore/Messenger.h
@@ -1,26 +1,11 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * An implementation of a simple text chat only messenger on the tox network 2 * Copyright © 2016-2018 The TokTok team.
3 * core. 3 * Copyright © 2013 Tox project.
4 */ 4 */
5 5
6/* 6/*
7 * Copyright © 2016-2018 The TokTok team. 7 * An implementation of a simple text chat only messenger on the tox network
8 * Copyright © 2013 Tox project. 8 * core.
9 *
10 * This file is part of Tox, the free peer to peer instant messenger.
11 *
12 * Tox is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * Tox is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 9 */
25#ifndef C_TOXCORE_TOXCORE_MESSENGER_H 10#ifndef C_TOXCORE_TOXCORE_MESSENGER_H
26#define C_TOXCORE_TOXCORE_MESSENGER_H 11#define C_TOXCORE_TOXCORE_MESSENGER_H
diff --git a/toxcore/TCP_client.c b/toxcore/TCP_client.c
index 1fae897f..408ec489 100644
--- a/toxcore/TCP_client.c
+++ b/toxcore/TCP_client.c
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Implementation of the TCP relay client part of Tox. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2014 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Implementation of the TCP relay client part of Tox.
7 * Copyright © 2014 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifdef HAVE_CONFIG_H 9#ifdef HAVE_CONFIG_H
25#include "config.h" 10#include "config.h"
diff --git a/toxcore/TCP_client.h b/toxcore/TCP_client.h
index 6a9bf8e2..89f0d779 100644
--- a/toxcore/TCP_client.h
+++ b/toxcore/TCP_client.h
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Implementation of the TCP relay client part of Tox. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2014 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Implementation of the TCP relay client part of Tox.
7 * Copyright © 2014 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifndef C_TOXCORE_TOXCORE_TCP_CLIENT_H 9#ifndef C_TOXCORE_TOXCORE_TCP_CLIENT_H
25#define C_TOXCORE_TOXCORE_TCP_CLIENT_H 10#define C_TOXCORE_TOXCORE_TCP_CLIENT_H
diff --git a/toxcore/TCP_connection.c b/toxcore/TCP_connection.c
index b11b1e3b..3dd8652e 100644
--- a/toxcore/TCP_connection.c
+++ b/toxcore/TCP_connection.c
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Handles TCP relay connections between two Tox clients. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2015 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Handles TCP relay connections between two Tox clients.
7 * Copyright © 2015 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifdef HAVE_CONFIG_H 9#ifdef HAVE_CONFIG_H
25#include "config.h" 10#include "config.h"
diff --git a/toxcore/TCP_connection.h b/toxcore/TCP_connection.h
index 1962fb1a..a8e522d3 100644
--- a/toxcore/TCP_connection.h
+++ b/toxcore/TCP_connection.h
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Handles TCP relay connections between two Tox clients. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2015 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Handles TCP relay connections between two Tox clients.
7 * Copyright © 2015 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifndef C_TOXCORE_TOXCORE_TCP_CONNECTION_H 9#ifndef C_TOXCORE_TOXCORE_TCP_CONNECTION_H
25#define C_TOXCORE_TOXCORE_TCP_CONNECTION_H 10#define C_TOXCORE_TOXCORE_TCP_CONNECTION_H
diff --git a/toxcore/TCP_server.c b/toxcore/TCP_server.c
index 086fe3d3..b22bdb80 100644
--- a/toxcore/TCP_server.c
+++ b/toxcore/TCP_server.c
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Implementation of the TCP relay server part of Tox. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2014 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Implementation of the TCP relay server part of Tox.
7 * Copyright © 2014 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifdef HAVE_CONFIG_H 9#ifdef HAVE_CONFIG_H
25#include "config.h" 10#include "config.h"
diff --git a/toxcore/TCP_server.h b/toxcore/TCP_server.h
index bc159f73..5862a473 100644
--- a/toxcore/TCP_server.h
+++ b/toxcore/TCP_server.h
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Implementation of the TCP relay server part of Tox. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2014 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Implementation of the TCP relay server part of Tox.
7 * Copyright © 2014 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifndef C_TOXCORE_TOXCORE_TCP_SERVER_H 9#ifndef C_TOXCORE_TOXCORE_TCP_SERVER_H
25#define C_TOXCORE_TOXCORE_TCP_SERVER_H 10#define C_TOXCORE_TOXCORE_TCP_SERVER_H
diff --git a/toxcore/crypto_core.api.h b/toxcore/crypto_core.api.h
index b6b49624..44f541fc 100644
--- a/toxcore/crypto_core.api.h
+++ b/toxcore/crypto_core.api.h
@@ -1,26 +1,11 @@
1%{ 1%{
2/* 2/* SPDX-License-Identifier: GPL-3.0-or-later
3 * Functions for the core crypto. 3 * Copyright © 2016-2018 The TokTok team.
4 * Copyright © 2013 Tox project.
4 */ 5 */
5 6
6/* 7/*
7 * Copyright © 2016-2018 The TokTok team. 8 * Functions for the core crypto.
8 * Copyright © 2013 Tox project.
9 *
10 * This file is part of Tox, the free peer to peer instant messenger.
11 *
12 * Tox is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * Tox is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 9 */
25#ifndef C_TOXCORE_TOXCORE_CRYPTO_CORE_H 10#ifndef C_TOXCORE_TOXCORE_CRYPTO_CORE_H
26#define C_TOXCORE_TOXCORE_CRYPTO_CORE_H 11#define C_TOXCORE_TOXCORE_CRYPTO_CORE_H
diff --git a/toxcore/crypto_core.c b/toxcore/crypto_core.c
index 0e53100a..5875bca2 100644
--- a/toxcore/crypto_core.c
+++ b/toxcore/crypto_core.c
@@ -1,27 +1,12 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Functions for the core crypto. 2 * Copyright © 2016-2018 The TokTok team.
3 * 3 * Copyright © 2013 Tox project.
4 * NOTE: This code has to be perfect. We don't mess around with encryption.
5 */ 4 */
6 5
7/* 6/*
8 * Copyright © 2016-2018 The TokTok team. 7 * Functions for the core crypto.
9 * Copyright © 2013 Tox project.
10 *
11 * This file is part of Tox, the free peer to peer instant messenger.
12 *
13 * Tox is free software: you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation, either version 3 of the License, or
16 * (at your option) any later version.
17 *
18 * Tox is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 * 8 *
23 * You should have received a copy of the GNU General Public License 9 * NOTE: This code has to be perfect. We don't mess around with encryption.
24 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
25 */ 10 */
26#ifdef HAVE_CONFIG_H 11#ifdef HAVE_CONFIG_H
27#include "config.h" 12#include "config.h"
diff --git a/toxcore/crypto_core.h b/toxcore/crypto_core.h
index c2f0296e..07412e7e 100644
--- a/toxcore/crypto_core.h
+++ b/toxcore/crypto_core.h
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Functions for the core crypto. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2013 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Functions for the core crypto.
7 * Copyright © 2013 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifndef C_TOXCORE_TOXCORE_CRYPTO_CORE_H 9#ifndef C_TOXCORE_TOXCORE_CRYPTO_CORE_H
25#define C_TOXCORE_TOXCORE_CRYPTO_CORE_H 10#define C_TOXCORE_TOXCORE_CRYPTO_CORE_H
diff --git a/toxcore/friend_connection.c b/toxcore/friend_connection.c
index 69533def..af5d09e3 100644
--- a/toxcore/friend_connection.c
+++ b/toxcore/friend_connection.c
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Connection to friends. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2014 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Connection to friends.
7 * Copyright © 2014 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifdef HAVE_CONFIG_H 9#ifdef HAVE_CONFIG_H
25#include "config.h" 10#include "config.h"
diff --git a/toxcore/friend_connection.h b/toxcore/friend_connection.h
index 166c731b..16df0236 100644
--- a/toxcore/friend_connection.h
+++ b/toxcore/friend_connection.h
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Connection to friends. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2014 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Connection to friends.
7 * Copyright © 2014 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifndef C_TOXCORE_TOXCORE_FRIEND_CONNECTION_H 9#ifndef C_TOXCORE_TOXCORE_FRIEND_CONNECTION_H
25#define C_TOXCORE_TOXCORE_FRIEND_CONNECTION_H 10#define C_TOXCORE_TOXCORE_FRIEND_CONNECTION_H
diff --git a/toxcore/friend_requests.c b/toxcore/friend_requests.c
index fa1defc8..c6c9a0e0 100644
--- a/toxcore/friend_requests.c
+++ b/toxcore/friend_requests.c
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Handle friend requests. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2013 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Handle friend requests.
7 * Copyright © 2013 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifdef HAVE_CONFIG_H 9#ifdef HAVE_CONFIG_H
25#include "config.h" 10#include "config.h"
diff --git a/toxcore/friend_requests.h b/toxcore/friend_requests.h
index 7fcd3f0d..04863948 100644
--- a/toxcore/friend_requests.h
+++ b/toxcore/friend_requests.h
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Handle friend requests. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2014 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Handle friend requests.
7 * Copyright © 2014 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifndef C_TOXCORE_TOXCORE_FRIEND_REQUESTS_H 9#ifndef C_TOXCORE_TOXCORE_FRIEND_REQUESTS_H
25#define C_TOXCORE_TOXCORE_FRIEND_REQUESTS_H 10#define C_TOXCORE_TOXCORE_FRIEND_REQUESTS_H
diff --git a/toxcore/group.c b/toxcore/group.c
index 9ba0c3df..fd7b2ac4 100644
--- a/toxcore/group.c
+++ b/toxcore/group.c
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Slightly better groupchats implementation. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2014 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Slightly better groupchats implementation.
7 * Copyright © 2014 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifdef HAVE_CONFIG_H 9#ifdef HAVE_CONFIG_H
25#include "config.h" 10#include "config.h"
diff --git a/toxcore/group.h b/toxcore/group.h
index 884ac8f5..d74d561d 100644
--- a/toxcore/group.h
+++ b/toxcore/group.h
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Slightly better groupchats implementation. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2014 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Slightly better groupchats implementation.
7 * Copyright © 2014 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifndef C_TOXCORE_TOXCORE_GROUP_H 9#ifndef C_TOXCORE_TOXCORE_GROUP_H
25#define C_TOXCORE_TOXCORE_GROUP_H 10#define C_TOXCORE_TOXCORE_GROUP_H
diff --git a/toxcore/list.c b/toxcore/list.c
index 1cc143e2..cb3c71cc 100644
--- a/toxcore/list.c
+++ b/toxcore/list.c
@@ -1,28 +1,13 @@
1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2014 Tox project.
4 */
5
1/* 6/*
2 * Simple struct with functions to create a list which associates ids with data 7 * Simple struct with functions to create a list which associates ids with data
3 * -Allows for finding ids associated with data such as IPs or public keys in a short time 8 * -Allows for finding ids associated with data such as IPs or public keys in a short time
4 * -Should only be used if there are relatively few add/remove calls to the list 9 * -Should only be used if there are relatively few add/remove calls to the list
5 */ 10 */
6
7/*
8 * Copyright © 2016-2018 The TokTok team.
9 * Copyright © 2014 Tox project.
10 *
11 * This file is part of Tox, the free peer to peer instant messenger.
12 *
13 * Tox is free software: you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation, either version 3 of the License, or
16 * (at your option) any later version.
17 *
18 * Tox is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
25 */
26#ifdef HAVE_CONFIG_H 11#ifdef HAVE_CONFIG_H
27#include "config.h" 12#include "config.h"
28#endif 13#endif
diff --git a/toxcore/list.h b/toxcore/list.h
index c9c72c2a..9d65b53f 100644
--- a/toxcore/list.h
+++ b/toxcore/list.h
@@ -1,28 +1,13 @@
1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2014 Tox project.
4 */
5
1/* 6/*
2 * Simple struct with functions to create a list which associates ids with data 7 * Simple struct with functions to create a list which associates ids with data
3 * -Allows for finding ids associated with data such as IPs or public keys in a short time 8 * -Allows for finding ids associated with data such as IPs or public keys in a short time
4 * -Should only be used if there are relatively few add/remove calls to the list 9 * -Should only be used if there are relatively few add/remove calls to the list
5 */ 10 */
6
7/*
8 * Copyright © 2016-2018 The TokTok team.
9 * Copyright © 2014 Tox project.
10 *
11 * This file is part of Tox, the free peer to peer instant messenger.
12 *
13 * Tox is free software: you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation, either version 3 of the License, or
16 * (at your option) any later version.
17 *
18 * Tox is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
25 */
26#ifndef C_TOXCORE_TOXCORE_LIST_H 11#ifndef C_TOXCORE_TOXCORE_LIST_H
27#define C_TOXCORE_TOXCORE_LIST_H 12#define C_TOXCORE_TOXCORE_LIST_H
28 13
diff --git a/toxcore/logger.c b/toxcore/logger.c
index 80833219..00e85c36 100644
--- a/toxcore/logger.c
+++ b/toxcore/logger.c
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Text logging abstraction. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2013,2015 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Text logging abstraction.
7 * Copyright © 2013,2015 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifdef HAVE_CONFIG_H 9#ifdef HAVE_CONFIG_H
25#include "config.h" 10#include "config.h"
diff --git a/toxcore/logger.h b/toxcore/logger.h
index 3abed896..d2be3401 100644
--- a/toxcore/logger.h
+++ b/toxcore/logger.h
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Logger abstraction backed by callbacks for writing. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2013 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Logger abstraction backed by callbacks for writing.
7 * Copyright © 2013 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifndef C_TOXCORE_TOXCORE_LOGGER_H 9#ifndef C_TOXCORE_TOXCORE_LOGGER_H
25#define C_TOXCORE_TOXCORE_LOGGER_H 10#define C_TOXCORE_TOXCORE_LOGGER_H
diff --git a/toxcore/mono_time.c b/toxcore/mono_time.c
index fd29dff5..876902f5 100644
--- a/toxcore/mono_time.c
+++ b/toxcore/mono_time.c
@@ -1,3 +1,7 @@
1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Copyright © 2016-2020 The TokTok team.
3 * Copyright © 2014 Tox project.
4 */
1#ifndef _XOPEN_SOURCE 5#ifndef _XOPEN_SOURCE
2#define _XOPEN_SOURCE 600 6#define _XOPEN_SOURCE 600
3#endif 7#endif
diff --git a/toxcore/mono_time.h b/toxcore/mono_time.h
index aa244bae..0951fc74 100644
--- a/toxcore/mono_time.h
+++ b/toxcore/mono_time.h
@@ -1,3 +1,7 @@
1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Copyright © 2016-2020 The TokTok team.
3 * Copyright © 2014 Tox project.
4 */
1#ifndef C_TOXCORE_TOXCORE_MONO_TIME_H 5#ifndef C_TOXCORE_TOXCORE_MONO_TIME_H
2#define C_TOXCORE_TOXCORE_MONO_TIME_H 6#define C_TOXCORE_TOXCORE_MONO_TIME_H
3 7
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c
index 09ce91ba..4eacb250 100644
--- a/toxcore/net_crypto.c
+++ b/toxcore/net_crypto.c
@@ -1,27 +1,12 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Functions for the core network crypto. 2 * Copyright © 2016-2018 The TokTok team.
3 * 3 * Copyright © 2013 Tox project.
4 * NOTE: This code has to be perfect. We don't mess around with encryption.
5 */ 4 */
6 5
7/* 6/*
8 * Copyright © 2016-2018 The TokTok team. 7 * Functions for the core network crypto.
9 * Copyright © 2013 Tox project.
10 *
11 * This file is part of Tox, the free peer to peer instant messenger.
12 *
13 * Tox is free software: you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation, either version 3 of the License, or
16 * (at your option) any later version.
17 *
18 * Tox is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 * 8 *
23 * You should have received a copy of the GNU General Public License 9 * NOTE: This code has to be perfect. We don't mess around with encryption.
24 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
25 */ 10 */
26#ifdef HAVE_CONFIG_H 11#ifdef HAVE_CONFIG_H
27#include "config.h" 12#include "config.h"
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h
index 6917301b..736a3dc3 100644
--- a/toxcore/net_crypto.h
+++ b/toxcore/net_crypto.h
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Functions for the core network crypto. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2013 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Functions for the core network crypto.
7 * Copyright © 2013 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifndef C_TOXCORE_TOXCORE_NET_CRYPTO_H 9#ifndef C_TOXCORE_TOXCORE_NET_CRYPTO_H
25#define C_TOXCORE_TOXCORE_NET_CRYPTO_H 10#define C_TOXCORE_TOXCORE_NET_CRYPTO_H
diff --git a/toxcore/network.c b/toxcore/network.c
index e2870fee..ab0003e0 100644
--- a/toxcore/network.c
+++ b/toxcore/network.c
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Functions for the core networking. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2013 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Functions for the core networking.
7 * Copyright © 2013 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifdef HAVE_CONFIG_H 9#ifdef HAVE_CONFIG_H
25#include "config.h" 10#include "config.h"
diff --git a/toxcore/network.h b/toxcore/network.h
index a1d83842..9fbefc28 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Datatypes, functions and includes for the core networking. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2013 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Datatypes, functions and includes for the core networking.
7 * Copyright © 2013 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifndef C_TOXCORE_TOXCORE_NETWORK_H 9#ifndef C_TOXCORE_TOXCORE_NETWORK_H
25#define C_TOXCORE_TOXCORE_NETWORK_H 10#define C_TOXCORE_TOXCORE_NETWORK_H
diff --git a/toxcore/onion.c b/toxcore/onion.c
index f1873992..4b7d446f 100644
--- a/toxcore/onion.c
+++ b/toxcore/onion.c
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Implementation of the onion part of docs/Prevent_Tracking.txt 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2013 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Implementation of the onion part of docs/Prevent_Tracking.txt
7 * Copyright © 2013 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifdef HAVE_CONFIG_H 9#ifdef HAVE_CONFIG_H
25#include "config.h" 10#include "config.h"
diff --git a/toxcore/onion.h b/toxcore/onion.h
index 20cd1e5c..f125f3c3 100644
--- a/toxcore/onion.h
+++ b/toxcore/onion.h
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Implementation of the onion part of docs/Prevent_Tracking.txt 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2013 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Implementation of the onion part of docs/Prevent_Tracking.txt
7 * Copyright © 2013 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifndef C_TOXCORE_TOXCORE_ONION_H 9#ifndef C_TOXCORE_TOXCORE_ONION_H
25#define C_TOXCORE_TOXCORE_ONION_H 10#define C_TOXCORE_TOXCORE_ONION_H
diff --git a/toxcore/onion_announce.c b/toxcore/onion_announce.c
index f38772dd..6d38012a 100644
--- a/toxcore/onion_announce.c
+++ b/toxcore/onion_announce.c
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Implementation of the announce part of docs/Prevent_Tracking.txt 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2013 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Implementation of the announce part of docs/Prevent_Tracking.txt
7 * Copyright © 2013 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifdef HAVE_CONFIG_H 9#ifdef HAVE_CONFIG_H
25#include "config.h" 10#include "config.h"
diff --git a/toxcore/onion_announce.h b/toxcore/onion_announce.h
index 2eb5051b..3145803c 100644
--- a/toxcore/onion_announce.h
+++ b/toxcore/onion_announce.h
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Implementation of the announce part of docs/Prevent_Tracking.txt 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2013 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Implementation of the announce part of docs/Prevent_Tracking.txt
7 * Copyright © 2013 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifndef C_TOXCORE_TOXCORE_ONION_ANNOUNCE_H 9#ifndef C_TOXCORE_TOXCORE_ONION_ANNOUNCE_H
25#define C_TOXCORE_TOXCORE_ONION_ANNOUNCE_H 10#define C_TOXCORE_TOXCORE_ONION_ANNOUNCE_H
diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c
index b3a54879..dcec7ba8 100644
--- a/toxcore/onion_client.c
+++ b/toxcore/onion_client.c
@@ -1,26 +1,11 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Implementation of the client part of docs/Prevent_Tracking.txt (The part that 2 * Copyright © 2016-2018 The TokTok team.
3 * uses the onion stuff to connect to the friend) 3 * Copyright © 2013 Tox project.
4 */ 4 */
5 5
6/* 6/*
7 * Copyright © 2016-2018 The TokTok team. 7 * Implementation of the client part of docs/Prevent_Tracking.txt (The part that
8 * Copyright © 2013 Tox project. 8 * uses the onion stuff to connect to the friend)
9 *
10 * This file is part of Tox, the free peer to peer instant messenger.
11 *
12 * Tox is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * Tox is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 9 */
25#ifdef HAVE_CONFIG_H 10#ifdef HAVE_CONFIG_H
26#include "config.h" 11#include "config.h"
diff --git a/toxcore/onion_client.h b/toxcore/onion_client.h
index 66e417d7..88329aee 100644
--- a/toxcore/onion_client.h
+++ b/toxcore/onion_client.h
@@ -1,26 +1,11 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Implementation of the client part of docs/Prevent_Tracking.txt (The part that 2 * Copyright © 2016-2018 The TokTok team.
3 * uses the onion stuff to connect to the friend) 3 * Copyright © 2013 Tox project.
4 */ 4 */
5 5
6/* 6/*
7 * Copyright © 2016-2018 The TokTok team. 7 * Implementation of the client part of docs/Prevent_Tracking.txt (The part that
8 * Copyright © 2013 Tox project. 8 * uses the onion stuff to connect to the friend)
9 *
10 * This file is part of Tox, the free peer to peer instant messenger.
11 *
12 * Tox is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * Tox is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 9 */
25#ifndef C_TOXCORE_TOXCORE_ONION_CLIENT_H 10#ifndef C_TOXCORE_TOXCORE_ONION_CLIENT_H
26#define C_TOXCORE_TOXCORE_ONION_CLIENT_H 11#define C_TOXCORE_TOXCORE_ONION_CLIENT_H
diff --git a/toxcore/ping.api.h b/toxcore/ping.api.h
index 2ae5b365..d4d071b1 100644
--- a/toxcore/ping.api.h
+++ b/toxcore/ping.api.h
@@ -1,28 +1,12 @@
1%{ 1%{
2/* 2/* SPDX-License-Identifier: GPL-3.0-or-later
3 * Buffered pinging using cyclic arrays.
4 */
5
6/*
7 * Copyright © 2016-2018 The TokTok team. 3 * Copyright © 2016-2018 The TokTok team.
8 * Copyright © 2013 Tox project. 4 * Copyright © 2013 Tox project.
9 * Copyright © 2013 plutooo 5 * Copyright © 2013 plutooo
10 * 6 */
11 * This file is part of Tox, the free peer to peer instant messenger. 7
12 * This file is donated to the Tox Project. 8/*
13 * 9 * Buffered pinging using cyclic arrays.
14 * Tox is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * Tox is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
26 */ 10 */
27#ifndef C_TOXCORE_TOXCORE_PING_H 11#ifndef C_TOXCORE_TOXCORE_PING_H
28#define C_TOXCORE_TOXCORE_PING_H 12#define C_TOXCORE_TOXCORE_PING_H
diff --git a/toxcore/ping.c b/toxcore/ping.c
index df0adf04..d2677ee7 100644
--- a/toxcore/ping.c
+++ b/toxcore/ping.c
@@ -1,27 +1,11 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Buffered pinging using cyclic arrays.
3 */
4
5/*
6 * Copyright © 2016-2018 The TokTok team. 2 * Copyright © 2016-2018 The TokTok team.
7 * Copyright © 2013 Tox project. 3 * Copyright © 2013 Tox project.
8 * Copyright © 2013 plutooo 4 * Copyright © 2013 plutooo
9 * 5 */
10 * This file is part of Tox, the free peer to peer instant messenger. 6
11 * This file is donated to the Tox Project. 7/*
12 * 8 * Buffered pinging using cyclic arrays.
13 * Tox is free software: you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation, either version 3 of the License, or
16 * (at your option) any later version.
17 *
18 * Tox is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
25 */ 9 */
26#ifdef HAVE_CONFIG_H 10#ifdef HAVE_CONFIG_H
27#include "config.h" 11#include "config.h"
diff --git a/toxcore/ping.h b/toxcore/ping.h
index 0413e285..9badd5aa 100644
--- a/toxcore/ping.h
+++ b/toxcore/ping.h
@@ -1,27 +1,11 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Buffered pinging using cyclic arrays.
3 */
4
5/*
6 * Copyright © 2016-2018 The TokTok team. 2 * Copyright © 2016-2018 The TokTok team.
7 * Copyright © 2013 Tox project. 3 * Copyright © 2013 Tox project.
8 * Copyright © 2013 plutooo 4 * Copyright © 2013 plutooo
9 * 5 */
10 * This file is part of Tox, the free peer to peer instant messenger. 6
11 * This file is donated to the Tox Project. 7/*
12 * 8 * Buffered pinging using cyclic arrays.
13 * Tox is free software: you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation, either version 3 of the License, or
16 * (at your option) any later version.
17 *
18 * Tox is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
25 */ 9 */
26#ifndef C_TOXCORE_TOXCORE_PING_H 10#ifndef C_TOXCORE_TOXCORE_PING_H
27#define C_TOXCORE_TOXCORE_PING_H 11#define C_TOXCORE_TOXCORE_PING_H
diff --git a/toxcore/ping_array.api.h b/toxcore/ping_array.api.h
index e0ac333b..81ede8fa 100644
--- a/toxcore/ping_array.api.h
+++ b/toxcore/ping_array.api.h
@@ -1,26 +1,11 @@
1%{ 1%{
2/* 2/* SPDX-License-Identifier: GPL-3.0-or-later
3 * Implementation of an efficient array to store that we pinged something. 3 * Copyright © 2016-2018 The TokTok team.
4 * Copyright © 2013 Tox project.
4 */ 5 */
5 6
6/* 7/*
7 * Copyright © 2016-2018 The TokTok team. 8 * Implementation of an efficient array to store that we pinged something.
8 * Copyright © 2013 Tox project.
9 *
10 * This file is part of Tox, the free peer to peer instant messenger.
11 *
12 * Tox is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * Tox is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 9 */
25#ifndef C_TOXCORE_TOXCORE_PING_ARRAY_H 10#ifndef C_TOXCORE_TOXCORE_PING_ARRAY_H
26#define C_TOXCORE_TOXCORE_PING_ARRAY_H 11#define C_TOXCORE_TOXCORE_PING_ARRAY_H
diff --git a/toxcore/ping_array.c b/toxcore/ping_array.c
index c39dc881..a93d48dd 100644
--- a/toxcore/ping_array.c
+++ b/toxcore/ping_array.c
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Implementation of an efficient array to store that we pinged something. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2014 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Implementation of an efficient array to store that we pinged something.
7 * Copyright © 2014 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifdef HAVE_CONFIG_H 9#ifdef HAVE_CONFIG_H
25#include "config.h" 10#include "config.h"
diff --git a/toxcore/ping_array.h b/toxcore/ping_array.h
index a2e57856..589573c8 100644
--- a/toxcore/ping_array.h
+++ b/toxcore/ping_array.h
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Implementation of an efficient array to store that we pinged something. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2013 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * Implementation of an efficient array to store that we pinged something.
7 * Copyright © 2013 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifndef C_TOXCORE_TOXCORE_PING_ARRAY_H 9#ifndef C_TOXCORE_TOXCORE_PING_ARRAY_H
25#define C_TOXCORE_TOXCORE_PING_ARRAY_H 10#define C_TOXCORE_TOXCORE_PING_ARRAY_H
diff --git a/toxcore/state.c b/toxcore/state.c
index bca7a151..67cc68ad 100644
--- a/toxcore/state.c
+++ b/toxcore/state.c
@@ -1,3 +1,7 @@
1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Copyright © 2016-2020 The TokTok team.
3 * Copyright © 2014 Tox project.
4 */
1#include "state.h" 5#include "state.h"
2 6
3#include <string.h> 7#include <string.h>
diff --git a/toxcore/state.h b/toxcore/state.h
index 829036d8..cbe97b49 100644
--- a/toxcore/state.h
+++ b/toxcore/state.h
@@ -1,3 +1,8 @@
1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Copyright © 2016-2020 The TokTok team.
3 * Copyright © 2014 Tox project.
4 */
5
1/** 6/**
2 * The state module is responsible for parsing the Tox save data format and for 7 * The state module is responsible for parsing the Tox save data format and for
3 * saving state in that format. 8 * saving state in that format.
diff --git a/toxcore/tox.api.h b/toxcore/tox.api.h
index f9712b7e..732262f1 100644
--- a/toxcore/tox.api.h
+++ b/toxcore/tox.api.h
@@ -1,26 +1,11 @@
1%{ 1%{
2/* 2/* SPDX-License-Identifier: GPL-3.0-or-later
3 * The Tox public API. 3 * Copyright © 2016-2018 The TokTok team.
4 * Copyright © 2013 Tox project.
4 */ 5 */
5 6
6/* 7/*
7 * Copyright © 2016-2018 The TokTok team. 8 * The Tox public API.
8 * Copyright © 2013 Tox project.
9 *
10 * This file is part of Tox, the free peer to peer instant messenger.
11 *
12 * Tox is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * Tox is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 9 */
25#ifndef C_TOXCORE_TOXCORE_TOX_H 10#ifndef C_TOXCORE_TOXCORE_TOX_H
26#define C_TOXCORE_TOXCORE_TOX_H 11#define C_TOXCORE_TOXCORE_TOX_H
diff --git a/toxcore/tox.c b/toxcore/tox.c
index ebf3ab68..2099a26f 100644
--- a/toxcore/tox.c
+++ b/toxcore/tox.c
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * The Tox public API. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2013 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * The Tox public API.
7 * Copyright © 2013 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifdef HAVE_CONFIG_H 9#ifdef HAVE_CONFIG_H
25#include "config.h" 10#include "config.h"
diff --git a/toxcore/tox.h b/toxcore/tox.h
index 50e838f3..ab28be40 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -1,25 +1,10 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * The Tox public API. 2 * Copyright © 2016-2018 The TokTok team.
3 * Copyright © 2013 Tox project.
3 */ 4 */
4 5
5/* 6/*
6 * Copyright © 2016-2018 The TokTok team. 7 * The Tox public API.
7 * Copyright © 2013 Tox project.
8 *
9 * This file is part of Tox, the free peer to peer instant messenger.
10 *
11 * Tox is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * Tox is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 8 */
24#ifndef C_TOXCORE_TOXCORE_TOX_H 9#ifndef C_TOXCORE_TOXCORE_TOX_H
25#define C_TOXCORE_TOXCORE_TOX_H 10#define C_TOXCORE_TOXCORE_TOX_H
diff --git a/toxcore/util.c b/toxcore/util.c
index 3625f3d1..58b75763 100644
--- a/toxcore/util.c
+++ b/toxcore/util.c
@@ -1,27 +1,11 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Utilities.
3 */
4
5/*
6 * Copyright © 2016-2018 The TokTok team. 2 * Copyright © 2016-2018 The TokTok team.
7 * Copyright © 2013 Tox project. 3 * Copyright © 2013 Tox project.
8 * Copyright © 2013 plutooo 4 * Copyright © 2013 plutooo
9 * 5 */
10 * This file is part of Tox, the free peer to peer instant messenger. 6
11 * This file is donated to the Tox Project. 7/*
12 * 8 * Utilities.
13 * Tox is free software: you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation, either version 3 of the License, or
16 * (at your option) any later version.
17 *
18 * Tox is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
25 */ 9 */
26#ifdef HAVE_CONFIG_H 10#ifdef HAVE_CONFIG_H
27#include "config.h" 11#include "config.h"
diff --git a/toxcore/util.h b/toxcore/util.h
index 2a0503e1..5483ff04 100644
--- a/toxcore/util.h
+++ b/toxcore/util.h
@@ -1,27 +1,11 @@
1/* 1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Utilities.
3 */
4
5/*
6 * Copyright © 2016-2018 The TokTok team. 2 * Copyright © 2016-2018 The TokTok team.
7 * Copyright © 2013 Tox project. 3 * Copyright © 2013 Tox project.
8 * Copyright © 2013 plutooo 4 * Copyright © 2013 plutooo
9 * 5 */
10 * This file is part of Tox, the free peer to peer instant messenger. 6
11 * This file is donated to the Tox Project. 7/*
12 * 8 * Utilities.
13 * Tox is free software: you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation, either version 3 of the License, or
16 * (at your option) any later version.
17 *
18 * Tox is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
25 */ 9 */
26#ifndef C_TOXCORE_TOXCORE_UTIL_H 10#ifndef C_TOXCORE_TOXCORE_UTIL_H
27#define C_TOXCORE_TOXCORE_UTIL_H 11#define C_TOXCORE_TOXCORE_UTIL_H