2014-02-25 08:28:24 +01:00
|
|
|
/* global_commands.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 GLOBAL_COMMANDS_H
|
|
|
|
#define GLOBAL_COMMANDS_H
|
2014-06-12 00:06:55 +02:00
|
|
|
|
|
|
|
#include "toxic.h"
|
2020-04-18 02:00:00 +02:00
|
|
|
#include "windows.h"
|
2014-06-12 00:06:55 +02:00
|
|
|
|
2013-11-19 21:32:35 +01:00
|
|
|
void cmd_accept(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
|
|
|
|
void cmd_add(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
|
2014-09-26 09:10:44 +02:00
|
|
|
void cmd_avatar(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE]);
|
2013-11-19 21:32:35 +01:00
|
|
|
void cmd_clear(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
|
|
|
|
void cmd_connect(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
|
2014-08-25 20:08:01 +02:00
|
|
|
void cmd_decline(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE]);
|
2020-11-08 16:08:24 +01:00
|
|
|
void cmd_conference(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
|
2014-02-27 01:00:13 +01:00
|
|
|
void cmd_log(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
|
2013-11-19 21:32:35 +01:00
|
|
|
void cmd_myid(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
|
2018-06-16 05:07:16 +02:00
|
|
|
#ifdef QRCODE
|
2015-11-09 04:51:46 +01:00
|
|
|
void cmd_myqr(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE]);
|
2018-06-16 05:07:16 +02:00
|
|
|
#endif /* QRCODE */
|
2013-11-19 21:32:35 +01:00
|
|
|
void cmd_nick(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
|
|
|
|
void cmd_note(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
|
2015-10-23 01:44:05 +02:00
|
|
|
void cmd_nospam(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE]);
|
2013-11-19 21:32:35 +01:00
|
|
|
void cmd_prompt_help(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
|
|
|
|
void cmd_quit(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
|
2014-08-20 02:49:29 +02:00
|
|
|
void cmd_requests(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
|
2013-11-19 21:32:35 +01:00
|
|
|
void cmd_status(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
|
2014-03-08 01:12:51 +01:00
|
|
|
|
2015-03-26 03:56:45 +01:00
|
|
|
void cmd_add_helper(ToxWindow *self, Tox *m, const char *id_bin, const char *msg);
|
2014-06-18 01:10:25 +02:00
|
|
|
|
2014-09-23 03:24:45 +02:00
|
|
|
#ifdef AUDIO
|
2014-03-08 01:12:51 +01:00
|
|
|
void cmd_list_devices(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
|
|
|
|
void cmd_change_device(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
|
2014-09-23 03:24:45 +02:00
|
|
|
#endif /* AUDIO */
|
2014-06-12 00:06:55 +02:00
|
|
|
|
2015-07-30 08:49:27 +02:00
|
|
|
#ifdef VIDEO
|
|
|
|
void cmd_list_video_devices(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
|
|
|
|
void cmd_change_video_device(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
|
|
|
|
#endif /* VIDEO */
|
|
|
|
|
2017-05-16 02:17:23 +02:00
|
|
|
#ifdef PYTHON
|
|
|
|
void cmd_run(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]);
|
2018-10-08 19:39:04 +02:00
|
|
|
#endif /* PYTHON */
|
2017-05-16 02:17:23 +02:00
|
|
|
|
2021-01-19 04:37:14 +01:00
|
|
|
#ifdef GAMES
|
|
|
|
void cmd_game(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE]);
|
|
|
|
#endif /* GAMES */
|
|
|
|
|
2018-10-08 19:39:04 +02:00
|
|
|
#endif /* GLOBAL_COMMANDS_H */
|