summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-11-02 15:30:40 +0000
committeriphydf <iphydf@users.noreply.github.com>2016-11-02 15:30:40 +0000
commite2d63e04979b59698b7e541f2aebb3c74495a2d3 (patch)
tree9cccb1c9716d02cc2196b25ad18b2d3ff5026e2f /toxcore/tox.h
parentfba3bfa7a4db5647d03a659e233a133dbc9232ee (diff)
Remove unimplemented "time delta" parameter.
In the future, we may want to revisit this parameter, but right now, it serves no purpose and only confuses tools.
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r--toxcore/tox.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h
index 2b9f8208..c0b7e6b5 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -1685,11 +1685,6 @@ void tox_callback_friend_read_receipt(Tox *tox, tox_friend_read_receipt_cb *call
1685 1685
1686/** 1686/**
1687 * @param public_key The Public Key of the user who sent the friend request. 1687 * @param public_key The Public Key of the user who sent the friend request.
1688 * @param time_delta A delta in seconds between when the message was composed
1689 * and when it is being transmitted. For messages that are sent immediately,
1690 * it will be 0. If a message was written and couldn't be sent immediately
1691 * (due to a connection failure, for example), the time_delta is an
1692 * approximation of when it was composed.
1693 * @param message The message they sent along with the request. 1688 * @param message The message they sent along with the request.
1694 * @param length The size of the message byte array. 1689 * @param length The size of the message byte array.
1695 */ 1690 */
@@ -1706,11 +1701,8 @@ void tox_callback_friend_request(Tox *tox, tox_friend_request_cb *callback);
1706 1701
1707/** 1702/**
1708 * @param friend_number The friend number of the friend who sent the message. 1703 * @param friend_number The friend number of the friend who sent the message.
1709 * @param time_delta Time between composition and sending.
1710 * @param message The message data they sent. 1704 * @param message The message data they sent.
1711 * @param length The size of the message byte array. 1705 * @param length The size of the message byte array.
1712 *
1713 * @see friend_request for more information on time_delta.
1714 */ 1706 */
1715typedef void tox_friend_message_cb(Tox *tox, uint32_t friend_number, TOX_MESSAGE_TYPE type, const uint8_t *message, 1707typedef void tox_friend_message_cb(Tox *tox, uint32_t friend_number, TOX_MESSAGE_TYPE type, const uint8_t *message,
1716 size_t length, void *user_data); 1708 size_t length, void *user_data);