From 83842e66487646f41788b2c311431ee1be2d4fe2 Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Fri, 26 Sep 2014 14:32:49 -0400 Subject: add API function to unset avatar --- toxcore/tox.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'toxcore/tox.h') diff --git a/toxcore/tox.h b/toxcore/tox.h index 61cfdf70..af6f282c 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h @@ -586,6 +586,10 @@ void tox_callback_avatar_data(Tox *tox, void (*function)(Tox *tox, int32_t, uint */ int tox_set_avatar(Tox *tox, uint8_t format, const uint8_t *data, uint32_t length); +/* Unsets the user avatar. + + returns 0 on success (currently always returns 0) */ +int tox_unset_avatar(Tox *tox); /* Get avatar data from the current user. * Copies the current user avatar data to the destination buffer and sets the image format -- cgit v1.2.3