mirror of
https://github.com/Tha14/toxic.git
synced 2025-04-20 05:32:58 +02:00
48 lines
1.2 KiB
C
48 lines
1.2 KiB
C
/* execute.h
|
|
*
|
|
*
|
|
* Copyright (C) 2014 Toxic All Rights Reserved.
|
|
*
|
|
* This file is part of Toxic.
|
|
*
|
|
* Toxic 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.
|
|
*
|
|
* Toxic 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 Toxic. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
#ifndef _execute_h
|
|
#define _execute_h
|
|
|
|
#include "toxic.h"
|
|
#include "windows.h"
|
|
|
|
#define MAX_NUM_ARGS 4 /* Includes command */
|
|
|
|
#ifdef _SUPPORT_AUDIO
|
|
#define GLOBAL_NUM_COMMANDS 16
|
|
#define CHAT_NUM_COMMANDS 10
|
|
#else
|
|
#define GLOBAL_NUM_COMMANDS 14
|
|
#define CHAT_NUM_COMMANDS 5
|
|
#endif /* _SUPPORT_AUDIO */
|
|
|
|
enum {
|
|
GLOBAL_COMMAND_MODE,
|
|
CHAT_COMMAND_MODE,
|
|
GROUPCHAT_COMMAND_MODE,
|
|
};
|
|
|
|
void execute(WINDOW *w, ToxWindow *self, Tox *m, char *cmd, int mode);
|
|
|
|
#endif /* #define _execute_h */
|