Commit Graph

20 Commits

Author SHA1 Message Date
iphydf
1977d56caa
Remove return after no-return situation (and other cleanups).
Cleanups:
- Fix header guards to not use reserved names.
- Avoid name shadowing.
- Removed an unused variable found by avoiding name shadowing.
2016-09-30 19:06:44 +01:00
iphydf
15cb426166
Make toxcore code C++ compatible.
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-24 21:53:50 +01:00
iphydf
1494e474dd
Ensure that all TODOs have an owner.
In the future, all TODOs added either need a bug number (TODO(#NN)) or a
person's github user name. By default, I made irungentoo the owner of
all toxcore TODOs, mannol the owner of toxav TODOs, and myself the owner
of API TODOs.
2016-09-16 12:06:02 +01:00
iphydf
633da98ae6
Add braces to all if statements. 2016-08-31 20:04:16 +01:00
iphydf
13ae9e9a93
Move logging to a callback.
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.
2016-08-27 01:16:14 +01:00
iphydf
459f8f2013
Check code formatting on Travis.
We run astyle on Travis and check if there is a diff. The build terminates if
git finds a difference.
2016-08-12 01:00:00 +01:00
irungentoo
6a494e2cbd
Astyle. 2015-11-03 13:42:05 -05:00
irungentoo
6da97bb48a
Fixed some non standard C. 2015-05-01 16:05:59 -04:00
Maxim Biro
4290241163 Made toxdns header cpp-friendly 2014-10-07 00:49:28 -04:00
irungentoo
53ce4f393b
Added TOXDNS_MAX_RECOMMENDED_NAME_LENGTH define that clients can
choose to ignore if they want.
2014-09-19 21:22:53 -04:00
cgar
2bb2bc4163 spelling corrections 2014-09-09 20:31:37 -04:00
Jin^eLD
8fd457c67f Fix win32 mingw native build
toxdns was not linking because of references to functions in crypto_core
2014-07-13 23:20:31 +03:00
irungentoo
1fd0f92959
Merge branch 'notsecure-split-video' 2014-06-23 16:34:06 -04:00
notsecure
97c548bc80 unrelated: got rid of some warnings 2014-06-23 15:17:28 -04:00
irungentoo
3c64c87ea7
dns3_test now automatically does the DNS request.
tox_decrypt_dns3_TXT no longer needs id_record to be null terminated.
2014-06-19 10:50:46 -04:00
irungentoo
888ebea619
Small fixes.
Added toxdns.h include to toxdns.c.

Removed default "Online" status message.
2014-06-17 11:27:57 -04:00
irungentoo
750c75a47d
Astyled code. 2014-06-15 10:36:57 -04:00
irungentoo
1a3d45f83d
Updated toxdns howto. 2014-06-14 11:38:27 -04:00
irungentoo
d6a9ce3175
Fixed some issues in toxdns and added a test.
Added request_id.

request_id must be obtained with tox_generate_dns3_string, stored,
then passed to tox_decrypt_dns3_TXT when we want to decrypt the
received response.
2014-06-14 11:31:56 -04:00
irungentoo
9c11c15385
Added toxdns.
toxdns currently contains functions to make it easier for clients
to create tox dns3 requests and handle tox dns3 responses: an
encrypted way of querying Tox DNS id servers for Tox ids from
usernames.
2014-06-14 09:54:40 -04:00