Debian Codegraph @

src/bnetd/anongame.h

raw symbols SCIP
1 /*
2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License
4 * as published by the Free Software Foundation; either version 2
5 * of the License, or (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15 */
16 #ifndef INCLUDED_ANONGAME_TYPEScxx . . $ `src/bnetd/anongame.h:17:9`!
17 #define INCLUDED_ANONGAME_TYPEScxx . . $ `src/bnetd/anongame.h:17:9`!
18
19 #include <cstdint>
20
21 #ifdef JUST_NEED_TYPEScxx . . $ `src/bnetd/connection.h:235:9`!
22 # include "account.h"cxx . . $ `<file>/src/bnetd/account.h`/
23 # include "connection.h"cxx . . $ `<file>/src/bnetd/connection.h`/
24 #else
25 # define JUST_NEED_TYPEScxx . . $ `src/bnetd/anongame.h:25:10`!
26 # include "account.h"cxx . . $ `<file>/src/bnetd/account.h`/
27 # include "connection.h"cxx . . $ `<file>/src/bnetd/connection.h`/
28 # undef JUST_NEED_TYPEScxx . . $ `src/bnetd/anongame.h:25:10`!
29 #endif
30 # include "anongame_gameresult.h"cxx . . $ `<file>/src/bnetd/anongame_gameresult.h`/
31
32 namespace pvpgncxx . . $ pvpgn/
33 {
34
35 namespace bnetdcxx . . $ pvpgn/bnetd/
36 {
37
38 typedef structcxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_0#
39 {
40 int currentplayerscxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_0#currentplayers.;
41 int totalplayerscxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_0#totalplayers.;
42 struct connectioncxx . . $ pvpgn/bnetd/connection# * playercxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_0#player.[ANONGAME_MAX_GAMECOUNTcxx . . $ ANONGAME_MAX_GAMECOUNT.];
43 t_accountcxx . . $ pvpgn/bnetd/t_account# * accountcxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_0#account.[ANONGAME_MAX_GAMECOUNTcxx . . $ ANONGAME_MAX_GAMECOUNT.];
44 int resultcxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_0#result.[ANONGAME_MAX_GAMECOUNTcxx . . $ ANONGAME_MAX_GAMECOUNT.];
45 t_anongame_gameresultcxx . . $ pvpgn/bnetd/t_anongame_gameresult# * resultscxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_0#results.[ANONGAME_MAX_GAMECOUNTcxx . . $ ANONGAME_MAX_GAMECOUNT.];
46 } t_anongameinfocxx . . $ pvpgn/bnetd/t_anongameinfo#;
47
48 typedef structcxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_1#
49 {
50 t_anongameinfocxx . . $ pvpgn/bnetd/t_anongameinfo# * infocxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_1#info.;
51 int countcxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_1#count.;
52 stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# idcxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_1#id.;
53 stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# tidcxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_1#tid.;
54 struct connectioncxx . . $ pvpgn/bnetd/connection# * tccxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_1#tc.[ANONGAME_MAX_GAMECOUNTcxx . . $ ANONGAME_MAX_GAMECOUNT. / 2];
55 stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# racecxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_1#race.;
56 stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# handlecxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_1#handle.;
57 unsigned int addrcxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_1#addr.;
58 char loadedcxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_1#loaded.;
59 char joinedcxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_1#joined.;
60 stdcxx . . $ std/::uint8_tcxx . . $ std/uint8_t# playernumcxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_1#playernum.;
61 stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# map_prefscxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_1#map_prefs.;
62 stdcxx . . $ std/::uint8_tcxx . . $ std/uint8_t# typecxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_1#type.;
63 stdcxx . . $ std/::uint8_tcxx . . $ std/uint8_t# gametypecxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_1#gametype.;
64 int queuecxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_1#queue.;
65 } t_anongamecxx . . $ pvpgn/bnetd/t_anongame#;
66
67 typedef structcxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_2#
68 {
69 struct connectioncxx . . $ pvpgn/bnetd/connection# * ccxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_2#c.;
70 stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# map_prefscxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_2#map_prefs.;
71 char const * versiontagcxx . . $ pvpgn/bnetd/$anonymous_type_f87250fcf39fce72_2#versiontag.;
72 } t_matchdatacxx . . $ pvpgn/bnetd/t_matchdata#;
73
74 }
75
76 }
77
78 #endif
79
80 /*****/
81 #ifndef JUST_NEED_TYPEScxx . . $ `src/bnetd/connection.h:235:9`!
82 #ifndef INCLUDED_ANONGAME_PROTOScxx . . $ `src/bnetd/anongame.h:83:9`!
83 #define INCLUDED_ANONGAME_PROTOScxx . . $ `src/bnetd/anongame.h:83:9`!
84
85 #define JUST_NEED_TYPEScxx . . $ `src/bnetd/anongame.h:85:9`!
86 #include "common/packet.h"cxx . . $ `<file>/src/common/packet.h`/
87 #include "connection.h"cxx . . $ `<file>/src/bnetd/connection.h`/
88 #undef JUST_NEED_TYPEScxx . . $ `src/bnetd/anongame.h:85:9`!
89
90 namespace pvpgncxx . . $ pvpgn/
91 {
92
93 namespace bnetdcxx . . $ pvpgn/bnetd/
94 {
95
96 extern int anongame_matchlists_createcxx . . $ pvpgn/bnetd/anongame_matchlists_create(b126dc7c1de90089).(void);
97 extern int anongame_matchlists_destroycxx . . $ pvpgn/bnetd/anongame_matchlists_destroy(b126dc7c1de90089).(void);
98
99 extern int handle_anongame_searchcxx . . $ pvpgn/bnetd/handle_anongame_search(8d07eb83d60bed1d).(t_connection * c, t_packetcxx . . $ pvpgn/t_packet# const * packet);
100 extern int anongame_unqueuecxx . . $ pvpgn/bnetd/anongame_unqueue(fa505503af8860d0).(t_connection * c, int queue);
101
102 extern char anongame_arrangedcxx . . $ pvpgn/bnetd/anongame_arranged(266ca1ce69549011).(int queue);
103 extern int anongame_statscxx . . $ pvpgn/bnetd/anongame_stats(c4dfbc2386fe4fc3).(t_connection * c);
104
105 extern t_anongameinfocxx . . $ pvpgn/bnetd/t_anongameinfo# * anongameinfo_createcxx . . $ pvpgn/bnetd/anongameinfo_create(d850d49e9fa50194).(int totalplayers);
106 extern void anongameinfo_destroycxx . . $ pvpgn/bnetd/anongameinfo_destroy(2779310e7a7a5560).(t_anongameinfocxx . . $ pvpgn/bnetd/t_anongameinfo# * i);
107
108 extern t_anongameinfocxx . . $ pvpgn/bnetd/t_anongameinfo# * anongame_get_infocxx . . $ pvpgn/bnetd/anongame_get_info(2a9b9e993eac3a19).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# * a);
109 extern int anongame_get_currentplayerscxx . . $ pvpgn/bnetd/anongame_get_currentplayers(ed13df91a2d61cf).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# *a);
110 extern int anongame_get_totalplayerscxx . . $ pvpgn/bnetd/anongame_get_totalplayers(ed13df91a2d61cf).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# *a);
111 extern t_connection * anongame_get_playercxx . . $ pvpgn/bnetd/anongame_get_player(2bdefcb8f1f983a9).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# * a, int plnum);
112 extern int anongame_get_countcxx . . $ pvpgn/bnetd/anongame_get_count(ed13df91a2d61cf).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# *a);
113 extern stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# anongame_get_idcxx . . $ pvpgn/bnetd/anongame_get_id(7480407b697dfb85).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# * a);
114 extern t_connection * anongame_get_tccxx . . $ pvpgn/bnetd/anongame_get_tc(2bdefcb8f1f983a9).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# *a, int tpnumber);
115 extern stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# anongame_get_racecxx . . $ pvpgn/bnetd/anongame_get_race(7480407b697dfb85).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# * a);
116 extern stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# anongame_get_handlecxx . . $ pvpgn/bnetd/anongame_get_handle(7480407b697dfb85).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# * a);
117 extern unsigned int anongame_get_addrcxx . . $ pvpgn/bnetd/anongame_get_addr(7480407b697dfb85).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# * a);
118 extern char anongame_get_loadedcxx . . $ pvpgn/bnetd/anongame_get_loaded(e16ac247a913586a).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# * a);
119 extern char anongame_get_joinedcxx . . $ pvpgn/bnetd/anongame_get_joined(e16ac247a913586a).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# * a);
120 extern stdcxx . . $ std/::uint8_tcxx . . $ std/uint8_t# anongame_get_playernumcxx . . $ pvpgn/bnetd/anongame_get_playernum(73d41d83ff85f81f).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# * a);
121 extern stdcxx . . $ std/::uint8_tcxx . . $ std/uint8_t# anongame_get_queuecxx . . $ pvpgn/bnetd/anongame_get_queue(73d41d83ff85f81f).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# *a);
122
123 extern void anongame_set_resultcxx . . $ pvpgn/bnetd/anongame_set_result(707ef3d3d5fab011).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# * a, int result);
124 extern void anongame_set_gameresultscxx . . $ pvpgn/bnetd/anongame_set_gameresults(57d9320bf9955583).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# * a, t_anongame_gameresultcxx . . $ pvpgn/bnetd/t_anongame_gameresult# * results);
125 extern void anongame_set_handlecxx . . $ pvpgn/bnetd/anongame_set_handle(b4c4eef0513293fe).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# *a, stdcxx . . $ std/::uint32_tcxx . . $ std/uint32_t# h);
126 extern void anongame_set_addrcxx . . $ pvpgn/bnetd/anongame_set_addr(b4c4eef0513293fe).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# *a, unsigned int addr);
127 extern void anongame_set_loadedcxx . . $ pvpgn/bnetd/anongame_set_loaded(8213a23c9642a9a3).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# * a, char loaded);
128 extern void anongame_set_joinedcxx . . $ pvpgn/bnetd/anongame_set_joined(8213a23c9642a9a3).(t_anongamecxx . . $ pvpgn/bnetd/t_anongame# * a, char joined);
129
130 extern int handle_w3route_packetcxx . . $ pvpgn/bnetd/handle_w3route_packet(8d07eb83d60bed1d).(t_connection * c, t_packetcxx . . $ pvpgn/t_packet# const * const packet);
131 extern int handle_anongame_joincxx . . $ pvpgn/bnetd/handle_anongame_join(c4dfbc2386fe4fc3).(t_connection * c);
132
133 /* Currently used by WOL RAL2 and YURI clients*/
134 extern const char * anongame_get_map_from_prefscxx . . $ pvpgn/bnetd/anongame_get_map_from_prefs(1663101b4c2f8326).(int queue, t_clienttagcxx . . $ pvpgn/t_clienttag# clienttag);
135 }
136
137 }
138
139 #endif
140 #endif