diff options
author | irungentoo <irungentoo@gmail.com> | 2014-04-04 15:11:54 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-04-04 15:11:54 -0400 |
commit | 23f57d862daecff553fcd1f43cc310e66a3739b0 (patch) | |
tree | d0078941d26225e8402ad0623f7e29f0c931a26d /toxcore/tox.c | |
parent | 413933a846f5648f2329ee82d5f7bf9add496804 (diff) |
Added functions to get/set the nospam value to the public api.
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index 1e149a5c..c07473dd 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -463,7 +463,23 @@ void tox_callback_connection_status(Tox *tox, void (*function)(Messenger *tox, i | |||
463 | m_callback_connectionstatus(m, function, userdata); | 463 | m_callback_connectionstatus(m, function, userdata); |
464 | } | 464 | } |
465 | 465 | ||
466 | /**********GROUP CHAT FUNCTIONS: WARNING WILL BREAK A LOT************/ | 466 | /**********ADVANCED FUNCTIONS (If you don't know what they do you can safely ignore them.) ************/ |
467 | |||
468 | /* Functions to get/set the nospam part of the id. | ||
469 | */ | ||
470 | uint32_t tox_get_nospam(Tox *tox) | ||
471 | { | ||
472 | Messenger *m = tox; | ||
473 | return get_nospam(&(m->fr)); | ||
474 | } | ||
475 | |||
476 | void tox_set_nospam(Tox *tox, uint32_t nospam) | ||
477 | { | ||
478 | Messenger *m = tox; | ||
479 | set_nospam(&(m->fr), nospam); | ||
480 | } | ||
481 | |||
482 | /**********GROUP CHAT FUNCTIONS: WARNING Group chats will be rewritten so this might change ************/ | ||
467 | 483 | ||
468 | /* Set the callback for group invites. | 484 | /* Set the callback for group invites. |
469 | * | 485 | * |