/* * Copyright (c) 2017 HÃ¥vard Pettersson * * This file is part of Tox-WeeChat. * * Tox-WeeChat is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Tox-WeeChat is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Tox-WeeChat. If not, see . */ #ifndef TOX_WEECHAT_TOX_CALLBACKS_H #define TOX_WEECHAT_TOX_CALLBACKS_H #include int twc_do_timer_cb(const void *pointer, void *data, int remaining_calls); void twc_friend_message_callback(Tox *tox, uint32_t friend_number, TOX_MESSAGE_TYPE type, const uint8_t *message, size_t length, void *data); void twc_connection_status_callback(Tox *tox, uint32_t friend_number, TOX_CONNECTION status, void *data); void twc_name_change_callback(Tox *tox, uint32_t friend_number, const uint8_t *name, size_t length, void *data); void twc_user_status_callback(Tox *tox, uint32_t friend_number, TOX_USER_STATUS status, void *data); void twc_status_message_callback(Tox *tox, uint32_t friend_number, const uint8_t *message, size_t length, void *data); void twc_friend_request_callback(Tox *tox, const uint8_t *public_key, const uint8_t *message, size_t length, void *data); void twc_group_invite_callback(Tox *tox, uint32_t friend_number, TOX_CONFERENCE_TYPE type, const uint8_t *invite_data, size_t length, void *data); void twc_group_message_callback(Tox *tox, uint32_t group_number, uint32_t peer_number, TOX_MESSAGE_TYPE type, const uint8_t *message, size_t length, void *data); void twc_group_namelist_change_callback(Tox *tox, uint32_t group_number, uint32_t peer_number, TOX_CONFERENCE_STATE_CHANGE change_type, void *data); void twc_group_title_callback(Tox *tox, uint32_t group_number, uint32_t peer_number, const uint8_t *title, size_t length, void *data); #ifndef NDEBUG void twc_tox_log_callback(Tox *tox, TOX_LOG_LEVEL level, const char *file, uint32_t line, const char *func, const char *message, void *user_data); #endif /* !NDEBUG */ #endif /* TOX_WEECHAT_TOX_CALLBACKS_H */