Skip to content

Commit 5cac6d7

Browse files
committed
cleanup: Move tox_get_system out of the public API.
It's not released, yet, and this function is a pain. We don't want it going forward.
1 parent c9ca400 commit 5cac6d7

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

auto_tests/tox_dispatch_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "../toxcore/tox.h"
1111
#include "../toxcore/tox_dispatch.h"
1212
#include "../toxcore/tox_events.h"
13+
#include "../toxcore/tox_private.h"
1314
#include "../toxcore/tox_unpack.h"
1415
#include "auto_test_support.h"
1516
#include "check_compat.h"

testing/fuzzing/protodump_reduce.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "../../toxcore/tox.h"
55
#include "../../toxcore/tox_dispatch.h"
66
#include "../../toxcore/tox_events.h"
7+
#include "../../toxcore/tox_private.h"
78
#include "fuzz_support.h"
89
#include "fuzz_tox.h"
910

toxcore/tox.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,8 +922,6 @@ Tox *tox_new(const struct Tox_Options *options, Tox_Err_New *error);
922922
*/
923923
void tox_kill(Tox *tox);
924924

925-
const Tox_System *tox_get_system(Tox *tox);
926-
927925
/**
928926
* @brief Calculates the number of bytes required to store the tox instance with
929927
* tox_get_savedata.

toxcore/tox_private.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ Tox_System tox_default_system(void);
3131
void tox_lock(const Tox *tox);
3232
void tox_unlock(const Tox *tox);
3333

34+
const Tox_System *tox_get_system(Tox *tox);
35+
3436
/**
3537
* Set the callback for the `friend_lossy_packet` event for a specific packet ID.
3638
* Pass NULL to unset.

0 commit comments

Comments
 (0)