summaryrefslogtreecommitdiff
path: root/other
AgeCommit message (Collapse)Author
2016-12-14Fix unresolved reference in toxencryptsave API.iphydf
Also, make sure this won't happen again by checking for it in format-source.
2016-12-13Add compatibility pkg-config modules: libtoxcore, libtoxav.iphydf
These were generated by the autotools build. Some clients may depend on these files instead of the newer split pkg-config files. New clients should be using the toxcore, toxav, toxencryptsave, and toxdns modules.
2016-12-13Add apidsl file for toxencryptsave.iphydf
This breaks the toxencryptsave API. It hides the Tox_Pass_Key struct definition.
2016-12-13Fix `--enable-logging` flag in autotools configure script.iphydf
We also never really tested this, because we run make distcheck, which does another configure with default flags instead of the ones we passed. Fixes #317.
2016-12-12Move -ltoxcore to be the first linked libraryGDR!
2016-12-05Don't build nTox by default.iphydf
Build it on Travis. It won't be built on the windows builds regardless of having it enabled globally. Fixes #292.
2016-11-28Don't error on warnings by defaultMaxim Biro
Having -Werror set by default causes users' builds to fail because toxcore is not warning-free. Failing on errors is appropriate for the development phase, e.g. when building it in a CI enviroment, but it doesn't make much sense to fail builds for users and let them figure out that they need to pass -DWARNINGS=OFF to make the library build.
2016-11-24add NAT hole punching level to Tox APIGregory Mullen (grayhatter)
2016-11-12Use apidsl for the crypto_core API.iphydf
This allows us to use apidsl features like namespaces to enforce a naming standard.
2016-11-10Work around Travis issue that causes build failures.iphydf
Travis seems to no longer set $TERM, which breaks opam. We now manually set it to some hopefully sane value.
2016-11-06Remove assocendoffile78
2016-11-06Enable address sanitizer on the cmake build.iphydf
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-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-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-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-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-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-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-28Updated to match current toxav.hnobody
2016-09-28v0.0.0 => v0.0.1Gregory Mullen (grayhatter)
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-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-21Make group callbacks statelessJfreegman
2016-09-20Add OSX and Windows build to travis config.iphydf
Tests for Windows are disabled for now, until we figure out which tests can successfully run on wine and select only those.
2016-09-19Revert "Make ToxAV stateless"iphydf
This reverts commit 21f8db12c45bd56293262cd4abfb73cd9abec821. It is currently broken. Incoming call callbacks are not invoked, and instead the client goes offline immediately.
2016-09-19Add STRICT_ABI cmake flag to generate export lists.iphydf
Enabling this flag will generate and use an LD version script. It ensures that the dynamic libraries (libtoxcore.so, libtoxav.so) only export the symbols that are defined in their public API (tox.h and toxav.h, respectively).
2016-09-19Changed the umask to 077 so that the keys file is not readable/writable by ↵arza
other users.
2016-09-19Included sys/stat.h.arza
2016-09-17Complete old groupchat conversion to new APIJfreegman
2016-09-17ApiDSL'ing old group chats (now: conference).iphydf
2016-09-17Make ToxAV statelessGregory Mullen (grayhatter)
2016-09-16Ensure that all TODOs have an owner.iphydf
In the future, all TODOs added either need a bug number (TODO(#NN)) or a person's github user name. By default, I made irungentoo the owner of all toxcore TODOs, mannol the owner of toxav TODOs, and myself the owner of API TODOs.
2016-09-16Clean up Travis build a bit in preparation for osx/win.iphydf
2016-09-16Remove format-source from travis script.iphydf
This test is already performed by `make test` later on. We originally had it in the Travis script to make it fail fast when the format is wrong, but there is also some value in running all tests despite format errors. Fixes #83. There are no more relevant phases that would benefit from the padding lines proposed.
2016-09-13Add some astyle options to make it do more.iphydf
It now enforces a bit more formatting. In particular, padding inside parentheses is removed. I would like it to remove padding after unary operators, but there seems to be no option for that.
2016-09-11Use "phase" script for travis build phases.iphydf
This is the first step towards unifying travis configs for toxcore, hstox, and qtox.
2016-09-11Use TokTok's apidsl instead of the iphydf one.iphydf
2016-09-10make the majority of the callbacks stateless and add some status to a testcasemichael bishop
2016-09-09Minor cleanups: header reordering, adding {}.iphydf
I hadn't done this for the "fun" code, yet. Also, we should include system headers after our own headers. "In general, a module should be implemented by one or more .cpp files. Each of these .cpp files should include the header that defines their interface first. This ensures that all of the dependences of the module header have been properly added to the module header itself, and are not implicit. System headers should be included after user headers for a translation unit." -- http://llvm.org/docs/CodingStandards.html#a-public-header-file-is-a-module
2016-09-09Use `const` for version numbers.iphydf
ApiDSL generates the lowercase function declarations for us and puts them in the right namespace (TOX_, TOXAV_).
2016-09-08Add address sanitizer option to cmake file.iphydf
2016-09-07Print a message about missing astyle in format-source.iphydf
2016-09-06Improve static and const correctness.iphydf
- Any non-externally-visible declarations should be `static`. - Casting away the `const` qualifier from pointers-to-const is dangerous. All but one instance of this are now correct. The one instance where we can't keep `const` is one where toxav code actually writes to a chunk of memory marked as `const`. This code also assumes 4 byte alignment of data packets. I don't know whether that is a valid assumption, but it's likely unportable, and *not* obviously correct. - Replaced empty parameter lists with `(void)` to avoid passing parameters to it. Empty parameter lists are old style declarations for unknown number and type of arguments. - Commented out (as `#if DHT_HARDENING` block) the hardening code that was never executed. - Minor style fix: don't use `default` in enum-switches unless the number of enumerators in the default case is very large. In this case, it was 2, so we want to list them both explicitly to be warned about missing one if we add one in the future. - Removed the only two function declarations from nTox.h and put them into nTox.c. They are not used outside and nTox is not a library.