Debian Codegraph @

src/bnetd/handle_wol_gameres.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2008 Pelish ([email protected])
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18
19
20 /*****/
21 #ifndef JUST_NEED_TYPES
22 #ifndef INCLUDED_HANDLE_WOL_GAMERES_PROTOS
23 #define INCLUDED_HANDLE_WOL_GAMERES_PROTOS
24
25 #define JUST_NEED_TYPES
26 #include "connection.h"
27 #include "game.h"
28 #include "account.h"
29 #include "common/packet.h"
30 #undef JUST_NEED_TYPES
31
32 namespace pvpgn
33 {
34
35 namespace bnetd
36 {
37
38 typedef enum : int
39 {
40 wol_gameres_type_unknown = 0,
41 wol_gameres_type_byte = 1,
42 wol_gameres_type_bool = 2,
43 wol_gameres_type_time = 5,
44 wol_gameres_type_int = 6,
45 wol_gameres_type_string = 7,
46 wol_gameres_type_bigint = 20
47 } wol_gameres_type;
48
49 typedef struct wol_gameres_result
50 {
51 t_game * game;
52 t_game_result * results;
53 int senderid;
54 t_account * myaccount;
55 t_account * otheraccount;
56
57 } t_wol_gameres_result;
58
59 extern int handle_wol_gameres_packet(t_connection * c, t_packet const * const packet);
60
61 }
62
63 }
64
65 #endif
66 #endif