summaryrefslogtreecommitdiff
path: root/toxav/msi.c
AgeCommit message (Collapse)Author
2016-11-20Fix NULL pointer dereference in log callsMaxim Biro
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-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-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-17Make ToxAV statelessGregory Mullen (grayhatter)
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-13Group #include directives in 3-4 groups.iphydf
1. Current module (if C file). 2. Headers from current library. 3. Headers from other library (e.g. toxcore includes in toxav). 4. System headers.
2016-09-07Comment intentional switch fallthroughsJfreegman
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.
2016-09-02Do not use `else` after `return`.iphydf
http://llvm.org/docs/CodingStandards.html#use-early-exits-and-continue-to-simplify-code
2016-09-01Sort #includes in all source files.iphydf
2016-08-31Add braces to all if statements.iphydf
2016-08-27Move logging to a callback.iphydf
This removes the global logger (which by the way was deleted when the first tox was killed, so other toxes would then stop logging). Various bits of the code now carry a logger or pass it around. It's a bit less transparent now, but now there is no need to have a global logger, and clients can decide what to log and where.
2015-12-15Fixed use of it after free.irungentoo
2015-11-03Astyle.irungentoo
2015-10-23Fixed some memory related bugs.irungentoo
2015-10-10New Adaptive BR algorithm, cleanups and fixesEniz Vukovic
2015-08-09Updated with upstreammannol
2015-07-20Fixed some strange build issues.irungentoo
2015-07-08send_message() is too global to be non-staticGrayHatter
2015-05-22Updated with mastermannol
2015-05-12Fix bugmannol
2015-04-30Added many test and fixed various warningsmannol
2015-04-29Donemannol
2015-04-22Finished refactoringmannol
2015-04-21Final touchupsmannol
2015-04-17Updated with upstreammannol
2015-04-08Video works nowmannol
2015-03-22Started testing transfermannol
2015-03-01Make toxav thread safemannol
2015-02-21New msi protocolmannol
2015-02-20Removed extra msi header and started testingmannol
2015-02-18Msi should be done; toxav.c need a cleanup and adjustmentsmannol
2015-02-17Added 2 new headers into msi for buffer controlmannol
2015-02-17Updated types in Messenger callbacks to fit with the ones in the new api.irungentoo
Friend number changed from int32_t to uint32_t. Some lengths changed to size_t.
2015-02-16Fixed header protectors and cleaning up the msimannol
2015-02-15Started adjusting msi backend to new apimannol
2015-02-08Fixed memory leak.irungentoo
2015-02-06Fixed memory leak.irungentoo
2015-01-24Current progressmannol
2014-11-29Merge branch 'mutex-1' of https://github.com/mannol/toxcoreirungentoo
2014-11-29More av cleanupmannol
2014-11-24Merge branch 'master' of https://github.com/mannol/toxcoreirungentoo
2014-11-18av refactormannol
2014-10-25Fixed possible threading issues.irungentoo_trip
2014-10-25Fix use-after-free of toxav's TimerHandlerTux3 / Mlkj / !Lev.uXFMLA
If msi.c:timer_terminate_session frees "handler", then when msi.c:timer_poll's thread resumes, there WILL be a use after free of "handler", with a likely segfault. This use after free causes a crash in qTox, see tux3/qTox#534
2014-10-17Trying to fix TimerHandler *handler memory leakxor2003
2014-09-21Fixed memory leak.irungentoo
2014-09-10Fix exceptional leak in msi.cTux3 / Mlkj / !Lev.uXFMLA