summaryrefslogtreecommitdiff
path: root/other/bootstrap_node_packets.h
diff options
context:
space:
mode:
authorMaxim Biro <nurupo.contributions@gmail.com>2016-01-01 00:19:35 -0500
committerMaxim Biro <nurupo.contributions@gmail.com>2016-01-01 00:19:35 -0500
commit6b40a581b1ce036e744c51452bbd6be6c690508f (patch)
treea84b18b278f41c2ef2f0c831afebab449e4361b7 /other/bootstrap_node_packets.h
parente1fc8c1d3cca7e915a73cfe44462f71d2938ecba (diff)
Put config-related functions in a separate file
bootstrap_node_packets.c was giving an error as it was being included twice and there were no include guards, so part of it was split into bootstrap_node_packets.h.
Diffstat (limited to 'other/bootstrap_node_packets.h')
-rw-r--r--other/bootstrap_node_packets.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/other/bootstrap_node_packets.h b/other/bootstrap_node_packets.h
new file mode 100644
index 00000000..43356e7b
--- /dev/null
+++ b/other/bootstrap_node_packets.h
@@ -0,0 +1,35 @@
1/* bootstrap_node_packets.h
2 *
3 * Special bootstrap node only packets.
4 *
5 * Include it in your bootstrap node and use: bootstrap_set_callbacks() to enable.
6 *
7 * Copyright (C) 2015 Tox project All Rights Reserved.
8 *
9 * This file is part of Tox.
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 *
24 */
25
26#ifndef BOOTSTRAP_NODE_PACKETS_H
27#define BOOTSTRAP_NODE_PACKETS_H
28
29#include "../toxcore/network.h"
30
31#define MAX_MOTD_LENGTH 256 /* I recommend you use a maximum of 96 bytes. The hard maximum is this though. */
32
33int bootstrap_set_callbacks(Networking_Core *net, uint32_t version, uint8_t *motd, uint16_t motd_length);
34
35#endif // BOOTSTRAP_NODE_PACKETS_H