mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Added functions to get/set the nospam value to the public api.
This commit is contained in:
parent
413933a846
commit
23f57d862d
@ -463,7 +463,23 @@ void tox_callback_connection_status(Tox *tox, void (*function)(Messenger *tox, i
|
||||
m_callback_connectionstatus(m, function, userdata);
|
||||
}
|
||||
|
||||
/**********GROUP CHAT FUNCTIONS: WARNING WILL BREAK A LOT************/
|
||||
/**********ADVANCED FUNCTIONS (If you don't know what they do you can safely ignore them.) ************/
|
||||
|
||||
/* Functions to get/set the nospam part of the id.
|
||||
*/
|
||||
uint32_t tox_get_nospam(Tox *tox)
|
||||
{
|
||||
Messenger *m = tox;
|
||||
return get_nospam(&(m->fr));
|
||||
}
|
||||
|
||||
void tox_set_nospam(Tox *tox, uint32_t nospam)
|
||||
{
|
||||
Messenger *m = tox;
|
||||
set_nospam(&(m->fr), nospam);
|
||||
}
|
||||
|
||||
/**********GROUP CHAT FUNCTIONS: WARNING Group chats will be rewritten so this might change ************/
|
||||
|
||||
/* Set the callback for group invites.
|
||||
*
|
||||
|
@ -370,7 +370,16 @@ void tox_callback_read_receipt(Tox *tox, void (*function)(Tox *tox, int32_t, uin
|
||||
*/
|
||||
void tox_callback_connection_status(Tox *tox, void (*function)(Tox *tox, int32_t, uint8_t, void *), void *userdata);
|
||||
|
||||
/**********GROUP CHAT FUNCTIONS: WARNING WILL BREAK A LOT************/
|
||||
|
||||
/**********ADVANCED FUNCTIONS (If you don't know what they do you can safely ignore them.) ************/
|
||||
|
||||
/* Functions to get/set the nospam part of the id.
|
||||
*/
|
||||
uint32_t tox_get_nospam(Tox *tox);
|
||||
void tox_set_nospam(Tox *tox, uint32_t nospam);
|
||||
|
||||
|
||||
/**********GROUP CHAT FUNCTIONS: WARNING Group chats will be rewritten so this might change ************/
|
||||
|
||||
/* Set the callback for group invites.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user