summaryrefslogtreecommitdiff
path: root/other/apidsl
AgeCommit message (Collapse)Author
2016-08-22Make Message received receipts statelessGregory Mullen (grayhatter)
2016-08-22Make Friend User Status statelessGregory Mullen (grayhatter)
2016-08-20Make the friend message callback statelessGregory Mullen (grayhatter)
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-18Make tox_callback_friend_name stateless.iphydf
See #27 and #40 for details.
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-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-07Remove trailing whitespace from toxav.in.h.iphydf
2016-03-09Updated to match current toxav.hnobody
2015-10-24Add synchronization protection for send_frame API functionsEniz Vukovic
2015-10-13Fix typo and change logger config optionEniz Vukovic
2015-10-11Remove old commentEniz Vukovic
2015-10-10New Adaptive BR algorithm, cleanups and fixesEniz Vukovic
2015-08-09Updated with upstreammannol
2015-08-07Fixed memory leak during session cleanup and fixed naming.mannol
2015-07-10Fixed CALL_STATE namingmannol
2015-07-09Fixed documentation.mannol
2015-07-07Fix a couple API doc mistakesJfreegman
2015-06-30Implement handling capability change on rtp levelmannol
2015-06-27Renamed TOXAV_CALL_STATE to TOXAV_FRIEND_CALL_STATEmannol
2015-06-27Added explanation about how audio callback worksmannol
2015-06-27Added payload turning off by setting bit rate to 0mannol
2015-06-25Merge remote-tracking branch 'upstream/master' into new_apimannol
2015-06-20Merge branch 'typo' of https://github.com/zetok/ProjectTox-Coreirungentoo
2015-06-20Merge branch 'doc' of https://github.com/zetok/ProjectTox-Coreirungentoo
2015-06-20Fix typo in readme: "enrironment" → "environment"Zetok Zalbavar
2015-06-20Add real instruction on how to use APIDSL and astyleZetok Zalbavar
also add to "tox{,.in}.h" note that "tox.h" shouldn't be edited directly, pointing to "tox.in.h"
2015-06-20Improve documentation about tcp_portZetok Zalbavar
Apparently it's not entirely clear that it's not needed in clients. v2, as provided by @nurupo
2015-06-05Forgot about thismannol
2015-06-05Rebased on master and removed alpha channel (again)mannol
2015-06-03Return error if file_id parameter is NULL.irungentoo
2015-05-29Comment fix.irungentoo
2015-05-28Fixed comment.irungentoo
2015-05-25tox_new returns NULL on failure.irungentoo
2015-05-22Move savedata to options struct.irungentoo
Add a way to select the type of savedata (normal savedata, load a secret key, potentially others?) to load.
2015-05-22Updated with mastermannol
2015-05-16Added apidsl input filemannol
2015-05-08Added basic TCP server hosting to tox.h api.irungentoo
TODO: tell friends we are hosting a relay and prioritize using relays hosted by friends over bootstrap ones.
2015-04-26fix useless use of catflan
2015-04-25Switched tox.h to the dsl generated one.irungentoo
Added input file to generate it. Moved the astyle stuff to the astyle directory in other/.