1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-04 13:06:46 +02:00

big refactor for command functionality

This commit is contained in:
Jfreegman
2013-11-09 21:43:56 -05:00
parent 1b041cb089
commit 549fc5ecb6
11 changed files with 732 additions and 180 deletions

10
src/execute.h Normal file
View File

@ -0,0 +1,10 @@
/*
* Toxic -- Tox Curses Client
*/
#define MAX_NUM_ARGS 4 /* Includes command */
#define GLOBAL_COMMAND_MODE 0
#define CHAT_COMMAND_MODE 1
#define GROUPCHAT_COMMAND_MODE 2
void execute(WINDOW *window, ToxWindow *prompt, Tox *m, char *cmd, int mode);