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.
This commit is contained in:
iphydf 2024-01-05 17:13:13 +00:00
parent c9ca4007e3
commit 5cac6d7eb1
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
4 changed files with 4 additions and 2 deletions

View File

@ -10,6 +10,7 @@
#include "../toxcore/tox.h" #include "../toxcore/tox.h"
#include "../toxcore/tox_dispatch.h" #include "../toxcore/tox_dispatch.h"
#include "../toxcore/tox_events.h" #include "../toxcore/tox_events.h"
#include "../toxcore/tox_private.h"
#include "../toxcore/tox_unpack.h" #include "../toxcore/tox_unpack.h"
#include "auto_test_support.h" #include "auto_test_support.h"
#include "check_compat.h" #include "check_compat.h"

View File

@ -4,6 +4,7 @@
#include "../../toxcore/tox.h" #include "../../toxcore/tox.h"
#include "../../toxcore/tox_dispatch.h" #include "../../toxcore/tox_dispatch.h"
#include "../../toxcore/tox_events.h" #include "../../toxcore/tox_events.h"
#include "../../toxcore/tox_private.h"
#include "fuzz_support.h" #include "fuzz_support.h"
#include "fuzz_tox.h" #include "fuzz_tox.h"

View File

@ -922,8 +922,6 @@ Tox *tox_new(const struct Tox_Options *options, Tox_Err_New *error);
*/ */
void tox_kill(Tox *tox); void tox_kill(Tox *tox);
const Tox_System *tox_get_system(Tox *tox);
/** /**
* @brief Calculates the number of bytes required to store the tox instance with * @brief Calculates the number of bytes required to store the tox instance with
* tox_get_savedata. * tox_get_savedata.

View File

@ -31,6 +31,8 @@ Tox_System tox_default_system(void);
void tox_lock(const Tox *tox); void tox_lock(const Tox *tox);
void tox_unlock(const Tox *tox); void tox_unlock(const Tox *tox);
const Tox_System *tox_get_system(Tox *tox);
/** /**
* Set the callback for the `friend_lossy_packet` event for a specific packet ID. * Set the callback for the `friend_lossy_packet` event for a specific packet ID.
* Pass NULL to unset. * Pass NULL to unset.