summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-02-25 21:09:14 -0500
committerirungentoo <irungentoo@gmail.com>2015-02-25 21:09:14 -0500
commit76dfccf2d6386c1dd1a7e62586ceb1e18618b328 (patch)
tree8bdd109789fbafe50695c5d5f004e2b0310eb78f /toxcore
parentca997bda701f27454b4f5cd54a94f4166ab8e235 (diff)
Ported some tests to the new api.
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/Messenger.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index 863259ac..22adb088 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -491,21 +491,11 @@ static int send_message_generic(Messenger *m, int32_t friendnumber, const uint8_
491 return 0; 491 return 0;
492} 492}
493 493
494/* Send a text chat message to an online friend.
495 *
496 * return the message id if packet was successfully put into the send queue.
497 * return 0 if it was not.
498 */
499int m_sendmessage(Messenger *m, int32_t friendnumber, const uint8_t *message, uint32_t length, uint32_t *message_id) 494int m_sendmessage(Messenger *m, int32_t friendnumber, const uint8_t *message, uint32_t length, uint32_t *message_id)
500{ 495{
501 return send_message_generic(m, friendnumber, message, length, PACKET_ID_MESSAGE, message_id); 496 return send_message_generic(m, friendnumber, message, length, PACKET_ID_MESSAGE, message_id);
502} 497}
503 498
504/* Send an action to an online friend.
505 *
506 * return the message id if packet was successfully put into the send queue.
507 * return 0 if it was not.
508 */
509int m_sendaction(Messenger *m, int32_t friendnumber, const uint8_t *action, uint32_t length, uint32_t *message_id) 499int m_sendaction(Messenger *m, int32_t friendnumber, const uint8_t *action, uint32_t length, uint32_t *message_id)
510{ 500{
511 return send_message_generic(m, friendnumber, action, length, PACKET_ID_ACTION, message_id); 501 return send_message_generic(m, friendnumber, action, length, PACKET_ID_ACTION, message_id);