2014-02-25 08:28:24 +01:00
|
|
|
/* 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/>.
|
|
|
|
*
|
2013-11-10 03:43:56 +01:00
|
|
|
*/
|
|
|
|
|
2014-09-23 03:24:45 +02:00
|
|
|
#ifndef EXECUTE_H
|
|
|
|
#define EXECUTE_H
|
2014-06-22 02:18:23 +02:00
|
|
|
|
|
|
|
#include "toxic.h"
|
|
|
|
#include "windows.h"
|
|
|
|
|
2013-11-10 03:43:56 +01:00
|
|
|
#define MAX_NUM_ARGS 4 /* Includes command */
|
2014-03-07 03:14:04 +01:00
|
|
|
|
2013-11-10 07:20:52 +01:00
|
|
|
enum {
|
|
|
|
GLOBAL_COMMAND_MODE,
|
|
|
|
CHAT_COMMAND_MODE,
|
|
|
|
GROUPCHAT_COMMAND_MODE,
|
|
|
|
};
|
2013-11-10 03:43:56 +01:00
|
|
|
|
2014-07-16 18:47:14 +02:00
|
|
|
void execute(WINDOW *w, ToxWindow *self, Tox *m, const char *input, int mode);
|
2014-06-22 02:18:23 +02:00
|
|
|
|
2018-10-08 19:39:04 +02:00
|
|
|
#endif /* EXECUTE_H */
|