You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
C
39 lines
1.2 KiB
C
/*
|
|
* Copyright (c) 2018 Håvard Pettersson <mail@haavard.me>
|
|
*
|
|
* 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 <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#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 */
|