mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Added TOX prefix to enum.
This commit is contained in:
parent
cabc5add79
commit
733066a57e
14
core/tox.h
14
core/tox.h
|
@ -56,12 +56,12 @@ extern "C" {
|
||||||
* Represents userstatuses someone can have. */
|
* Represents userstatuses someone can have. */
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
USERSTATUS_NONE,
|
TOX_USERSTATUS_NONE,
|
||||||
USERSTATUS_AWAY,
|
TOX_USERSTATUS_AWAY,
|
||||||
USERSTATUS_BUSY,
|
TOX_USERSTATUS_BUSY,
|
||||||
USERSTATUS_INVALID
|
TOX_USERSTATUS_INVALID
|
||||||
}
|
}
|
||||||
USERSTATUS;
|
TOX_USERSTATUS;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* returns a FRIEND_ADDRESS_SIZE byte address to give to others.
|
* returns a FRIEND_ADDRESS_SIZE byte address to give to others.
|
||||||
|
@ -174,8 +174,8 @@ int tox_copy_self_statusmessage(void *tox, uint8_t *buf, uint32_t maxlen);
|
||||||
* Values unknown to your application should be represented as USERSTATUS_NONE.
|
* Values unknown to your application should be represented as USERSTATUS_NONE.
|
||||||
* As above, the self variant will return our own USERSTATUS.
|
* As above, the self variant will return our own USERSTATUS.
|
||||||
* If friendnumber is invalid, this shall return USERSTATUS_INVALID. */
|
* If friendnumber is invalid, this shall return USERSTATUS_INVALID. */
|
||||||
USERSTATUS tox_get_userstatus(void *tox, int friendnumber);
|
TOX_USERSTATUS tox_get_userstatus(void *tox, int friendnumber);
|
||||||
USERSTATUS tox_get_selfuserstatus(void *tox);
|
TOX_USERSTATUS tox_get_selfuserstatus(void *tox);
|
||||||
|
|
||||||
/* Sets whether we send read receipts for friendnumber.
|
/* Sets whether we send read receipts for friendnumber.
|
||||||
* This function is not lazy, and it will fail if yesno is not (0 or 1).*/
|
* This function is not lazy, and it will fail if yesno is not (0 or 1).*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user