| 1 | /* |
| 2 | * Copyright (C) 2007 Pelish ([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 | #ifndef JUST_NEED_TYPES |
| 20 | |
| 21 | #ifndef INCLUDED_APIREGISTER_TYPES |
| 22 | #define INCLUDED_APIREGISTER_TYPEScxx . . $ `src/bnetd/handle_apireg.h:22:9`! |
| 23 | |
| 24 | #include "common/packet.h"cxx . . $ `<file>/src/common/packet.h`/ |
| 25 | #include "connection.h"cxx . . $ `<file>/src/bnetd/connection.h`/ |
| 26 | #endif |
| 27 | |
| 28 | namespace pvpgncxx . . $ pvpgn/ |
| 29 | { |
| 30 | |
| 31 | namespace bnetdcxx . . $ pvpgn/bnetd/ |
| 32 | { |
| 33 | |
| 34 | typedef struct apiregmembercxx . . $ pvpgn/bnetd/apiregmember# |
| 35 | #ifdef APIREGISTER_INTERNAL_ACCESScxx . . $ `src/bnetd/handle_apireg.cpp:19:9`! |
| 36 | { |
| 37 | t_connectioncxx . . $ pvpgn/bnetd/t_connection# * conncxx . . $ pvpgn/bnetd/apiregmember#conn.; |
| 38 | char const * emailcxx . . $ pvpgn/bnetd/apiregmember#email.; |
| 39 | char const * bdaycxx . . $ pvpgn/bnetd/apiregmember#bday.; |
| 40 | char const * bmonthcxx . . $ pvpgn/bnetd/apiregmember#bmonth.; |
| 41 | char const * byearcxx . . $ pvpgn/bnetd/apiregmember#byear.; |
| 42 | char const * langcodecxx . . $ pvpgn/bnetd/apiregmember#langcode.; |
| 43 | char const * skucxx . . $ pvpgn/bnetd/apiregmember#sku.; /* here are SKUs of all installed games */ |
| 44 | char const * vercxx . . $ pvpgn/bnetd/apiregmember#ver.; /* same as with SKU - versions of all installed games */ |
| 45 | char const * serialcxx . . $ pvpgn/bnetd/apiregmember#serial.; /* also serials of all installed games */ |
| 46 | char const * sysidcxx . . $ pvpgn/bnetd/apiregmember#sysid.; |
| 47 | char const * syscheckcxx . . $ pvpgn/bnetd/apiregmember#syscheck.; |
| 48 | char const * oldnickcxx . . $ pvpgn/bnetd/apiregmember#oldnick.; /* client send also all nicks that was registerd in the past */ |
| 49 | char const * oldpasscxx . . $ pvpgn/bnetd/apiregmember#oldpass.; /* and passwords for oldnicks */ |
| 50 | char const * newnickcxx . . $ pvpgn/bnetd/apiregmember#newnick.; |
| 51 | char const * newpasscxx . . $ pvpgn/bnetd/apiregmember#newpass.; |
| 52 | char const * newpass2cxx . . $ pvpgn/bnetd/apiregmember#newpass2.; |
| 53 | char const * parentemailcxx . . $ pvpgn/bnetd/apiregmember#parentemail.; |
| 54 | bool newslettercxx . . $ pvpgn/bnetd/apiregmember#newsletter.; /* do user want to sending news by e-mail? */ |
| 55 | bool shareinfocxx . . $ pvpgn/bnetd/apiregmember#shareinfo.; /* can EA/Westwood shared e-mail contact for sending news? :) */ |
| 56 | char const * requestcxx . . $ pvpgn/bnetd/apiregmember#request.; /* API Register request (knowed requests are defined below) */ |
| 57 | } |
| 58 | #endif |
| 59 | t_apiregmembercxx . . $ pvpgn/bnetd/t_apiregmember#; |
| 60 | |
| 61 | #ifndef INCLUDED_HANDLE_APIREG_PROTOS |
| 62 | #define INCLUDED_HANDLE_APIREG_PROTOScxx . . $ `src/bnetd/handle_apireg.h:62:9`! |
| 63 | |
| 64 | #define REQUEST_AGEVERIFYcxx . . $ `src/bnetd/handle_apireg.h:64:9`! "apireg_ageverify" |
| 65 | #define REQUEST_GETNICKcxx . . $ `src/bnetd/handle_apireg.h:65:9`! "apireg_getnick" |
| 66 | |
| 67 | extern int apireglist_createcxx . . $ pvpgn/bnetd/apireglist_create(b126dc7c1de90089).(void); |
| 68 | extern int apireglist_destroycxx . . $ pvpgn/bnetd/apireglist_destroy(b126dc7c1de90089).(void); |
| 69 | |
| 70 | extern int handle_apireg_packetcxx . . $ pvpgn/bnetd/handle_apireg_packet(8d07eb83d60bed1d).(t_connectioncxx . . $ pvpgn/bnetd/t_connection# * conn, t_packetcxx . . $ pvpgn/t_packet# const * const packet); |
| 71 | |
| 72 | } |
| 73 | |
| 74 | } |
| 75 | |
| 76 | #endif |
| 77 | #endif |