Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-08-17 | Make 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. | |||
2015-11-03 | Astyle. | irungentoo | |
2015-10-11 | Test should not assert when hangup fails | Eniz Vukovic | |
2015-10-10 | New Adaptive BR algorithm, cleanups and fixes | Eniz Vukovic | |
2015-06-13 | Fixed sample size in callback and other stuff | mannol | |
2015-06-05 | Rebased on master and removed alpha channel (again) | mannol | |
2015-05-22 | Move 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-22 | Updated with master | mannol | |
2015-05-01 | Fixed* api comments and some bugs | mannol | |
2015-04-30 | Added many test and fixed various warnings | mannol | |
2015-04-29 | Done | mannol | |
2015-03-18 | Move get_connection_status to self pseudonamespace, to contrast ↵ | Dubslow | |
friend_get_connection_status | |||
2015-03-12 | Convert core code depending on the api | Dubslow | |
2015-02-25 | Ported some tests to the new api. | irungentoo | |
2014-11-29 | More av cleanup | mannol | |
2014-11-27 | Attempted fix of threading issue in test. | irungentoo | |
2014-11-24 | Merge branch 'master' of https://github.com/mannol/toxcore | irungentoo | |
2014-11-18 | av refactor | mannol | |
2014-09-21 | Fixed test. | irungentoo | |
2014-08-02 | Merge branch 'mannol1-master' | irungentoo | |
2014-08-02 | Added userdata pointer to audio/video callbacks | mannol | |
2014-07-31 | fix test | notsecure | |
2014-07-26 | Merge branch 'mannol1-master' | irungentoo | |
2014-07-27 | Fixed tests and conflicts | mannol | |
2014-07-26 | Make codec settings dynamic | mannol | |
2014-07-22 | Merge branch 'master' of https://github.com/mannol1/toxcore | irungentoo | |
2014-07-21 | Fixed conflicts | mannol | |
2014-07-21 | Improved protocol and cleaned code a bit | mannol | |
2014-07-07 | locks in test | notsecure | |
2014-07-07 | make autotests compile | notsecure | |
2014-06-10 | Astyle and fixes. | irungentoo | |
2014-05-25 | Fixed issue. | irungentoo | |
2014-05-25 | Replaced randombytes_salsa20_random_buf() with randombytes() in av tests. | irungentoo | |
2014-05-25 | Merge branch 'mannol1-Multicalls' into multi-av | irungentoo | |
2014-05-24 | Tests works and some fixes | mannol | |
2014-05-16 | This works. | mannol | |
2014-05-10 | This should work | mannol | |
2014-05-03 | Bunch of random changes | mannol | |