diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-10 17:31:58 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-10 17:31:58 -0400 |
commit | 0b18dcda6f6bd181a164755a82decc7ae08c603e (patch) | |
tree | 6044ddb6585c43a3665e06e43e353205e8931367 /core/Messenger.h | |
parent | f471602d5d7ed9b5d8c92f7a55d2e6589c15577c (diff) |
Per friend request data added.
Diffstat (limited to 'core/Messenger.h')
-rw-r--r-- | core/Messenger.h | 9 |
1 files changed, 4 insertions, 5 deletions
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 @@ | |||
31 | 31 | ||
32 | 32 | ||
33 | //add a friend | 33 | //add a friend |
34 | //set the data that will be sent along with friend request | ||
35 | //client_id is the client id of the friend | ||
36 | //data is the data and length is the length | ||
34 | //returns the friend number if success | 37 | //returns the friend number if success |
35 | //return -1 if failure. | 38 | //return -1 if failure. |
36 | int m_addfriend(uint8_t * client_id); | 39 | int m_addfriend(uint8_t * client_id, uint8_t * data, uint16_t length); |
37 | 40 | ||
38 | 41 | ||
39 | //add a friend without sending a friendrequest. | 42 | //add a friend without sending a friendrequest. |
@@ -61,10 +64,6 @@ int m_friendstatus(int friendnumber); | |||
61 | //return 0 if it was not. | 64 | //return 0 if it was not. |
62 | int m_sendmessage(int friendnumber, uint8_t * message, uint32_t length); | 65 | int m_sendmessage(int friendnumber, uint8_t * message, uint32_t length); |
63 | 66 | ||
64 | //set the data that will be sent along with friend requests | ||
65 | //return -1 if failure | ||
66 | //return 0 if success | ||
67 | int m_setinfo(uint8_t * data, uint16_t length); | ||
68 | 67 | ||
69 | //set the function that will be executed when a friend request is received. | 68 | //set the function that will be executed when a friend request is received. |
70 | //function format is function(uint8_t * public_key, uint8_t * data, uint16_t length) | 69 | //function format is function(uint8_t * public_key, uint8_t * data, uint16_t length) |