diff options
author | zoff99 <zoff@zoff.cc> | 2020-04-09 20:07:32 +0200 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2020-04-16 12:28:13 +0000 |
commit | cdafc6ff5ee13595ecf5a4e1fe0cb28e255c37df (patch) | |
tree | e11907b288b1ff68a69ed74ed33c0f48676a307f /toxcore/Messenger.c | |
parent | c08b2fb3e2c3c8e8a5722e7350b61efd6992be45 (diff) |
Add new semi-private API functions to set per-packet-id custom handlers.
This is to prepare for ToxAV becoming independent of toxcore internal calls.
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r-- | toxcore/Messenger.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index a4bc8100..c96a330f 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -1889,7 +1889,8 @@ int send_custom_lossless_packet(const Messenger *m, int32_t friendnumber, const | |||
1889 | return -2; | 1889 | return -2; |
1890 | } | 1890 | } |
1891 | 1891 | ||
1892 | if (data[0] < PACKET_ID_RANGE_LOSSLESS_CUSTOM_START || data[0] > PACKET_ID_RANGE_LOSSLESS_CUSTOM_END) { | 1892 | if ((data[0] < PACKET_ID_RANGE_LOSSLESS_CUSTOM_START || data[0] > PACKET_ID_RANGE_LOSSLESS_CUSTOM_END) |
1893 | && data[0] != PACKET_ID_MSI) { | ||
1893 | return -3; | 1894 | return -3; |
1894 | } | 1895 | } |
1895 | 1896 | ||