mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Tox object doesn't need to be passed to tox_hash.
This commit is contained in:
parent
80fdfbad07
commit
d264010364
|
@ -222,7 +222,7 @@ static int load_user_avatar(Tox *tox, char *base_dir, int friendnum,
|
||||||
}
|
}
|
||||||
|
|
||||||
*datalen = ret;
|
*datalen = ret;
|
||||||
tox_hash(tox, hash, data, *datalen);
|
tox_hash(hash, data, *datalen);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -826,7 +826,7 @@ int tox_get_self_avatar(const Tox *tox, uint8_t *format, uint8_t *buf, uint32_t
|
||||||
return m_get_self_avatar(m, format, buf, length, maxlen, hash);
|
return m_get_self_avatar(m, format, buf, length, maxlen, hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
int tox_hash(const Tox *tox, uint8_t *hash, const uint8_t *data, const uint32_t datalen)
|
int tox_hash(uint8_t *hash, const uint8_t *data, const uint32_t datalen)
|
||||||
{
|
{
|
||||||
return m_hash(hash, data, datalen);
|
return m_hash(hash, data, datalen);
|
||||||
}
|
}
|
||||||
|
|
|
@ -625,7 +625,7 @@ int tox_get_self_avatar(const Tox *tox, uint8_t *format, uint8_t *buf, uint32_t
|
||||||
* returns 0 on success
|
* returns 0 on success
|
||||||
* returns -1 on failure.
|
* returns -1 on failure.
|
||||||
*/
|
*/
|
||||||
int tox_hash(const Tox *tox, uint8_t *hash, const uint8_t *data, const uint32_t datalen);
|
int tox_hash(uint8_t *hash, const uint8_t *data, const uint32_t datalen);
|
||||||
|
|
||||||
/* Request avatar information from a friend.
|
/* Request avatar information from a friend.
|
||||||
* Asks a friend to provide their avatar information (image format and hash). The friend may
|
* Asks a friend to provide their avatar information (image format and hash). The friend may
|
||||||
|
|
Loading…
Reference in New Issue
Block a user