Debian Codegraph @

src/bnetd/account.h

raw symbols SCIP
1 /*
2 * Copyright (C) 1998,1999 Ross Combs ([email protected])
3 * Copyright (C) 2000,2001 Marco Ziech ([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_ACCOUNT_TYPEScxx . . $ `src/bnetd/account.h:20:9`!
20 #define INCLUDED_ACCOUNT_TYPEScxx . . $ `src/bnetd/account.h:20:9`!
21
22 #ifndef JUST_NEED_TYPEScxx . . $ `src/bnetd/team.h:25:10`!
23 #define JUST_NEED_TYPEScxx . . $ `src/bnetd/account.h:23:9`!
24 #include "common/list.h"cxx . . $ `<file>/src/common/list.h`/
25 #include "common/elist.h"cxx . . $ `<file>/src/common/elist.h`/
26 #include "team.h"cxx . . $ `<file>/src/bnetd/team.h`/
27 #include "attrgroup.h"cxx . . $ `<file>/src/bnetd/attrgroup.h`/
28 #undef JUST_NEED_TYPEScxx . . $ `src/bnetd/account.h:23:9`!
29 #else
30 #include "common/list.h"cxx . . $ `<file>/src/common/list.h`/
31 #include "common/elist.h"cxx . . $ `<file>/src/common/elist.h`/
32 #include "team.h"cxx . . $ `<file>/src/bnetd/team.h`/
33 #include "attrgroup.h"cxx . . $ `<file>/src/bnetd/attrgroup.h`/
34 #endif
35
36 #define ACCOUNT_FLAG_NONEcxx . . $ `src/bnetd/account.h:36:9`! 0
37 #define ACCOUNT_FLAG_FLOADEDcxx . . $ `src/bnetd/account.h:37:9`! 1 /* friends list loaded */
38
39 namespace pvpgncxx . . $ pvpgn/
40 {
41
42 namespace bnetdcxx . . $ pvpgn/bnetd/
43 {
44
45 struct connectioncxx . . $ pvpgn/bnetd/connection#;
46 struct _clanmembercxx . . $ pvpgn/bnetd/_clanmember#;
47 struct clancxx . . $ pvpgn/bnetd/clan#;
48
49 typedef struct account_structcxx . . $ pvpgn/bnetd/account_struct#
50 #ifdef ACCOUNT_INTERNAL_ACCESScxx . . $ `src/bnetd/account.cpp:20:9`!
51 {
52 t_attrgroupcxx . . $ pvpgn/bnetd/t_attrgroup# * attrgroupcxx . . $ pvpgn/bnetd/account_struct#attrgroup.;
53 char * namecxx . . $ pvpgn/bnetd/account_struct#name.; /* profiling proved 99% of getstrattr its from get_name */
54 unsigned int namehashcxx . . $ pvpgn/bnetd/account_struct#namehash.; /* cached from attrs */
55 unsigned int uidcxx . . $ pvpgn/bnetd/account_struct#uid.; /* cached from attrs */
56 unsigned int flagscxx . . $ pvpgn/bnetd/account_struct#flags.;
57 struct connectioncxx . . $ pvpgn/bnetd/connection# * conncxx . . $ pvpgn/bnetd/account_struct#conn.;
58 struct _clanmembercxx . . $ pvpgn/bnetd/_clanmember# * clanmembercxx . . $ pvpgn/bnetd/account_struct#clanmember.;
59 t_listcxx . . $ pvpgn/t_list# * friendscxx . . $ pvpgn/bnetd/account_struct#friends.;
60 t_listcxx . . $ pvpgn/t_list# * teamscxx . . $ pvpgn/bnetd/account_struct#teams.;
61 }
62 #endif
63 t_accountcxx . . $ pvpgn/bnetd/t_account#;
64
65 }
66
67 }
68
69 #endif
70
71 /*****/
72 #ifndef JUST_NEED_TYPEScxx . . $ `src/bnetd/connection.h:235:9`!
73 #ifndef INCLUDED_ACCOUNT_PROTOS
74 #define INCLUDED_ACCOUNT_PROTOScxx . . $ `src/bnetd/account.h:74:9`!
75
76 #define JUST_NEED_TYPEScxx . . $ `src/bnetd/account.h:76:9`!
77 #include "common/hashtable.h"cxx . . $ `<file>/src/common/hashtable.h`/
78 #include "connection.h"cxx . . $ `<file>/src/bnetd/connection.h`/
79 #undef JUST_NEED_TYPEScxx . . $ `src/bnetd/account.h:76:9`!
80
81 namespace pvpgncxx . . $ pvpgn/
82 {
83
84 namespace bnetdcxx . . $ pvpgn/bnetd/
85 {
86
87 extern unsigned int maxuseridcxx . . $ pvpgn/bnetd/maxuserid.;
88
89 extern int accountlist_reloadcxx . . $ pvpgn/bnetd/accountlist_reload(b126dc7c1de90089).(void);
90 extern int account_check_namecxx . . $ pvpgn/bnetd/account_check_name(5c4306d8553b3696).(char const * name);
91 #define account_get_uidcxx . . $ `src/bnetd/account.h:91:9`!(A) account_get_uid_real(A,__FILE__,__LINE__)
92 extern unsigned int account_get_uid_realcxx . . $ pvpgn/bnetd/account_get_uid_real(71710757b6259f24).(t_accountcxx . . $ pvpgn/bnetd/t_account# const * account, char const * fn, unsigned int ln);
93 extern int account_matchcxx . . $ pvpgn/bnetd/account_match(4b12bc5edcfaeac7).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account, char const * username);
94 extern int account_savecxx . . $ pvpgn/bnetd/account_save(43f7d0f5a7c4b307).(t_accountcxx . . $ pvpgn/bnetd/t_account# *account, unsigned flags);
95 extern char const * account_get_strattr_realcxx . . $ pvpgn/bnetd/account_get_strattr_real(95f204def2b9fb07).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account, char const * key, char const * fn, unsigned int ln);
96 #define account_get_strattrcxx . . $ `src/bnetd/account.h:96:9`!(A,K) account_get_strattr_real(A,K,__FILE__,__LINE__)
97 extern int account_set_strattrcxx . . $ pvpgn/bnetd/account_set_strattr(47d7ee6351fa1de3).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account, char const * key, char const * val);
98
99 extern int accountlist_createcxx . . $ pvpgn/bnetd/accountlist_create(b126dc7c1de90089).(void);
100 extern int accountlist_destroycxx . . $ pvpgn/bnetd/accountlist_destroy(b126dc7c1de90089).(void);
101 extern t_hashtablecxx . . $ pvpgn/t_hashtable# * accountlistcxx . . $ pvpgn/bnetd/accountlist(be8548fcc1b5d2a).(void);
102 extern t_hashtablecxx . . $ pvpgn/t_hashtable# * accountlist_uidcxx . . $ pvpgn/bnetd/accountlist_uid(be8548fcc1b5d2a).(void);
103 extern int accountlist_load_allcxx . . $ pvpgn/bnetd/accountlist_load_all(7864480464b09eea).(int flag);
104 extern unsigned int accountlist_get_lengthcxx . . $ pvpgn/bnetd/accountlist_get_length(db52760e79bf9054).(void);
105 extern int accountlist_savecxx . . $ pvpgn/bnetd/accountlist_save(4c679297bf94b9eb).(unsigned flags);
106 extern int accountlist_flushcxx . . $ pvpgn/bnetd/accountlist_flush(4c679297bf94b9eb).(unsigned flags);
107 extern t_accountcxx . . $ pvpgn/bnetd/t_account# * accountlist_find_accountcxx . . $ pvpgn/bnetd/accountlist_find_account(db6f5ebdea1fa12b).(char const * username);
108 extern t_accountcxx . . $ pvpgn/bnetd/t_account# * accountlist_find_account_by_uidcxx . . $ pvpgn/bnetd/accountlist_find_account_by_uid(c4505e327c9ccd36).(unsigned int uid);
109 extern char const *accountlist_find_vague_accountcxx . . $ pvpgn/bnetd/accountlist_find_vague_account(f379082f354693e).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account, char const *vague_username);
110 extern int accountlist_allow_addcxx . . $ pvpgn/bnetd/accountlist_allow_add(b126dc7c1de90089).(void);
111 extern t_accountcxx . . $ pvpgn/bnetd/t_account# * accountlist_create_accountcxx . . $ pvpgn/bnetd/accountlist_create_account(fdad4c38d937b650).(const char *username, const char *passhash1);
112
113 /* names and passwords */
114 extern char const * account_get_name_realcxx . . $ pvpgn/bnetd/account_get_name_real(325e20526b023caa).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account, char const * fn, unsigned int ln);
115 # define account_get_namecxx . . $ `src/bnetd/account.h:115:10`!(A) account_get_name_real(A,__FILE__,__LINE__)
116
117
118 extern int account_check_mutualcxx . . $ pvpgn/bnetd/account_check_mutual(9f6a50bf8c531a3f).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account, int myuserid);
119 extern t_listcxx . . $ pvpgn/t_list# * account_get_friendscxx . . $ pvpgn/bnetd/account_get_friends(27f2e57ffe21264).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account);
120
121 extern int account_set_clanmembercxx . . $ pvpgn/bnetd/account_set_clanmember(5828098b1d22acf3).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account, _clanmembercxx . . $ pvpgn/bnetd/_clanmember# * clanmember);
122 extern _clanmembercxx . . $ pvpgn/bnetd/_clanmember# * account_get_clanmembercxx . . $ pvpgn/bnetd/account_get_clanmember(4ce48d4e65930331).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account);
123 extern _clanmembercxx . . $ pvpgn/bnetd/_clanmember# * account_get_clanmember_forcedcxx . . $ pvpgn/bnetd/account_get_clanmember_forced(4ce48d4e65930331).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account);
124 extern clancxx . . $ pvpgn/bnetd/clan# * account_get_clancxx . . $ pvpgn/bnetd/account_get_clan(b1e25e267411fd2e).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account);
125 extern clancxx . . $ pvpgn/bnetd/clan# * account_get_creating_clancxx . . $ pvpgn/bnetd/account_get_creating_clan(b1e25e267411fd2e).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account);
126
127 extern int account_set_conncxx . . $ pvpgn/bnetd/account_set_conn(dd21e8ef2296c4e9).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account, t_connection * conn);
128 extern t_connection * account_get_conncxx . . $ pvpgn/bnetd/account_get_conn(831fe2ed2f0bd703).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account);
129
130 extern void account_add_teamcxx . . $ pvpgn/bnetd/account_add_team(7568b6ec01afeb15).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account, t_teamcxx . . $ pvpgn/bnetd/t_team# * team);
131 extern t_teamcxx . . $ pvpgn/bnetd/t_team# * account_find_team_by_accountscxx . . $ pvpgn/bnetd/account_find_team_by_accounts(f97505bb25041b2).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account, t_accountcxx . . $ pvpgn/bnetd/t_account# **accounts, t_clienttagcxx . . $ pvpgn/t_clienttag# clienttag);
132 extern t_teamcxx . . $ pvpgn/bnetd/t_team# * account_find_team_by_teamidcxx . . $ pvpgn/bnetd/account_find_team_by_teamid(23ecc65a048e0bcb).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account, unsigned int teamid);
133 extern t_listcxx . . $ pvpgn/t_list# * account_get_teamscxx . . $ pvpgn/bnetd/account_get_teams(27f2e57ffe21264).(t_accountcxx . . $ pvpgn/bnetd/t_account# * account);
134
135 }
136
137 }
138
139 #endif
140 #endif