| 1 | /* |
| 2 | * This program is free software; you can redistribute it and/or |
| 3 | * modify it under the terms of the GNU General Public License |
| 4 | * as published by the Free Software Foundation; either version 2 |
| 5 | * of the License, or (at your option) any later version. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | * |
| 12 | * You should have received a copy of the GNU General Public License |
| 13 | * along with this program; if not, write to the Free Software |
| 14 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 15 | */ |
| 16 | |
| 17 | #ifndef INCLUDED_FRIENDS_H |
| 18 | #define INCLUDED_FRIENDS_Hcxx . . $ `src/bnetd/friends.h:18:9`! |
| 19 | |
| 20 | #define FRIEND_UNLOADEDMUTUALcxx . . $ `src/bnetd/friends.h:20:9`! -1 |
| 21 | #define FRIEND_NOTMUTUALcxx . . $ `src/bnetd/friends.h:21:9`! 0 |
| 22 | #define FRIEND_ISMUTUALcxx . . $ `src/bnetd/friends.h:22:9`! 1 |
| 23 | |
| 24 | #include "account.h"cxx . . $ `<file>/src/bnetd/account.h`/ |
| 25 | |
| 26 | namespace pvpgncxx . . $ pvpgn/ |
| 27 | { |
| 28 | |
| 29 | namespace bnetdcxx . . $ pvpgn/bnetd/ |
| 30 | { |
| 31 | typedef struct friend_structcxx . . $ pvpgn/bnetd/friend_struct# |
| 32 | { |
| 33 | /* FRIEND_UNLOADEDMUTUAL: unloaded(used to remove deleted elems when reload) |
| 34 | * FRIEND_NOTMUTUAL: not mutual |
| 35 | * FRIEND_ISMUTUAL: is mutual |
| 36 | */ |
| 37 | int mutualcxx . . $ pvpgn/bnetd/friend_struct#mutual.; |
| 38 | t_accountcxx . . $ pvpgn/bnetd/t_account# *friendacccxx . . $ pvpgn/bnetd/friend_struct#friendacc. = nullptr; |
| 39 | } t_friendcxx . . $ pvpgn/bnetd/t_friend#; |
| 40 | |
| 41 | #ifndef JUST_NEED_TYPES |
| 42 | |
| 43 | extern t_accountcxx . . $ pvpgn/bnetd/t_account# * friend_get_accountcxx . . $ pvpgn/bnetd/friend_get_account(9d018d83140d552c).(t_friendcxx . . $ pvpgn/bnetd/t_friend# *); |
| 44 | extern int friend_set_accountcxx . . $ pvpgn/bnetd/friend_set_account(78b07ca30a5f2982).(t_friendcxx . . $ pvpgn/bnetd/t_friend# *, t_accountcxx . . $ pvpgn/bnetd/t_account# *); |
| 45 | extern char friend_get_mutualcxx . . $ pvpgn/bnetd/friend_get_mutual(1bd0d6ddce271d17).(t_friendcxx . . $ pvpgn/bnetd/t_friend# *); |
| 46 | extern int friend_set_mutualcxx . . $ pvpgn/bnetd/friend_set_mutual(213560cf9f8c5a35).(t_friendcxx . . $ pvpgn/bnetd/t_friend# *, int); |
| 47 | |
| 48 | extern int friendlist_unloadcxx . . $ pvpgn/bnetd/friendlist_unload(20db0232078327de).(t_listcxx . . $ pvpgn/t_list# *); |
| 49 | extern int friendlist_closecxx . . $ pvpgn/bnetd/friendlist_close(20db0232078327de).(t_listcxx . . $ pvpgn/t_list# *); |
| 50 | extern int friendlist_purgecxx . . $ pvpgn/bnetd/friendlist_purge(20db0232078327de).(t_listcxx . . $ pvpgn/t_list# *); |
| 51 | extern int friendlist_add_accountcxx . . $ pvpgn/bnetd/friendlist_add_account(7bf52703037b2a17).(t_listcxx . . $ pvpgn/t_list# *, t_accountcxx . . $ pvpgn/bnetd/t_account# *, int); |
| 52 | extern int friendlist_remove_friendcxx . . $ pvpgn/bnetd/friendlist_remove_friend(d0b94f001b0983df).(t_listcxx . . $ pvpgn/t_list# *, t_friendcxx . . $ pvpgn/bnetd/t_friend# *); |
| 53 | extern int friendlist_remove_accountcxx . . $ pvpgn/bnetd/friendlist_remove_account(64175c61b32b880).(t_listcxx . . $ pvpgn/t_list# *, t_accountcxx . . $ pvpgn/bnetd/t_account# *); |
| 54 | extern int friendlist_remove_usernamecxx . . $ pvpgn/bnetd/friendlist_remove_username(5c73f545432fb6b5).(t_listcxx . . $ pvpgn/t_list# *, const char *); |
| 55 | extern t_friendcxx . . $ pvpgn/bnetd/t_friend# * friendlist_find_accountcxx . . $ pvpgn/bnetd/friendlist_find_account(b551094904635f5).(t_listcxx . . $ pvpgn/t_list# *, t_accountcxx . . $ pvpgn/bnetd/t_account# *); |
| 56 | extern t_friendcxx . . $ pvpgn/bnetd/t_friend# * friendlist_find_usernamecxx . . $ pvpgn/bnetd/friendlist_find_username(2a7eae59f8eb384d).(t_listcxx . . $ pvpgn/t_list# *, const char *); |
| 57 | extern t_friendcxx . . $ pvpgn/bnetd/t_friend# * friendlist_find_uidcxx . . $ pvpgn/bnetd/friendlist_find_uid(9da8c1d9dfa566eb).(t_listcxx . . $ pvpgn/t_list# *, unsigned int); |
| 58 | |
| 59 | #endif |
| 60 | |
| 61 | } |
| 62 | |
| 63 | } |
| 64 | |
| 65 | #endif |