Skip to content

Commit

Permalink
cleanup: Move tox_get_system out of the public API.
Browse files Browse the repository at this point in the history
It's not released, yet, and this function is a pain. We don't want it
going forward.
  • Loading branch information
iphydf committed Jan 5, 2024
1 parent 6c6c0b1 commit b729c01
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions auto_tests/tox_dispatch_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "../toxcore/tox.h"
#include "../toxcore/tox_dispatch.h"
#include "../toxcore/tox_events.h"
#include "../toxcore/tox_private.h"
#include "../toxcore/tox_unpack.h"
#include "auto_test_support.h"
#include "check_compat.h"
Expand Down
1 change: 1 addition & 0 deletions testing/fuzzing/protodump_reduce.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "../../toxcore/tox.h"
#include "../../toxcore/tox_dispatch.h"
#include "../../toxcore/tox_events.h"
#include "../../toxcore/tox_private.h"
#include "fuzz_support.h"
#include "fuzz_tox.h"

Expand Down
2 changes: 0 additions & 2 deletions toxcore/tox.h
Original file line number Diff line number Diff line change
Expand Up @@ -922,8 +922,6 @@ Tox *tox_new(const struct Tox_Options *options, Tox_Err_New *error);
*/
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
* tox_get_savedata.
Expand Down
2 changes: 2 additions & 0 deletions toxcore/tox_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Tox_System tox_default_system(void);
void tox_lock(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.
* Pass NULL to unset.
Expand Down

0 comments on commit b729c01

Please sign in to comment.