zugz
daf794c4a2
Rework audio device handling
...
We now have at most one input and one output device open at any time,
but can have multiple capture callbacks and multiple output sources.
2020-11-14 00:00:01 +00:00
jfreegman
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
jfreegman
71d7d355a6
Use enum to identify window types instead of bool variables
2020-11-09 17:01:22 -05:00
jfreegman
4188b392cc
Rename: groupchats -> conferences
...
This is in line with the toxcore API naming scheme and is in preparation
for the merge with the new groupchat implementation
2020-11-08 10:08:24 -05:00
jfreegman
811fbfbb1e
Fix char -> widechar comparisons
2020-11-08 00:07:28 -05:00
jfreegman
3f02e119f4
add missing malloc error checks and fix widechar to char comparison
2020-11-03 00:59:28 -05:00
jfreegman
1bbd50aac7
Fix a few issues
...
- realloc needs to be error checked
- use correct format specifiers
- make sure optarg and DATA_FILE aren't null before using them
2020-11-02 18:08:54 -05:00
jfreegman
2b43340c90
Convert all variable length arrays to heap allocations
...
VLA's are inherently unsafe so the safest option is to not use them
2020-11-01 11:29:48 -05:00
jfreegman
ff1620c923
fix invalid usage of stderr and incorrect formatting
2020-11-01 11:19:18 -05:00
jfreegman
4c302da503
Fix a bunch of Wformat-truncation warnings due to snprintf() misuse
2020-10-24 14:44:41 -04:00
jfreegman
3015138a5a
Manually attempt to decode input char sequences
...
This is currently a fallback method for when the terminal doesn't
detect ctrl arrow sequences, but it is generalized for future additions
2020-10-13 16:12:55 -04:00
jfreegman
f012007cc4
A couple small fixes
2020-05-19 21:44:35 -04:00
jfreegman
98cb7f58c0
Fix unused parameter and unused result warnings
2020-03-15 14:57:00 -04:00
jfreegman
127f9462e0
make friend add fail if friend is in the block list
2019-11-16 01:55:47 -05:00
jfreegman
b7d67c1d86
re-init AV for unblocked contacts
2018-10-20 02:56:37 -04:00
jfreegman
c4a11f8dc7
Refactor ToxWindows
...
ToxWindow constructor functions now return pointers instead of structs
ToxWindow windows array now holds pointers instead of structs
Refactor some logic in windows.c pertaining to keeping track of active windows
Use uint8_t for window array indexing
2018-10-19 17:43:06 -04:00
jfreegman
d18cc8cbc2
Fix two memory leaks and properly clean up friendlist window
2018-10-19 17:43:03 -04:00
jfreegman
0fea930c24
Convert deprecated uppercase enums to camelcase
2018-10-10 13:34:17 -04:00
jfreegman
a37bf300f9
Update astylerc to match toxcore & reformat all source files
2018-07-18 11:33:16 -04:00
jfreegman
29f55c5277
Update API
...
-Removed usage of deprecated API functions
-Integrated conference changes with a few regressions
2018-02-25 00:00:06 -05:00
jfreegman
fe6a7074ea
Dynamically allocate audio calls structure
...
This fixes a bug that caused a segfault when attempting to call a friend with a
friend number above the MAX_CALLS limit
2017-11-20 07:02:56 -05:00
zugz
8508451ba6
avoid unnecessary redrawing
2017-10-29 16:50:42 +01:00
jfreegman
52dd60dc86
Fix potential int truncation and double-check lengths before copy
2017-08-28 19:37:19 -04:00
Jfreegman
f056f13329
Astyle everything and add an astyle options script to repo
2016-09-24 21:07:04 -04:00
Jfreegman
2194b9e259
Use time_t instead of uint64_t for timestamps
...
Also call time() directly from get_unix_time() instead of manually updating the time val.
2016-09-22 18:31:52 -04:00
Jfreegman
cf16849b37
Dynamically allocate memory for save file instead of using stack
2016-05-03 14:13:16 -04:00
Marvin Ewald
e6f839f9ac
Enable multiline input
...
Adds a nonl() call to avoid translation from \r to \n when pressing
enter.
C-J -> \n
Enter -> \r
To allow multiline input, \n chars (e.g. when pressing C-J) are replaced
with a pilcrow. After hitting enter, every pilcrow is substituted with
\n again.
2016-02-28 02:35:36 +01:00
Jfreegman
39c4b7ecdd
Add ability to print your Tox ID's QR code to a file
2015-11-08 22:51:46 -05:00
Jfreegman
fa0e645a79
Fix a bunch of misc bugs and corner cases
2015-11-08 03:57:01 -05:00
Jfreegman
14a8bdb874
Store temp data in same directory as original file
2015-11-07 21:38:32 -05:00
Jfreegman
dfff777283
Save data in a safer manner
...
By saving to a temp file then renaming it we avoid the possibility of data corruption
due to an interrupt (hard reboot, power outage etc.)
2015-11-05 17:46:00 -05:00
Eniz Vukovic
a5e5e98afc
Disabled video calls for the time being
2015-11-03 23:50:01 +01:00
Jfreegman
462cfca175
Merge new AV branch
2015-10-20 17:57:54 -04:00
Jfreegman
db410cb01e
Use profile name that conforms with the standard
2015-10-14 23:09:11 -04:00
Jfreegman
b4464eda4d
Fix more threading issues
2015-08-27 21:29:34 -04:00
Jfreegman
11701d22a1
Lots of bug fixes and general code cleanup
2015-08-27 03:38:08 -04:00
cnhenry
ad04fa4dcd
Major refactoring and fixes towards AV
2015-08-21 00:42:28 -05:00
Jfreegman
8301ab1bc2
Revert commit 312d0c3
(localization/gettext)
...
There were serious problems with branch merging that need to be resolved first
2015-08-21 00:35:40 -05:00
Ansa89
0a2ad23c15
Add localization system (gettext)
2015-08-21 00:24:02 -05:00
cnhenry
43bda5f7d9
Refactoring and fix related to invite callback not being fired
2015-08-21 00:14:03 -05:00
cnhenry
f2121fae74
Implemented audio calls using new ToxAV API
2015-08-21 00:14:03 -05:00
cnhenry
3241551cfb
Began conversion of audio code to new ToxAV API
2015-08-21 00:14:03 -05:00
Jfreegman
035420e5c7
Revert commit 312d0c3
(localization/gettext)
...
There were serious problems with branch merging that need to be resolved first
2015-07-04 01:19:16 -04:00
Ansa89
85d3c18ba6
Add localization system (gettext)
2015-05-28 15:50:55 +02:00
Jfreegman
dd9186e834
re-implement avatar setting
2015-04-04 03:26:38 -04:00
Jfreegman
523f205646
re-implement friendlist last seen
2015-04-02 22:19:09 -04:00
Jfreegman
eaea68c33e
fix bug where contacts would appear online twice in a row
2015-03-31 18:39:42 -04:00
Jfreegman
522aabd4e4
Refactor and clean up file transfers
...
(No longer rely on undefined core filenumber property for indexing)
2015-03-29 18:33:51 -04:00
Jfreegman
2d3c5c9450
Mostly finished with new API port
...
- File transfers currently don't support pausing/resuming
- Avatars are not yet done
2015-03-28 02:56:54 -04:00
Jfreegman
ae87b2eb2d
begin port to new API
2015-03-25 22:56:45 -04:00