summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
diff options
context:
space:
mode:
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 */