Debian Codegraph @

src/bnetd/luaobjects.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2014 HarpyWar ([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 #ifdef WITH_LUA
20 #ifndef JUST_NEED_TYPES
21 #ifndef INCLUDED_LUAOBJECTS_PROTOS
22 #define INCLUDED_LUAOBJECTS_PROTOS
23
24
25
26 #define JUST_NEED_TYPES
27 #include "connection.h"
28 #include <cctype>
29 #include <cerrno>
30 #include <cstring>
31 #include <cstdlib>
32 #undef JUST_NEED_TYPES
33
34 namespace pvpgn
35 {
36
37 namespace bnetd
38 {
39
40 extern std::map<std::string, std::string> get_account_object(unsigned int userid);
41 extern std::map<std::string, std::string> get_account_object(const char *username);
42 extern std::map<std::string, std::string> get_account_object(t_account *account);
43 extern std::map<std::string, std::string> get_game_object(unsigned int gameid);
44 extern std::map<std::string, std::string> get_game_object(const char * gamename, t_clienttag clienttag, t_game_type gametype);
45 extern std::map<std::string, std::string> get_game_object(t_game * game);
46 extern std::map<std::string, std::string> get_channel_object(unsigned int channelid);
47 extern std::map<std::string, std::string> get_channel_object(t_channel * channel);
48 extern std::map<std::string, std::string> get_clan_object(t_clan * clan);
49 extern std::map<std::string, std::string> get_clanmember_object(t_clanmember * member);
50 extern std::map<std::string, std::string> get_team_object(t_team * team);
51 extern std::map<std::string, std::string> get_friend_object(t_friend * f);
52 }
53
54 }
55
56 #endif
57 #endif
58 #endif