Debian Codegraph @

netcon/mtclient/chat_api.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #include <cstdint>
20
21 // Commands
22 #define CC_USER_JOININGcxx . . $ `netcon/mtclient/chat_api.h:22:9`! 1 // A user had joined this channel (add him/her from the user listbox if any)
23 #define CC_USER_LEAVINGcxx . . $ `netcon/mtclient/chat_api.h:23:9`! 2 // A user has left the channel (remove him/her from the user listbox if any)
24 #define CC_DISCONNECTEDcxx . . $ `netcon/mtclient/chat_api.h:24:9`! 3 // We have been disconnected from the server (close the chat screen down)
25 #define CC_KICKEDcxx . . $ `netcon/mtclient/chat_api.h:25:9`! 4 // We were kicked out of the channel! (close the chat screen down?)
26 #define CC_NICKCHANGEDcxx . . $ `netcon/mtclient/chat_api.h:26:9`! 5 // Informing that your nickname has changed (data = "oldnick newnick")
27 #define CC_YOURCHANNELcxx . . $ `netcon/mtclient/chat_api.h:27:9`! 6 // data = name of the channel you are in. Only generated when you are joining #autoselect
28
29 #define MAXLOCALSTRINGcxx . . $ `netcon/mtclient/chat_api.h:29:9`! 600
30 #define MSG_REMOTEcxx . . $ `netcon/mtclient/chat_api.h:30:9`! 0
31 #define MSG_LOCALcxx . . $ `netcon/mtclient/chat_api.h:31:9`! 1
32
33 typedef struct Chat_usercxx . . $ Chat_user# {
34 char nick_namecxx . . $ Chat_user#nick_name.[33];
35 Chat_usercxx . . $ Chat_user# *nextcxx . . $ Chat_user#next.;
36 } Chat_usercxx . . $ Chat_user#;
37
38 typedef struct Chat_channelcxx . . $ Chat_channel# {
39 char channel_namecxx . . $ Chat_channel#channel_name.[33];
40 uint16_tcxx . . $ uint16_t# userscxx . . $ Chat_channel#users.;
41 char topiccxx . . $ Chat_channel#topic.[100];
42 Chat_channelcxx . . $ Chat_channel# *nextcxx . . $ Chat_channel#next.;
43 } Chat_channelcxx . . $ Chat_channel#;
44
45 typedef struct Chat_commandcxx . . $ Chat_command# {
46 int16_tcxx . . $ int16_t# commandcxx . . $ Chat_command#command.;
47 char datacxx . . $ Chat_command#data.[100];
48 Chat_commandcxx . . $ Chat_command# *nextcxx . . $ Chat_command#next.;
49 } Chat_commandcxx . . $ Chat_command#;
50
51 // Prototypes
52 int ConnectToChatServercxx . . $ ConnectToChatServer(1abe9d7d0dbf60ed).(const char *serveraddr, int16_tcxx . . $ int16_t# chat_port, char *nickname, char *trackerid);
53 void DisconnectFromChatServercxx . . $ DisconnectFromChatServer(49f6e7a06ebc5aa8).();
54 const char *GetChatTextcxx . . $ GetChatText(33a1f659e94feb42).();
55 const char *SendChatStringcxx . . $ SendChatString(223c544933887702).(const char *line, int raw = 0);
56 Chat_commandcxx . . $ Chat_command# *GetChatCommandcxx . . $ GetChatCommand(c516c7a03995079d).();
57 char *GetChatUserListcxx . . $ GetChatUserList(41208ce6ca65dd58).();
58 int SetNewChatChannelcxx . . $ SetNewChatChannel(5c4306d8553b3696).(const char *channel);
59 char *GetChannelListcxx . . $ GetChannelList(41208ce6ca65dd58).();
60 char *GetTrackerIdByUsercxx . . $ GetTrackerIdByUser(a8b8e32347182212).(const char *nickname);
61 char *GetChannelByUsercxx . . $ GetChannelByUser(a8b8e32347182212).(const char *nickname);
62
63 const char *ChatGetStringcxx . . $ ChatGetString(33a1f659e94feb42).();
64 const char *GetWordNumcxx . . $ GetWordNum(75c700d7e7a896fe).(int num, const char *l_String);
65 char *ParseIRCMessagecxx . . $ ParseIRCMessage(ad13dc7cd1ddbf0a).(char *Line, int iMode);
66 int AddChatUsercxx . . $ AddChatUser(5c4306d8553b3696).(const char *nickname);
67 int RemoveChatUsercxx . . $ RemoveChatUser(1ef8e6ec083aabb9).(char *nickname);
68 void RemoveAllChatUserscxx . . $ RemoveAllChatUsers(49f6e7a06ebc5aa8).();
69 void AddChatCommandToQueuecxx . . $ AddChatCommandToQueue(7b93ffa09ebcfde0).(int command, const void *data, int len);
70 Chat_commandcxx . . $ Chat_command# *GetChatCommandFromQueuecxx . . $ GetChatCommandFromQueue(c516c7a03995079d).();
71 void FlushChatCommandQueuecxx . . $ FlushChatCommandQueue(49f6e7a06ebc5aa8).();
72 void AddChannelcxx . . $ AddChannel(2efb20bf9f5bff1e).(char *channel, uint16_tcxx . . $ uint16_t# numusers, char *topic);
73 void FlushChannelListcxx . . $ FlushChannelList(49f6e7a06ebc5aa8).();