예제 #1
0
파일: tox.c 프로젝트: zan33/ProjectTox-Core
/* Set the callback for typing changes.
 *  function (int friendnumber, int is_typing)
 */
void tox_callback_typing_change(Tox *tox, void (*function)(Tox *tox, int, int, void *), void *userdata)
{
    Messenger *m = tox;
    typedef void (*function_type)(Messenger *, int, int, void *);
    function_type function_new = (function_type)function;
    m_callback_typingchange(m, function_new, userdata);
}
예제 #2
0
파일: tox.c 프로젝트: askielboe/toxcore
/* Set the callback for typing changes.
 *  function (int32_t friendnumber, uint8_t is_typing)
 */
void tox_callback_typing_change(Tox *tox, void (*function)(Messenger *tox, int32_t, uint8_t, void *), void *userdata)
{
    Messenger *m = tox;
    m_callback_typingchange(m, function, userdata);
}