created exit_cmd getter & setter
This commit is contained in:
parent
b2c945fe6d
commit
c98184f1f5
@ -46,6 +46,9 @@ extern "C" {
|
|||||||
//SHORTCUTS CAUSE I'M LAZY BITCH
|
//SHORTCUTS CAUSE I'M LAZY BITCH
|
||||||
#define WHY2_CHAT_CODE_SSQC WHY2_CHAT_CODE_SERVER_SIDE_QUIT_COMMUNICATION
|
#define WHY2_CHAT_CODE_SSQC WHY2_CHAT_CODE_SERVER_SIDE_QUIT_COMMUNICATION
|
||||||
|
|
||||||
|
char *why2_chat_client_get_server_exit_cmd(); //GETTER AND SETTER FOR !exit FROM SERVER
|
||||||
|
void why2_chat_client_set_server_exit_cmd(char *cmd);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
33
src/chat/flags.c
Normal file
33
src/chat/flags.c
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
/*
|
||||||
|
This is part of WHY2
|
||||||
|
Copyright (C) 2022 Václav Šmejkal
|
||||||
|
|
||||||
|
This program 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.
|
||||||
|
|
||||||
|
This program 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 this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <why2/chat/flags.h>
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
char *server_exit_cmd = NULL;
|
||||||
|
|
||||||
|
char *why2_chat_client_get_server_exit_cmd()
|
||||||
|
{
|
||||||
|
return server_exit_cmd;
|
||||||
|
}
|
||||||
|
|
||||||
|
void why2_chat_client_set_server_exit_cmd(char *cmd)
|
||||||
|
{
|
||||||
|
server_exit_cmd = cmd;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user