summaryrefslogtreecommitdiff
path: root/toxcore/tox_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/tox_private.h')
-rw-r--r--toxcore/tox_private.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/toxcore/tox_private.h b/toxcore/tox_private.h
new file mode 100644
index 00000000..593282f7
--- /dev/null
+++ b/toxcore/tox_private.h
@@ -0,0 +1,44 @@
1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Copyright © 2016-2020 The TokTok team.
3 * Copyright © 2013 Tox project.
4 */
5
6#ifndef C_TOXCORE_TOXCORE_TOX_PRIVATE_H
7#define C_TOXCORE_TOXCORE_TOX_PRIVATE_H
8
9#include <stdbool.h>
10#include <stddef.h>
11#include <stdint.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17/**
18 * Set the callback for the `friend_lossy_packet` event for a specific packet ID.
19 * Pass NULL to unset.
20 *
21 * allowed packet ID range:
22 * from `PACKET_ID_RANGE_LOSSY_START` to `PACKET_ID_RANGE_LOSSY_END` (both inclusive)
23 */
24void tox_callback_friend_lossy_packet_per_pktid(Tox *tox, tox_friend_lossy_packet_cb *callback, uint8_t pktid);
25
26/**
27 * Set the callback for the `friend_lossless_packet` event for a specific packet ID.
28 * Pass NULL to unset.
29 *
30 * allowed packet ID range:
31 * from `PACKET_ID_RANGE_LOSSLESS_CUSTOM_START` to `PACKET_ID_RANGE_LOSSLESS_CUSTOM_END` (both inclusive)
32 * and
33 * `PACKET_ID_MSI`
34 */
35void tox_callback_friend_lossless_packet_per_pktid(Tox *tox, tox_friend_lossless_packet_cb *callback, uint8_t pktid);
36
37void tox_set_av_object(Tox *tox, void *object);
38void *tox_get_av_object(const Tox *tox);
39
40#ifdef __cplusplus
41}
42#endif
43
44#endif // C_TOXCORE_TOXCORE_TOX_PRIVATE_H