summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
diff options
context:
space:
mode:
authorJin^eLD <jin@mediatomb.cc>2013-09-05 00:45:36 +0300
committerJin^eLD <jin@mediatomb.cc>2013-09-05 01:30:28 +0300
commitb9455efd8430d3578376400f986e62223f1504b3 (patch)
treeafff930b4067b5fb0edf5b3b5963f4a26db434ff /toxcore/tox.h
parent31f43799e11ea824db79de2458a4ac29e6f22c3d (diff)
Function for retreiving a list of friend numbers
This should allow clients to sync the Tox friend list with their UI/etc. lists.
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r--toxcore/tox.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h
index b17ca36f..bd13b998 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -221,6 +221,14 @@ TOX_USERSTATUS tox_get_selfuserstatus(Tox *tox);
221 */ 221 */
222void tox_set_sends_receipts(Tox *tox, int friendnumber, int yesno); 222void tox_set_sends_receipts(Tox *tox, int friendnumber, int yesno);
223 223
224/* Allocate and return a list of valid friend id's. List must be freed by the
225 * caller.
226 *
227 * retun 0 if success.
228 * return -1 if failure.
229 */
230int tox_get_friendlist(void *tox, int **out_list, uint32_t *out_list_length);
231
224/* Set the function that will be executed when a friend request is received. 232/* Set the function that will be executed when a friend request is received.
225 * Function format is function(uint8_t * public_key, uint8_t * data, uint16_t length) 233 * Function format is function(uint8_t * public_key, uint8_t * data, uint16_t length)
226 */ 234 */