diff options
author | Jfreegman <jfreegman@gmail.com> | 2014-09-26 14:32:49 -0400 |
---|---|---|
committer | Jfreegman <jfreegman@gmail.com> | 2014-09-26 14:32:49 -0400 |
commit | 83842e66487646f41788b2c311431ee1be2d4fe2 (patch) | |
tree | 7b018e58bb9afd41efc0f2586ee59620d569ae3d /toxcore/tox.h | |
parent | d2640103649b4513d2fc4d7bbb291fa941023ebf (diff) |
add API function to unset avatar
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 | |||
586 | */ | 586 | */ |
587 | int tox_set_avatar(Tox *tox, uint8_t format, const uint8_t *data, uint32_t length); | 587 | int tox_set_avatar(Tox *tox, uint8_t format, const uint8_t *data, uint32_t length); |
588 | 588 | ||
589 | /* Unsets the user avatar. | ||
590 | |||
591 | returns 0 on success (currently always returns 0) */ | ||
592 | int tox_unset_avatar(Tox *tox); | ||
589 | 593 | ||
590 | /* Get avatar data from the current user. | 594 | /* Get avatar data from the current user. |
591 | * Copies the current user avatar data to the destination buffer and sets the image format | 595 | * Copies the current user avatar data to the destination buffer and sets the image format |