summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-11-06Rename log levels to remove the extra "LOG" prefix.iphydf
`TOX_LOG_LEVEL_LOG_TRACE` => `TOX_LOG_LEVEL_TRACE`.
2016-11-06Change packet kind enum to use hex constants.iphydf
Hex constants make it clearer that you can only use 2 nibbles (the two digits of the number, displayed as two columns in the source code), i.e. 1 byte, for the packet kind. It also makes the bit representation easier to see.
2016-11-06Remove assocendoffile78
2016-11-06Enable address sanitizer on the cmake build.iphydf
2016-11-06Enable all possible C compiler warning flags.iphydf
We disable the ones that fire, so we can use -Werror. We can then investigate each warning individually and see whether to fix it or to keep silencing it.
2016-11-05Convert series of NET_PACKET_* defines into a typedef enumGregory Mullen (grayhatter)
fixup! TravisCI shorten IRC message
2016-11-03Move packing and unpacking DHT request packets to DHT module.iphydf
These definitely don't belong in a module called "crypto core". The DHT module seems like the best place to put them, since they are sent to DHT nodes.
2016-11-02Compile as C++ for windows builds.iphydf
Compiling as C++ changes nothing semantically, but ensures that we don't break C++ compatibility while also retaining C compatibility. C++ compatibility is useful for tooling and additional diagnostics and analyses.
2016-11-02Remove unimplemented "time delta" parameter.iphydf
In the future, we may want to revisit this parameter, but right now, it serves no purpose and only confuses tools.
2016-10-30TravisCI shorten IRC messageGregory Mullen (grayhatter)
2016-10-30Version Patch v0.0.2Gregory Mullen (grayhatter)
2016-10-29Rename some internal "group chat" things to "conference".iphydf
This is to allow new group chats to coexist with old group chats. We do not rename everything in group.[ch] to conference, yet, because it's not currently necessary, and a general internal API overhaul is due at some point anyway.
2016-10-28toxav renaming: group.{h,c} -> groupav.{h,c}Dmytro Vorobiov
toxav file for "group" conflicts with toxcore "group" file. While this works fine in almost all cases, Xcode on macOS is confused with that.
2016-10-26Error if format_test can't be executed.iphydf
This ensures that on Travis, format_test will always be executed, or the build fails.
2016-10-26Merge remote-tracking branch 'zetok/docs-install'iphydf
2016-10-25docs: correct instructions for cloning & harden agains repo name changesZetok Zalbavar
2016-10-25Corrected libsodium tagCorey Sheldon
-tags/1.0.3 +tags/1.0.11 Also expanded the @"Rpm Development Tools" bit for clarity and sanity across the instructions.
2016-10-17Update readme, moved the roadmap to a higher positionGregory Mullen (grayhatter)
2016-10-11Remove duplicate tests: split tests part 2.iphydf
2016-10-11Install libraries with RPATH.iphydf
This makes deployment easier, as the install libpath is used to look up dependent libraries.
2016-10-06Duplicate tox_test to 4 other files.iphydf
In a next step, we will remove tests from each file to have a per-binary split of tests. This will help identify which tests fail most often on Travis CI. In another future step, we will split the large one_test into several auto tests, which will make testing quite a bit slower (adding about 10 seconds setup time to each), but hopefully a lot more stable ("Tox went offline" should not happen as much anymore).
2016-10-06Set log level for DEBUG=ON to LOG_DEBUG.iphydf
We use TRACE=ON (cmake flag) to enable LOG_TRACE. This way, a regular build can enable DEBUG while not paying the price of TRACE. This is particularly important for FFI bindings (especially Python), where invoking callbacks can be an expensive operation.
2016-10-06Use `socklen_t` instead of `unsigned int` in call to `accept`.iphydf
Not all platforms define `socklen_t` as `unsigned int`. E.g. Android defines it as `int`.
2016-10-05Add option to build tox-bootstrapdMaxim Biro
When cross-compiling to <target> from Linux, cmake might find native Linux libconfig and decide to build tox-bootstrapd. If the target is Windows, this will fail, as tox-bootstrapd can't be built for Windows in the first place. If the target is Linux of some other architecture, then using host native libconfig will fail too. Thus an option is needed to guard against this.
2016-10-04Align things nicerMaxim Biro
2016-10-04Use TEST_TIMEOUT_SECONDS cmake flag on TravisMaxim Biro
2016-10-04Add option to set test timeoutMaxim Biro
Some tests take 20 or more minutes to run before they timeout, this allows to limit their runtime if needed.
2016-10-02Rebuild apidsl'd headers in cmake.iphydf
- Moved apidsl headers next to their generated versions. In the future, perhaps all (or most) headers will be apidsl-generated, so the sources should stay together. - Try to find apidsl/apigen binary and astyle binary and use it for the format test. Don't run the format test if these can't be found.
2016-10-02Remove the _test suffix in auto_test calls.iphydf
All tests must end in `_test` so we can use this convention to slightly shorten the names in `auto_test` calls. This also enforces the convention so future tests obey it.
2016-10-01Minor documentation fixes.iphydf
- Fixed incorrect parameter names (documented name didn't match code name). - Removed `@return` from functions that return `void`. - Make sure every parameter is documented. This required moving the planes and strides documentation to the function docs.
2016-10-01Import the hstox SUT interface from hstox.iphydf
We'll maintain it in the c-toxcore repo, where it belongs.
2016-09-30Remove return after no-return situation (and other cleanups).iphydf
Cleanups: - Fix header guards to not use reserved names. - Avoid name shadowing. - Removed an unused variable found by avoiding name shadowing.
2016-09-30Add the 'Tox' context object to the logger.iphydf
We don't currently support callbacks without context object.
2016-09-30docs(INSTALL): update compiling instructions for LinuxZetok Zalbavar
Also change links from irungentoo/toxcore to TokTok/toxcore
2016-09-29Merge branch 'master' of https://github.com/irungentoo/toxcoreiphydf
2016-09-28Add version-sync script to update all places with versions.iphydf
This will update tox.in.h only. Currently, you will still need to manually update tox.h. An upcoming PR (#154) will update tox.h as part of the build.
2016-09-28Merge branch 'ghost-avswitch'irungentoo
2016-09-28Added astyled toxav.h to match toxav.in.hderive
2016-09-28Updated to match current toxav.hnobody
2016-09-28v0.0.0 => v0.0.1Gregory Mullen (grayhatter)
2016-09-28Merge branch 'distcheck' of https://github.com/felix-salfelder/toxcoreirungentoo
2016-09-27Remove redundant callback objects.iphydf
These three objects and their callback IDs are always the same.
2016-09-26C++ the second round.iphydf
Group chats were changed and now need to be updated. This change got lost in the merge.
2016-09-25Work around bug in opencv3 headers.iphydf
OpenCV 3.1 doesn't define cvRound in C, only in C++. Thus, we now need to compile av_test as C++ code.
2016-09-24Move ring buffer out of toxcore/util into toxav.iphydf
Toxcore itself doesn't use this data structure. Only toxav does, so now toxav owns the code for it.
2016-09-24Make toxcore code C++ compatible.iphydf
It is still C code, so still compatible with C compilers as well. This change lets us see more clearly where implicit conversions occur by making them explicit.
2016-09-24Minor cleanups: unused vars, unreachable code, static globals.iphydf
- All global variables should be static unless they have an explicit extern declaration in a header file. - `to_compare` was not used in encryptsave and toxav tests. - `break` in switch cases is not required directly after `return`, `goto`, or a noreturn function like `abort`.
2016-09-23Replace `void*` with `RingBuffer*` to avoid conversions.iphydf
`vbuf_raw` is always a `RingBuffer*` so there is no need to pretend it could ever be anything else (as indicated by it being a pointer to void).
2016-09-22Make TCP_Connections module-private.iphydf
2016-09-22Allow the OSX build to fail on travis.iphydf
Given that it fails about 80-90% of the time, it's not worth requiring it to pass. Instead, we'll need to manually look at the osx build to see in what way it failed. Also, set `fast_finish` to true, since OSX regularly has multi-hour (up to half a day) outages that can't block us for trivial code changes or non-code changes.