mirror of
https://github.com/TokTok/c-toxcore
synced 2026-10-23 15:12:24 +00:00
Added functions to get/set the nospam value to the public api.
This commit is contained in:
2 files changed
+27
-2
No files matched your search
+17
-1
@@ -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.
|
||||
*
|
||||
|
||||
+10
-1
@@ -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.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user