summaryrefslogtreecommitdiff
path: root/toxcore/tox.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r--toxcore/tox.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c
index b44f0ee6..819a67dd 100644
--- a/toxcore/tox.c
+++ b/toxcore/tox.c
@@ -826,9 +826,14 @@ int tox_get_self_avatar(const Tox *tox, uint8_t *format, uint8_t *buf, uint32_t
826 return m_get_self_avatar(m, format, buf, length, maxlen, hash); 826 return m_get_self_avatar(m, format, buf, length, maxlen, hash);
827} 827}
828 828
829int tox_hash(const Tox *tox, uint8_t *hash, const uint8_t *data, const uint32_t datalen)
830{
831 return m_hash(hash, data, datalen);
832}
833
829int tox_avatar_hash(const Tox *tox, uint8_t *hash, const uint8_t *data, const uint32_t datalen) 834int tox_avatar_hash(const Tox *tox, uint8_t *hash, const uint8_t *data, const uint32_t datalen)
830{ 835{
831 return m_avatar_hash(hash, data, datalen); 836 return m_hash(hash, data, datalen);
832} 837}
833 838
834int tox_request_avatar_info(const Tox *tox, const int32_t friendnumber) 839int tox_request_avatar_info(const Tox *tox, const int32_t friendnumber)