| 1 | /* |
| 2 | * Copyright (C) 2001 faster ([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_CHARLOCK_H |
| 19 | #define INCLUDED_CHARLOCK_Hcxx . . $ `src/d2dbs/charlock.h:19:9`! |
| 20 | |
| 21 | #define DEFAULT_HASHTBL_LENcxx . . $ `src/d2dbs/charlock.h:21:9`! 65000 |
| 22 | |
| 23 | #include "common/field_sizes.h"cxx . . $ `<file>/src/common/field_sizes.h`/ |
| 24 | |
| 25 | namespace pvpgncxx . . $ pvpgn/ |
| 26 | { |
| 27 | |
| 28 | namespace d2dbscxx . . $ pvpgn/d2dbs/ |
| 29 | { |
| 30 | |
| 31 | /* char locking info */ |
| 32 | typedef struct raw_charlockinfocxx . . $ pvpgn/d2dbs/raw_charlockinfo# { |
| 33 | unsigned char charnamecxx . . $ pvpgn/d2dbs/raw_charlockinfo#charname.[MAX_CHARNAME_LENcxx . . $ MAX_CHARNAME_LEN.]; |
| 34 | unsigned char realmnamecxx . . $ pvpgn/d2dbs/raw_charlockinfo#realmname.[MAX_REALMNAME_LENcxx . . $ MAX_REALMNAME_LEN.]; |
| 35 | unsigned int gsidcxx . . $ pvpgn/d2dbs/raw_charlockinfo#gsid.; |
| 36 | struct raw_charlockinfocxx . . $ pvpgn/d2dbs/raw_charlockinfo# *nextcxx . . $ pvpgn/d2dbs/raw_charlockinfo#next.; |
| 37 | struct raw_charlockinfocxx . . $ pvpgn/d2dbs/raw_charlockinfo# *gsqnextcxx . . $ pvpgn/d2dbs/raw_charlockinfo#gsqnext.; |
| 38 | struct raw_charlockinfocxx . . $ pvpgn/d2dbs/raw_charlockinfo# *gsqprevcxx . . $ pvpgn/d2dbs/raw_charlockinfo#gsqprev.; |
| 39 | } t_charlockinfocxx . . $ pvpgn/d2dbs/t_charlockinfo#; |
| 40 | |
| 41 | |
| 42 | /* functions */ |
| 43 | int cl_initcxx . . $ pvpgn/d2dbs/cl_init(21cb2064190e2a90).(unsigned int tbllen, unsigned int maxgs); |
| 44 | int cl_destroycxx . . $ pvpgn/d2dbs/cl_destroy(b126dc7c1de90089).(void); |
| 45 | int cl_query_charlock_statuscxx . . $ pvpgn/d2dbs/cl_query_charlock_status(4831365868175e25).(unsigned char *charname, |
| 46 | unsigned char *realmnamei, unsigned int *gsid); |
| 47 | int cl_lock_charcxx . . $ pvpgn/d2dbs/cl_lock_char(35b1a3e46acdbfa7).(unsigned char *charname, |
| 48 | unsigned char *realmname, unsigned int gsid); |
| 49 | int cl_unlock_charcxx . . $ pvpgn/d2dbs/cl_unlock_char(35b1a3e46acdbfa7).(unsigned char *charname, unsigned char *realmname, unsigned int gsid); |
| 50 | int cl_unlock_all_char_by_gsidcxx . . $ pvpgn/d2dbs/cl_unlock_all_char_by_gsid(4c679297bf94b9eb).(unsigned int gsid); |
| 51 | |
| 52 | } |
| 53 | |
| 54 | } |
| 55 | |
| 56 | #endif /* INCLUDED_CHARLOCK_H */ |