701c0e1e94
cleanup: Reduce the amount of "extern" in .c files.
...
There is no check at all that the types of externs actually match the
type of the definition. This just accidentally was not a problem, but now
the compiler helps a bit in keeping it that way.
2021-12-11 22:35:51 +00:00
71f6a8d4d6
cleanup: Avoid casting away constness from pointers.
2021-12-11 22:22:25 +00:00
2fcbc4fa1c
Remove lots of duplicate code related to printing timestamps
2020-11-30 17:55:57 -05:00
d75d6e8b60
sort includes
2020-11-14 00:00:05 +00:00
142ce642f0
Per-call pending status and state handling
...
* Proper handling of incoming video calls.
* Add command /vcall for initiating video calls
* Add command /res command to set video resolution
2020-11-14 00:00:10 +00:00
68e1ba312d
Use compound literals to zero out structs instead of memset
...
This is cleaner and much less prone to bugs
2020-11-10 21:25:27 -05:00
42763905d7
Replace deprecated usleep function with nanosleep
...
usleep was declared obsolete in POSIX.1-2001
2020-11-04 22:05:59 -05:00
b270c1e8b7
Remove extra semicolon in lock/unlock macros.
...
lock/unlock are always expanded in a context followed by a semicolon.
2020-04-23 01:12:34 +00:00
6f72a191ba
Revert "Add feature flags and missing #includes."
...
This reverts commit dd5fa236ae
.
Also, set `-std=gnu99` in Bazel build.
2020-04-17 19:37:22 +00:00
dd5fa236ae
Add feature flags and missing #includes.
...
These are needed to compile on some strict Linuxes.
2020-04-15 21:34:30 +00:00
ddc8c53abf
Fix unused variable warnings and change all (void)s to UNUSED macro
2020-03-30 16:02:27 -04:00
46513017e3
Half-hearted attempt at making toxic work on osx.
...
Video has no chance without X11 for now.
2020-03-30 18:14:43 +00:00
98cb7f58c0
Fix unused parameter and unused result warnings
2020-03-15 14:57:00 -04:00
0fea930c24
Convert deprecated uppercase enums to camelcase
2018-10-10 13:34:17 -04:00
63cc23401a
Improve readability of defines
2018-10-08 13:39:04 -04:00
f90a774470
Make Toxic easier to port
2018-10-03 22:00:43 +00:00
d62902ffb3
Use (void) in prototypes instead of ().
...
Also, removed `__inline` from an extern function (why was it there?).
Also, moved one extern declaration to a header file. There are lots of
these that need to be moved, but one thing at a time.
2018-09-13 23:47:47 +00:00
bebff3be0e
Use (void) for empty parameter list in C.
2018-09-08 17:23:07 +00:00
a37bf300f9
Update astylerc to match toxcore & reformat all source files
2018-07-18 11:33:16 -04:00
3cd2bc7e3c
Don't compile A/V code if AUDIO/VIDEO are not #defined.
2018-07-06 15:46:12 +00:00
815c29ee31
Significantly reduce time before trying to re-send a message with no read receipt
...
(also some formatting cleanup)
2018-03-03 23:54:12 -05:00
0bd5b4ddee
Repair operating system checks ( #474 )
2017-11-16 16:59:51 -05:00
351a50c214
Do not assume what is not Linux or a BSD descendant is OSX
2017-11-15 21:02:10 +01:00
1382adb1f6
Make Toxic compile at NetBSD, STAGE 1
2017-11-15 05:46:47 +02:00
fec36ad9e6
Make Toxic compile at OpenBSD
2017-11-11 21:03:28 +02:00
2ede39369a
added /bitrate
2017-07-07 23:47:59 +00:00
f056f13329
Astyle everything and add an astyle options script to repo
2016-09-24 21:07:04 -04:00
c24e1bd2b8
Fix a few A/V race conditions
2016-09-22 18:00:14 -04:00
4019395f44
Changed video get format to set format
...
* Fixes issue #394
* This was obviously meant to set the video format.
2016-07-28 17:58:24 +02:00
ab99c1ac73
Fix building on FreeBSD (courtesy of thierry-FreeBSD)
2015-11-12 05:04:37 -05:00
05f5f16af3
Fix various video bugs; it should be working now!
2015-11-12 05:01:28 -05:00
6cc1525daa
Fix some build issues
2015-11-03 23:04:05 -05:00
1606d01158
Implemented video calls for OSX
2015-08-21 00:44:25 -05:00
c8a9ac21f3
Implemented OSX device listing
2015-08-21 00:44:25 -05:00
e91aaf6c73
Refactoring to compliment OSX
2015-08-21 00:44:13 -05:00
929fca3de1
Prevented user from manually closing video windows
2015-08-21 00:44:12 -05:00
b67792f9f2
Clear warnings from device listing fix
2015-08-21 00:44:12 -05:00
96162bf254
Fixed incorrect video device listing
2015-08-21 00:43:47 -05:00
8a66c3fa4c
Changed to toggle video command rather than two separate commands
2015-08-21 00:43:47 -05:00
2cdcbc07a7
Fixed video call receiving issues
2015-08-21 00:43:30 -05:00
6e0d19b01d
Refactored video calls
2015-08-21 00:42:57 -05:00
ad04fa4dcd
Major refactoring and fixes towards AV
2015-08-21 00:42:28 -05:00
c2c612b85a
Fixed v4l2 capture crash, and refactored to prepare for new features
2015-08-21 00:40:09 -05:00
d359ba6a54
Fixed YUV stride issues
2015-08-21 00:38:44 -05:00
54e2fe8d6f
Implemented video frames ready to send through ToxAV. NOTE: Contains YUV stride issues
2015-08-21 00:37:57 -05:00
53353825e2
Implemented /endvideo command
2015-08-21 00:37:57 -05:00
fcdc8e8b67
Fixed incorrect colors during video capture
2015-08-21 00:37:23 -05:00
9b6efb65de
Implemented video preview and preparations for ToxAV
2015-08-21 00:37:23 -05:00
c8ea02376e
Progress on video call windows using X11
2015-08-21 00:36:52 -05:00
2369b5e9e2
Modified header files structuring
2015-08-21 00:36:28 -05:00