summaryrefslogtreecommitdiff
path: root/toxcore
AgeCommit message (Collapse)Author
2016-12-14Release 0.1.0.iphydf
Fixes #216.
2016-12-13Fix version compatibility test.sudden6
Also added some test cases for it.
2016-12-13Fix padding in SAVED_FRIEND struct and add test.Robin Lindén
Test covers saving and loading of a Tox instance with a friend added.
2016-12-12Conditionally enable non-portable assert on LP64.iphydf
This only works on LP64. It may fail on Windows, which can be LLP64 (IL32P64).
2016-12-10Fix off by one error in saving our own status message.iphydf
2016-12-10net_crypto give handle_data_packet_helper a better nameGregory Mullen (grayhatter)
2016-12-03rename messenger function, prepend m_Gregory Mullen (grayhatter)
2016-11-24Version Patch v0.0.4 => v0.0.5Gregory Mullen (grayhatter)
2016-11-24add NAT hole punching level to Tox APIGregory Mullen (grayhatter)
2016-11-21Made saveformat platform-independent.Robin Lindén
Fixes #215.
2016-11-21Mark Tox_Options struct as deprecated.iphydf
We will remove it in v0.1.
2016-11-15Convert to and from network byte order in set/get nospam.iphydf
Fixes #205.
2016-11-14new_messenger(options ... ) must never be nullGregory Mullen (grayhatter)
2016-11-14v0.0.4iphydf
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-11Add DHT_create_packetendoffile78
2016-11-09Remove new_nonce function in favour of random_nonce.iphydf
`new_nonce` has been an alias for `random_nonce` for a while now. Having two names for the same operation is confusing. `random_nonce` better expresses the intent. The documentation for `new_nonce` talks about guaranteeing that the nonce is different from previous ones, which is incorrect, it's just quite likely to be different.
2016-11-07Release v0.0.3.iphydf
2016-11-06Move log callback to options.iphydf
Previously, all log messages generated by tox_new (which is quite a lot) were dropped, because client code had no chance to register a logging callback, yet. This change allows setting the log callback from the beginning and removes the ability to unset it. Since the log callback is forever special, since it can't be stateless, we don't necessarily need to treat it uniformly (with `event`).
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-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-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-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-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-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-28v0.0.0 => v0.0.1Gregory Mullen (grayhatter)
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-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-22Make TCP_Connections module-private.iphydf
2016-09-22Make TCP_Server opaque.iphydf
We should aim to make as many structures module-private as possible.
2016-09-21Make group callbacks statelessJfreegman
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-18Added UB comment r/t deleting a friend w/ active callGregory Mullen (grayhatter)
2016-09-18Make internal chat list function take uint32_t* as well.iphydf
The public one already does this, and the internal one actually assigns `uint32_t`s.
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-16const-correctness in windows code.iphydf
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.