summaryrefslogtreecommitdiff
path: root/toxav/BUILD.bazel
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-07-12 17:22:20 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-07-12 20:21:42 +0000
commitbeeb9b4335d9ca6f947a52528453753a51f194f3 (patch)
tree242cad42e2e90ebf5ed04283fd79f42f4e3afa60 /toxav/BUILD.bazel
parentcbda01021c561bd061cb03a1c1bab58199ac2307 (diff)
Style fixes in TCP code; remove MIN and PAIR from util.h.
* Moved PAIR to toxav, where it's used (but really this should die). * Replace most MIN calls with typed `min_*` calls. Didn't replace the ones where the desired semantics are unclear. Moved the MIN macro to the one place where it's still used. * Avoid assignments in `while` loops. Instead, factored out the loop body into a separate `bool`-returning function. * Use named types for callbacks (`_cb` types). * Avoid assignments in `if` conditions. * Removed `MAKE_REALLOC` and expanded its two calls. We can't have templates in C, and this fake templating is ugly and hard to analyse and debug (it expands on a single line). * Moved epoll system include to the .c file, out of the .h file. * Avoid assignments in expressions (`a = b = c;`). * Avoid multiple declarators per struct member declaration. * Fix naming inconsistencies. * Replace `net_to_host` macro with function.
Diffstat (limited to 'toxav/BUILD.bazel')
-rw-r--r--toxav/BUILD.bazel7
1 files changed, 7 insertions, 0 deletions
diff --git a/toxav/BUILD.bazel b/toxav/BUILD.bazel
index dbe57b6c..f6c92b52 100644
--- a/toxav/BUILD.bazel
+++ b/toxav/BUILD.bazel
@@ -55,10 +55,16 @@ cc_test(
55) 55)
56 56
57cc_library( 57cc_library(
58 name = "pair",
59 hdrs = ["pair.h"],
60)
61
62cc_library(
58 name = "audio", 63 name = "audio",
59 srcs = ["audio.c"], 64 srcs = ["audio.c"],
60 hdrs = ["audio.h"], 65 hdrs = ["audio.h"],
61 deps = [ 66 deps = [
67 ":pair",
62 ":public", 68 ":public",
63 ":rtp", 69 ":rtp",
64 "//c-toxcore/toxcore:network", 70 "//c-toxcore/toxcore:network",
@@ -78,6 +84,7 @@ cc_library(
78 ], 84 ],
79 deps = [ 85 deps = [
80 ":audio", 86 ":audio",
87 ":pair",
81 ":public", 88 ":public",
82 "//c-toxcore/toxcore:network", 89 "//c-toxcore/toxcore:network",
83 "@libvpx", 90 "@libvpx",