mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Removed bad function from public API (This breaks toxic.)
This commit is contained in:
parent
92f185c6b3
commit
368231b4f8
|
@ -171,20 +171,6 @@ uint32_t tox_sendaction_withid(Tox *tox, int friendnumber, uint32_t theid, uint8
|
||||||
return m_sendaction_withid(m, friendnumber, theid, action, length);
|
return m_sendaction_withid(m, friendnumber, theid, action, length);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set friendnumber's nickname.
|
|
||||||
* name must be a string of maximum MAX_NAME_LENGTH length.
|
|
||||||
* length must be at least 1 byte.
|
|
||||||
* length is the length of name with the NULL terminator.
|
|
||||||
*
|
|
||||||
* return 0 if success.
|
|
||||||
* return -1 if failure.
|
|
||||||
*/
|
|
||||||
int tox_setfriendname(Tox *tox, int friendnumber, uint8_t *name, uint16_t length)
|
|
||||||
{
|
|
||||||
Messenger *m = tox;
|
|
||||||
return setfriendname(m, friendnumber, name, length);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Set our nickname.
|
/* Set our nickname.
|
||||||
* name must be a string of maximum MAX_NAME_LENGTH length.
|
* name must be a string of maximum MAX_NAME_LENGTH length.
|
||||||
* length must be at least 1 byte.
|
* length must be at least 1 byte.
|
||||||
|
|
|
@ -230,16 +230,6 @@ uint32_t tox_sendmessage_withid(Tox *tox, int friendnumber, uint32_t theid, uint
|
||||||
uint32_t tox_sendaction(Tox *tox, int friendnumber, uint8_t *action, uint32_t length);
|
uint32_t tox_sendaction(Tox *tox, int friendnumber, uint8_t *action, uint32_t length);
|
||||||
uint32_t tox_sendaction_withid(Tox *tox, int friendnumber, uint32_t theid, uint8_t *action, uint32_t length);
|
uint32_t tox_sendaction_withid(Tox *tox, int friendnumber, uint32_t theid, uint8_t *action, uint32_t length);
|
||||||
|
|
||||||
/* Set friendnumber's nickname.
|
|
||||||
* name must be a string of maximum MAX_NAME_LENGTH length.
|
|
||||||
* length must be at least 1 byte.
|
|
||||||
* length is the length of name with the NULL terminator.
|
|
||||||
*
|
|
||||||
* return 0 if success.
|
|
||||||
* return -1 if failure.
|
|
||||||
*/
|
|
||||||
int tox_setfriendname(Tox *tox, int friendnumber, uint8_t *name, uint16_t length);
|
|
||||||
|
|
||||||
/* Set our nickname.
|
/* Set our nickname.
|
||||||
* name must be a string of maximum MAX_NAME_LENGTH length.
|
* name must be a string of maximum MAX_NAME_LENGTH length.
|
||||||
* length must be at least 1 byte.
|
* length must be at least 1 byte.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user