From 0b18dcda6f6bd181a164755a82decc7ae08c603e Mon Sep 17 00:00:00 2001 From: irungentoo Date: Wed, 10 Jul 2013 17:31:58 -0400 Subject: Per friend request data added. --- core/Messenger.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'core/Messenger.h') diff --git a/core/Messenger.h b/core/Messenger.h index 4bdf5859..128da67a 100644 --- a/core/Messenger.h +++ b/core/Messenger.h @@ -31,9 +31,12 @@ //add a friend +//set the data that will be sent along with friend request +//client_id is the client id of the friend +//data is the data and length is the length //returns the friend number if success //return -1 if failure. -int m_addfriend(uint8_t * client_id); +int m_addfriend(uint8_t * client_id, uint8_t * data, uint16_t length); //add a friend without sending a friendrequest. @@ -61,10 +64,6 @@ int m_friendstatus(int friendnumber); //return 0 if it was not. int m_sendmessage(int friendnumber, uint8_t * message, uint32_t length); -//set the data that will be sent along with friend requests -//return -1 if failure -//return 0 if success -int m_setinfo(uint8_t * data, uint16_t length); //set the function that will be executed when a friend request is received. //function format is function(uint8_t * public_key, uint8_t * data, uint16_t length) -- cgit v1.2.3