Debian Codegraph @

src/d2cs/d2ladder.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2000,2001 Onlyer ([email protected])
3 * Copyright (C) 2001 sousou ([email protected])
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (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, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19 #ifndef INCLUDED_D2LADDER_H
20 #define INCLUDED_D2LADDER_H
21
22 #include "common/bn_type.h"
23 #include "common/d2cs_protocol.h"
24 #include "common/d2cs_d2dbs_ladder.h"
25
26 namespace pvpgn
27 {
28
29 namespace d2cs
30 {
31
32 typedef struct
33 {
34 unsigned int type;
35 unsigned int len;
36 unsigned int curr_len;
37 t_d2cs_client_ladderinfo * info;
38 } t_d2ladder;
39
40 extern int d2ladder_init(void);
41 extern int d2ladder_refresh(void);
42 extern int d2ladder_destroy(void);
43 extern int d2ladder_get_ladder(unsigned int * from, unsigned int * count, unsigned int type,
44 t_d2cs_client_ladderinfo const * * info);
45 extern int d2ladder_find_character_pos(unsigned int type, char const * charname);
46
47 }
48
49 }
50
51 #endif