/* * 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_H #define TOX_WEECHAT_H extern struct t_weechat_plugin *weechat_plugin; /** Return codes used throughout Tox-WeeChat. */ enum t_twc_rc { TWC_RC_OK = 0, /* Generic error return code. */ TWC_RC_ERROR = -1, /* Malloc error return code. */ TWC_RC_ERROR_MALLOC = -2, }; #define TWC_MAX_FRIEND_MESSAGE_LENGTH (TOX_MAX_MESSAGE_LENGTH - 1) #define TWC_MAX_GROUP_MESSAGE_LENGTH (TOX_MAX_MESSAGE_LENGTH - 16) #endif /* TOX_WEECHAT_H */