summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2014-10-13Fortify error-checks and FSM...Basically the direct calls to cancelcall() should be minimized and only set off in a callback. Additionally, tweak other error-cases and don't always quit fatally but instead provide ways to get out of an error-condition. FRIGN
2014-10-13Finish cleaning up av-callbacks...Now it's fun again to work with the code. FRIGN
2014-10-12Further simplify call-start-callbacks...using the udata-void pointers to pass data as a source of information. FRIGN
2014-10-12Use (void *userdata) in callbacks and drop ringing-callback...This saves a lot of LOC and is definitely easier to maintain. FRIGN
2014-10-12Fix vertical spacingsin
2014-10-12We might eventually have logerr() and logwarn()sin
2014-10-12tox_is_data_encrypted() was renamed to tox_is_save_encrypted()sin
2014-10-12Add stricter error-checking...In upcoming commits, these errors will be incorporated into the logging-system, so they don't look so out of place when issued. FRIGN
2014-10-10Add link to patch in README for building on OSXsin
2014-10-10Don't spin on request/out/<ID> if we echo anything other than '0' or '1'sin
2014-10-09Add kytv to LICENSE for contributing the manpagesin
2014-10-09Add nospam/ to manpagesin
2014-10-09Use NSIG instead of _NSIGsin
2014-10-09Fix request- and friend-management...When you got a request, but not accepted it via request/out/... and instead sent a request yourself, it would not remove the FIFO. This patch fixes this behaviour by iterating through the request- list and removing the FIFO if it's still existing. Additionally, actually make it possible to reject requests and re-add your friends later by managing the internal tox-state properly. FRIGN
2014-10-08Style fix...Similar style as for detecting broken file transfers. sin
2014-10-08Don't close a random fd...if (f->rxstate == TRANSFER_INPROGRESS && (fd = openat(f->dirfd, ffiles[FFILE_OUT].name, ffiles[FFILE_OUT].flags, 0666)) == -1 && errno == ENXIO) { ... } else { close(fd); <--- not always appropriate! } sin
2014-10-08Do a toxav_hangup() like we do elsewhere...This will trigger the callback and reset toxav internal states accordingly. In the callback we actually call cancelcall(). sin
2014-10-08Fix file-transferssin
2014-10-08Check outfiles if they are still open...If not, abort receiving. FRIGN
2014-10-08Update READMEsin
2014-10-08Update READMEsin
2014-10-08Update READMEsin
2014-10-08Update READMEsin
2014-10-08Update READMEsin
2014-10-08Check if the call id is valid before cancelling itsin
2014-10-08Fix build on kfreebsdKill Your TV
2014-10-08Add -lrt to LDFLAGSsin
2014-10-08Manpage updatesin
2014-10-08Rework state management for audio calls...No need to try to keep local state, just use toxav_get_call_state(). We now can auto-accept calls by pre-attaching on the call_out FIFO. sin
2014-10-08Add manpagesin
2014-10-08A bit more consistent output messagesin
2014-10-08Implement peer timeoutsin
2014-10-08Increase ringing delaysin
2014-10-08Update TODOsin
2014-10-08Release call resources with toxav_kill_transmission()...Reject calls on both sides to reset states. This still needs to be tested to see if there's any effect of doing that. sin
2014-10-08Remove debug printf()sin
2014-10-07Simplify user state trackingsin
2014-10-07Refactor user-state-logicFRIGN
2014-10-07Rename ustatus to ustatesin
2014-10-07Correctly inform external scripts of an invalid user statesin
2014-10-07Add support for changing the user state and reporting friend's user statesin
2014-10-07Allocate enough memory to allow copying all the friendssin
2014-10-07Revert accidental modification to config.mksin
2014-10-07Send the actual message when initiating the friend requestsin
2014-10-07Fix possible stack corruption when parsing friend IDssin
2014-10-07Reset fd offset when writing outsin
2014-10-06Nuke leading spacesin
2014-10-06Reset state after hangupsin
2014-10-06Re-order function declssin
2014-10-06Allow to attach aplay after we've initiated a callsin