summaryrefslogtreecommitdiff
path: root/core/substrate.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/substrate.h')
-rw-r--r--core/substrate.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/core/substrate.h b/core/substrate.h
new file mode 100644
index 00000000..f6cab2a6
--- /dev/null
+++ b/core/substrate.h
@@ -0,0 +1,58 @@
1/* substrate.h
2 * The communications hub
3 * See also: http://http://wiki.tox.im/index.php/Proposal:Slvr_Protocol_Rewrite
4 *
5 * Copyright (C) 2013 Tox project All Rights Reserved.
6 *
7 * This file is part of Tox.
8 *
9 * Tox is free software: you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation, either version 3 of the License, or
12 * (at your option) any later version.
13 *
14 * Tox 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
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
21 *
22 */
23
24#include "network.h"
25
26#ifdef __cplusplus
27//extern "C" {
28#endif
29
30/* Type Definitions */
31
32typedef uint8_t channel_t;
33
34typedef struct {
35 byte a[32];
36} address_t;
37
38typedef struct {
39
40} connection_t;
41
42typedef void(*channel_recv_callback_t)(connection_t*, byte*, size_t, uint64_t);
43
44typedef void(*on_connection_callback_t)(connection_t*);
45
46/* Globals */
47
48extern address_t self_public_key;
49
50/* Functions */
51
52void substrate_init(byte* keydata);
53
54
55#ifdef __cplusplus
56//}
57#endif
58