| 1 | /* |
| 2 | * Copyright (C) 2000 Ross Combs ([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 | #ifndef INCLUDED_REALM_TYPEScxx . . $ `src/bnetd/realm.h:19:9`! |
| 19 | #define INCLUDED_REALM_TYPEScxx . . $ `src/bnetd/realm.h:19:9`! |
| 20 | |
| 21 | #ifdef JUST_NEED_TYPEScxx . . $ `src/bnetd/connection.h:235:9`! |
| 22 | # include "connection.h"cxx . . $ `<file>/src/bnetd/connection.h`/ |
| 23 | # include "common/rcm.h"cxx . . $ `<file>/src/common/rcm.h`/ |
| 24 | #else |
| 25 | #define JUST_NEED_TYPEScxx . . $ `src/bnetd/realm.h:25:9`! |
| 26 | # include "connection.h"cxx . . $ `<file>/src/bnetd/connection.h`/ |
| 27 | # include "common/rcm.h"cxx . . $ `<file>/src/common/rcm.h`/ |
| 28 | #undef JUST_NEED_TYPEScxx . . $ `src/bnetd/realm.h:25:9`! |
| 29 | #endif |
| 30 | |
| 31 | namespace pvpgncxx . . $ pvpgn/ |
| 32 | { |
| 33 | |
| 34 | namespace bnetdcxx . . $ pvpgn/bnetd/ |
| 35 | { |
| 36 | |
| 37 | struct connectioncxx . . $ pvpgn/bnetd/connection#; |
| 38 | |
| 39 | typedef struct realmcxx . . $ pvpgn/bnetd/realm# |
| 40 | #ifdef REALM_INTERNAL_ACCESScxx . . $ `src/bnetd/realm.cpp:19:9`! |
| 41 | { |
| 42 | char const * namecxx . . $ pvpgn/bnetd/realm#name.; |
| 43 | char const * descriptioncxx . . $ pvpgn/bnetd/realm#description.; |
| 44 | unsigned int sessionnumcxx . . $ pvpgn/bnetd/realm#sessionnum.; |
| 45 | unsigned int activecxx . . $ pvpgn/bnetd/realm#active.; |
| 46 | unsigned int ipcxx . . $ pvpgn/bnetd/realm#ip.; |
| 47 | unsigned short portcxx . . $ pvpgn/bnetd/realm#port.; |
| 48 | unsigned int player_numbercxx . . $ pvpgn/bnetd/realm#player_number.; |
| 49 | unsigned int game_numbercxx . . $ pvpgn/bnetd/realm#game_number.; |
| 50 | int tcp_sockcxx . . $ pvpgn/bnetd/realm#tcp_sock.; |
| 51 | struct connectioncxx . . $ pvpgn/bnetd/connection# * conncxx . . $ pvpgn/bnetd/realm#conn.; |
| 52 | t_rcmcxx . . $ pvpgn/t_rcm# rcmcxx . . $ pvpgn/bnetd/realm#rcm.; |
| 53 | } |
| 54 | #endif |
| 55 | t_realmcxx . . $ pvpgn/bnetd/t_realm#; |
| 56 | |
| 57 | } |
| 58 | |
| 59 | } |
| 60 | |
| 61 | #endif |
| 62 | |
| 63 | |
| 64 | /*****/ |
| 65 | #ifndef JUST_NEED_TYPEScxx . . $ `src/bnetd/connection.h:235:9`! |
| 66 | #ifndef INCLUDED_REALM_PROTOS |
| 67 | #define INCLUDED_REALM_PROTOScxx . . $ `src/bnetd/realm.h:67:9`! |
| 68 | |
| 69 | #define JUST_NEED_TYPEScxx . . $ `src/bnetd/realm.h:69:9`! |
| 70 | # include "common/list.h"cxx . . $ `<file>/src/common/list.h`/ |
| 71 | # include "connection.h"cxx . . $ `<file>/src/bnetd/connection.h`/ |
| 72 | # include "common/rcm.h"cxx . . $ `<file>/src/common/rcm.h`/ |
| 73 | #undef JUST_NEED_TYPEScxx . . $ `src/bnetd/realm.h:69:9`! |
| 74 | |
| 75 | namespace pvpgncxx . . $ pvpgn/ |
| 76 | { |
| 77 | |
| 78 | namespace bnetdcxx . . $ pvpgn/bnetd/ |
| 79 | { |
| 80 | |
| 81 | extern char const * realm_get_namecxx . . $ pvpgn/bnetd/realm_get_name(83f045398bcf2fc5).(t_realmcxx . . $ pvpgn/bnetd/t_realm# const * realm); |
| 82 | extern char const * realm_get_descriptioncxx . . $ pvpgn/bnetd/realm_get_description(83f045398bcf2fc5).(t_realmcxx . . $ pvpgn/bnetd/t_realm# const * realm); |
| 83 | extern unsigned short realm_get_portcxx . . $ pvpgn/bnetd/realm_get_port(c87eeef7d816c78d).(t_realmcxx . . $ pvpgn/bnetd/t_realm# const * realm); |
| 84 | extern unsigned int realm_get_ipcxx . . $ pvpgn/bnetd/realm_get_ip(d125a4483a7f736b).(t_realmcxx . . $ pvpgn/bnetd/t_realm# const * realm); |
| 85 | extern int realm_set_namecxx . . $ pvpgn/bnetd/realm_set_name(21a7e9771b814a54).(t_realmcxx . . $ pvpgn/bnetd/t_realm# * realm, char const * name); |
| 86 | extern unsigned int realm_get_activecxx . . $ pvpgn/bnetd/realm_get_active(d125a4483a7f736b).(t_realmcxx . . $ pvpgn/bnetd/t_realm# const * realm); |
| 87 | extern unsigned int realm_get_player_numbercxx . . $ pvpgn/bnetd/realm_get_player_number(d125a4483a7f736b).(t_realmcxx . . $ pvpgn/bnetd/t_realm# const * realm); |
| 88 | extern int realm_add_player_numbercxx . . $ pvpgn/bnetd/realm_add_player_number(776df6f6ee711b79).(t_realmcxx . . $ pvpgn/bnetd/t_realm# * realm, int number); |
| 89 | extern unsigned int realm_get_game_numbercxx . . $ pvpgn/bnetd/realm_get_game_number(d125a4483a7f736b).(t_realmcxx . . $ pvpgn/bnetd/t_realm# const * realm); |
| 90 | extern int realm_add_game_numbercxx . . $ pvpgn/bnetd/realm_add_game_number(776df6f6ee711b79).(t_realmcxx . . $ pvpgn/bnetd/t_realm# * realm, int number); |
| 91 | extern int realm_set_activecxx . . $ pvpgn/bnetd/realm_set_active(c84eab1df234e0e2).(t_realmcxx . . $ pvpgn/bnetd/t_realm# * realm, unsigned int active); |
| 92 | extern int realm_activecxx . . $ pvpgn/bnetd/realm_active(785603629566d68e).(t_realmcxx . . $ pvpgn/bnetd/t_realm# * realm, struct connectioncxx . . $ pvpgn/bnetd/connection# * c); |
| 93 | extern int realm_deactivecxx . . $ pvpgn/bnetd/realm_deactive(6a6afb432ed40419).(t_realmcxx . . $ pvpgn/bnetd/t_realm# * realm); |
| 94 | |
| 95 | extern int realmlist_createcxx . . $ pvpgn/bnetd/realmlist_create(5c4306d8553b3696).(char const * filename); |
| 96 | extern int realmlist_destroycxx . . $ pvpgn/bnetd/realmlist_destroy(b126dc7c1de90089).(void); |
| 97 | extern int realmlist_reloadcxx . . $ pvpgn/bnetd/realmlist_reload(5c4306d8553b3696).(char const * filename); |
| 98 | extern t_realmcxx . . $ pvpgn/bnetd/t_realm# * realmlist_find_realmcxx . . $ pvpgn/bnetd/realmlist_find_realm(8fe5f3fa56e7fb14).(char const * realmname); |
| 99 | extern t_realmcxx . . $ pvpgn/bnetd/t_realm# * realmlist_find_realm_by_ipcxx . . $ pvpgn/bnetd/realmlist_find_realm_by_ip(a00e58d003047626).(unsigned long ip); /* ??? */ |
| 100 | extern t_list * realmlistcxx . . $ pvpgn/bnetd/realmlist(7a6cb11de248e2c9).(void); |
| 101 | |
| 102 | extern struct connectioncxx . . $ pvpgn/bnetd/connection# * realm_get_conncxx . . $ pvpgn/bnetd/realm_get_conn(f873919d1146ff54).(t_realmcxx . . $ pvpgn/bnetd/t_realm# * realm); |
| 103 | |
| 104 | extern t_realmcxx . . $ pvpgn/bnetd/t_realm# * realm_getcxx . . $ pvpgn/bnetd/realm_get(220795a468a8851a).(t_realmcxx . . $ pvpgn/bnetd/t_realm# * realm, t_rcm_regrefcxx . . $ pvpgn/t_rcm_regref# * regref); |
| 105 | extern void realm_putcxx . . $ pvpgn/bnetd/realm_put(b4ea8bd8f86a51c).(t_realmcxx . . $ pvpgn/bnetd/t_realm# * realm, t_rcm_regrefcxx . . $ pvpgn/t_rcm_regref# * regref); |
| 106 | |
| 107 | } |
| 108 | |
| 109 | } |
| 110 | |
| 111 | #endif |
| 112 | #endif |