Skip to content

Commit

Permalink
cleanup: Move definitions of tox_private.h functions to tox_private.c.
Browse files Browse the repository at this point in the history
Also moved lock/unlock to tox_private so they can be used across these 2
tox/tox_private translation units.
  • Loading branch information
iphydf committed Mar 30, 2022
1 parent 09575dc commit b6f2690
Show file tree
Hide file tree
Showing 6 changed files with 302 additions and 283 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ set(toxcore_SOURCES ${toxcore_SOURCES}
toxcore/tox_api.c
toxcore/tox.c
toxcore/tox.h
toxcore/tox_private.c
toxcore/tox_private.h)
set(toxcore_API_HEADERS ${toxcore_API_HEADERS} ${toxcore_SOURCE_DIR}/toxcore/tox.h^tox)

Expand Down
1 change: 1 addition & 0 deletions toxcore/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ cc_library(
srcs = [
"tox.c",
"tox_api.c",
"tox_private.c",
],
hdrs = [
"tox.h",
Expand Down
1 change: 1 addition & 0 deletions toxcore/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ libtoxcore_la_SOURCES = ../third_party/cmp/cmp.c \
../toxcore/tox_events.c \
../toxcore/tox_unpack.h \
../toxcore/tox_unpack.c \
../toxcore/tox_private.c \
../toxcore/tox_private.h \
../toxcore/tox_struct.h \
../toxcore/tox_api.c \
Expand Down
Loading

0 comments on commit b6f2690

Please sign in to comment.