summaryrefslogtreecommitdiff
path: root/other
AgeCommit message (Collapse)Author
2016-08-20Build assoc DHT code on travis.iphydf
2016-08-20Add format-source script.iphydf
This is easier to use from a precommit hook, so it can be used to ensure that all formatting is correct before committing code.
2016-08-19Make Typing change callback statelessGregory Mullen (grayhatter)
Moved a few #defines to the top of the header for better readability
2016-08-18Make friend_status_message callback stateless.iphydf
See #40 for details.
2016-08-18Fix some compiler warnings.iphydf
2016-08-18Make tox_callback_friend_name stateless.iphydf
See #27 and #40 for details.
2016-08-17Add missing DHT_bootstrap to CMakeLists.txt.iphydf
- This PR also adds a DEBUG cmake option that enables -DTOX_DEBUG. - We also remove `-Wall`, because there are too many warnings, and nobody really looks at them at the moment. We'll see about fixing them soon. We'll also want to enable `-Werror` at some point. - Finally, this PR enables `-O3` to make sure toxcore still works correctly under heavy compiler optimisations.
2016-08-17Try searching for libsodium with pkg-config in ./configure.iphydf
If libsodium can't be found with PKG_CHECK_MODULES, try AC_CHECK_LIB. If that also fails, abort configure. If a user passes --with-libsodium-libs explicitly, that overrides the pkg-config found location.
2016-08-17Merge remote-tracking branch 'irungentoo/master'iphydf
2016-08-17Make self_connection_status callback stateless.iphydf
**What are we doing?** We are moving towards stateless callbacks. This means that when registering a callback, you no longer pass a user data pointer. Instead, you pass a user data pointer to tox_iterate. This pointer is threaded through the code, passed to each callback. The callback can modify the data pointed at. An extra indirection will be needed if the pointer itself can change. **Why?** Currently, callbacks are registered with a user data pointer. This means the library has N pointers for N different callbacks. These pointers need to be managed by the client code. Managing the lifetime of the pointee can be difficult. In C++, it takes special effort to ensure that the lifetime of user data extends at least beyond the lifetime of the Tox instance. For other languages, the situation is much worse. Java and other garbage collected languages may move objects in memory, so the pointers are not stable. Tox4j goes through a lot of effort to make the Java/Scala user experience a pleasant one by keeping a global array of Tox+userdata on the C++ side, and communicating via protobufs. A Haskell FFI would have to do similarly complex tricks. Stateless callbacks ensure that a user data pointer only needs to live during a single function call. This means that the user code (or language runtime) can move the data around at will, as long as it sets the new location in the callback. **How?** We are doing this change one callback at a time. After each callback, we ensure that everything still works as expected. This means the toxcore change will require 15 Pull Requests.
2016-08-16Split toxcore into layers.iphydf
This allows us to more clearly define interfaces between modules, and have the linker help us ensure that module boundaries are respected. The onion/tcp/net_crypto layer is a bit too large. This is due to a cyclic dependency (onion -> net_crypto -> TCP -> onion). We may or may not want to break that cycle in the future to allow the onion library to exist on its own without net_crypto.
2016-08-12Add "make install" step to Travis build.iphydf
2016-08-12Only report coverage on clang, not on the GCC build.iphydf
2016-08-12Add and use CMake build scriptiphydf
Also, fix the hstox build that was taking half an hour. It now takes 5 minutes. Also, perform distcheck on travis to ensure that make dist works. It's not actually failing the build at the moment due to broken tests.
2016-08-12Check code formatting on Travis.iphydf
We run astyle on Travis and check if there is a diff. The build terminates if git finds a difference.
2016-08-12Run hstox test suite against toxcore on Travis.iphydf
2016-08-12Move toxcore travis build scripts out of .travis.yml.iphydf
This is in preparation for having multiple types of build. One of the future builds will be a hstox build, another may be frama-c or some other static analyser. It makes sense to split these up into multiple builds, because each of them can take a while, and running them in parallel will speed things up. Also, the hstox test coverage should be reported separately from the toxcore auto_test coverage.
2016-08-11Fix a few issues with running Toxcore tests on Travis-CIGregory Mullen (grayhatter)
> increased the timeout for TCP tests because per @irungentoo the network on Travis-CI can be slow sometimes > allowed groupchats test to restart on error until timeout This had to be done because current groupchats are fundamentally broken and 3/5 times they'll 'net-split' on connect >> Drop group chat tests, add comment to the reason > added some debugging information to TCP tests, and a #define to force IPV6 (Travis-CI only uses IPv4 on their containers) and decreased the itr interval > Went crazy with timeouts for Tox network stuff on Travis. Tests on TCP will still randomly fail due to timeouts. I can't reproduce on any local system. So again per @irungentoo, Travis is slow, let's offer it a short bus.
2016-07-11Documentation: SysVInit workaround for <1024 portsLittleVulpix
Update the manual to provide a command necessary to open <1024 ports for users on SysVinit
2016-07-10Documentation: SysVInit workaround for <1024 portsLittleVulpix
Update the manual to provide a command necessary to open <1024 ports for users on SysVinit
2016-07-07Remove trailing whitespace from toxav.in.h.iphydf
2016-07-07Merge branch 'avswitch' of https://github.com/derivefh/toxcoreiphydf
2016-03-13Merge branch 'make-dist' of https://github.com/roman-yepishev/toxcoreirungentoo
2016-03-09Updated to match current toxav.hnobody
2016-03-03Changes from @nurupo for build and runtime dependencies that reduce image sizeromik-g
Also removal of example bootstrap nodes from the config file in one line
2016-03-03Re-format to reduce image file by 50%romik-g
2016-02-26Add missing files so that archive for make dist is completeRoman Yepishev
2016-02-05Fix #1520: Program returns random data in a functionFerdinand Thiessen
Added default return to non void functions level_syslog and level_stdout.
2016-01-24Add missing newlineMaxim Biro
2016-01-04Cleanups.irungentoo
2016-01-02Change init.d to SysVinitMaxim Biro
2016-01-02Add information on how to update the bootstrap daemonMaxim Biro
2016-01-01Keep it in alphabetical orderMaxim Biro
2016-01-01Version bumpMaxim Biro
2016-01-01Add Dockerfile for the daemonMaxim Biro
2016-01-01Flush stdout outputMaxim Biro
Apparently when no tty is attached, which is the case for Docker, the buffer size for stdout increases to the point that only half of the entire log might be written.
2016-01-01Unify function comment styleMaxim Biro
Use doxygen java-style function comments already used in log.[c|h].
2016-01-01Fix license headers and file descriptionsMaxim Biro
2016-01-01Fix include pathsMaxim Biro
They are relative to the Makefile instead of the source file itself, which is unintuitive and is messing with my IDE.
2016-01-01Remove dependency on files from testing directoryMaxim Biro
Also remove unneeded includes and refactor sleep define.
2016-01-01Put command-line arguments related functions in a separate fileMaxim Biro
2016-01-01Put config-related functions in a separate fileMaxim Biro
bootstrap_node_packets.c was giving an error as it was being included twice and there were no include guards, so part of it was split into bootstrap_node_packets.h.
2015-12-31Add ability to run the daemon in foregroundMaxim Biro
Useful for things like a Docker container or just running it in the terminal. Complements the stdout logging option. This is actually why the stdout logging was added in the first place -- to be used in the foreground mode, though nothing stops one from using stdout in the background mode, which one could redirect to a file.
2015-12-31Fix wrong filename mentioned above licenseMaxim Biro
2015-12-31Rename LOGGER_BACKEND to LOG_BACKENDMaxim Biro
2015-12-31Add ability to specify multiple command line argumentsMaxim Biro
Needed in order to specify which log backend to use. Init scripts need to be updated to contain --config before the path to the config file.
2015-12-31Make daemon use the new log codeMaxim Biro
"log" is a reserved name (log from math.h), so it got changed into write_log.
2015-12-31Make logger a global object instead of an instanceMaxim Biro
Passing Logger object into every function isn't fun. See for yourself: something as simple as a public key printing function turns from >void print_public_key(const uint8_t *public_key) to >void print_public_key(Logger *logger, const uint8_t *public_key)
2015-12-30Add logger object to be able to support multiple logging backendsMaxim Biro
2015-12-30Change log levelsMaxim Biro
Some of them were set incorrectly, e.g. something that caused the daemon to exit was marked as just a warning, instead of an error. Removed debug level as it was hard to decide whether something should go into info or debug. This is mostly because the use of the debug level wasn't well defined. Debug should be used for information that could help a user to debug an issue, but messages marked as debug were by the most part the "success" log messages, which could go into info level instead.