summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
AgeCommit message (Collapse)Author
2014-04-08Include 'netinet/in_systm.h' on OpenBSDDmitrij D. Czarkoff
Otherwise 'n_time' is undefined.
2014-04-04Added functions to get/set the nospam value to the public api.irungentoo
2014-03-31tox_group_get_names now returns a list of name lengths along with the list ↵irungentoo
of names. TCP test now also tests pings.
2014-03-20Fixed other api inconsistency.irungentoo
2014-03-20Fixed an api inconsistency.irungentoo
2014-03-18nTox fixes.irungentoo
Added TOX_MAX_MESSAGE_LENGTH to tox.h
2014-03-18Merge branch 'api-fix'irungentoo
Main changes: 1. Strings no longer need to be NULL terminated. 2. tox_get_friend_id is now named tox_get_friend_number. 3. The friend request callback function is now (Tox *tox, uint8_t *, uint8_t *, uint16_t, void *), the Tox object pointer has been added to it.
2014-03-16Friend request callback now contains the Tox object.irungentoo
2014-03-16add api function that gets the last time a friend was seen onlineJfreegman
2014-03-11Detailed docs for TCP server pretty much done.irungentoo
Implementation coming soon.
2014-03-07Some tox_wait_* improvementsMaxim Biro
2014-02-23Userstatus function fixes.irungentoo
2014-02-23Strings now no longer need to be NULL terminated.irungentoo
2014-02-21Added size functions for names and status messagesMaxim Biro
2014-02-21Some api changes.irungentoo
2014-02-18Astyled and added tests.irungentoo
2014-02-16Typing: Forgot the callback argument types.Jman012
2014-02-16Typos.Jman012
2014-02-16Added user typing changes in core.Jman012
2014-02-12All strings should now be forced terminated when received.irungentoo
2014-02-11Added paragraph explaining how strings work in Tox.irungentoo
2014-02-07added API function to get online friend countJfreegman
2014-01-21Fixed BSD IP stack issueSean
Thanks to @mahomet
2014-01-19proper windows preprocessor detectionBen Iofel
2013-12-24Added the shell of onion.{c, h}irungentoo
2013-12-21Added function to save an encrypted version of the messenger.irungentoo
Also added some tests.
2013-12-17Added simple test for tox.irungentoo
2013-12-13added groupchat actionsJfreegman
2013-12-10More API consistent fix.AZ Huang
2013-12-07Added/updated some basic docs and cleaned up some things.irungentoo
2013-12-06Merge branch 'master' into hardenirungentoo
2013-12-03fix naming inconsistency in tox.halexandervdm
2013-11-29Fix typo.AZ Huang
2013-11-29Fix API name consistency.AZ Huang
2013-11-29Should return 0 for tox_file_dataremaining since it returns unsignedAZ Huang
2013-11-29Fix return code inconsistency.AZ Huang
2013-11-27Various changes to nTox including a potential crash (also possible from ↵Coren[m]
remote!), and a tiny change to toxcore. Crash stuff: nTox.c: - do_refresh(): avoid crashes (input a "%" and the client goes "boom!", send someone a string with embedded "%" and see him blow up...) Other stuff: toxcore: tox.h (doc.)/network.c (code): - networking_wait_prepare(): return -1 if lenptr was NULL and therefore not settable nTox.c: - fraddr_to_str(): function to convert a TOX_FRIEND_ADDRESS into a segmented (and therefore line-breakable) string - print_friendlist(): print index of friend on name line, print id on 2nd line - command /f: skip spaces (and +) inside a friend id - command /r (new): "/r #" to remove a friend - main(): reduce cpu consumption if we're not currently sending files
2013-11-24group_namelistchange(): for ui reasons, divulge the peernumber and the ↵Coren[m]
nature of the change (add, del, name change). tox.*, Messenger.*, group_chats.*: - expand interface of callback by peernumber/change groupchats.c: - call callback in addpeer/delpeer/setnick with peernumber and flag nTox.c: - print_groupchatpeers(): print as many names on a line as possible, not one peer per line - print_groupnamelistchange(): only print the change, if possible (i.e. "new peer", "peer's new name") - added command "/p" to print the list of peers
2013-11-23Added callback that tells you when the peer name list of a group chat changes.irungentoo
2013-11-22Added function to get the number of peers and list of names for group chats.irungentoo
2013-11-18Fixed a few typos.Jman012
2013-11-18Added functions tox_count_chatlist and tox_copy_chatlist.Jman012
These functions are akin to the tox_count_friendlist and tox_copy_friendlist, made available on the public API.
2013-11-10Merge branch 'master' into hardenirungentoo
Conflicts: toxcore/DHT.c
2013-10-27Cleaned up some code/fixed some warnings.irungentoo
I'm sure nobody has any of the old save files anymore so I removed the functions.
2013-10-26Clarified a comment.irungentoo
2013-10-20Merge branch 'Cleanup-defines' of ↵irungentoo
https://github.com/FullName/ProjectTox-Core into FullName-Cleanup-defines
2013-10-20Main: Eliminate TOX_ENABLE_IPV6 (then always on), CLIENT_ONETOONE_IP (then ↵Coren[m]
always off). Additionally (besides cleanups): network.h/tox.h: - WIN32: fix a strange sa_family_t definition - WIN32: define EWOULDBLOCK to WSAEWOULDBLOCK - WIN32: kill macro for an existing function (IN6_ADDR_EQUAL) network.c: - use EWOULDBLOCK instead of EAGAIN (same value, but EWOULDBLOCK is more "popular") - new_networking(): only try to enable IPv4-in-IPv6 if it's not already enabled per default - inet_ntop()/inet_pton(): WIN32: remove partial initializers in favor of a simple memset() - ip_equal(): WIN32: use an existing function - logging: networking_wait_execute(): only dump result if not timeout - logging: loglogdata(): kill an unused variable LAN_discovery.c: - send_broadcasts(): re-enabled, can only support IPv4 by principle, split into fetch_broadcast_info() (to fetch the addresses once) and send_broadcasts() (actual sending) DHT.c: - DHT_load_state_callback(): enclosed a fprintf(stderr, ...) into #ifdef DEBUG Lossless_UDP.c: - change_handshake(): harden against strange sa_family_t definitions Messenger.c: - logging: fix ID to string conversion util.c: - logging: eliminate a signed-warning
2013-10-18Removed bad function from public API (This breaks toxic.)irungentoo
2013-10-15Updated public api.irungentoo
2013-10-10Added message ids to action messagesMaxim Biro