| 1 | /* |
| 2 | * Copyright (C) 2000 Rob Crittenden ([email protected]) |
| 3 | * Copyright (C) 2002 Gianluigi Tiesi ([email protected]) |
| 4 | * Copyright (C) 2004 CreepLord ([email protected]) |
| 5 | * Copyright (C) 2008 Pelish ([email protected]) |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License |
| 9 | * as published by the Free Software Foundation; either version 2 |
| 10 | * of the License, or (at your option) any later version. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this program; if not, write to the Free Software |
| 19 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 20 | */ |
| 21 | #ifndef INCLUDED_AUTOUPDATE_TYPES |
| 22 | #define INCLUDED_AUTOUPDATE_TYPES |
| 23 | |
| 24 | #include "common/tag.h" |
| 25 | |
| 26 | namespace pvpgn |
| 27 | { |
| 28 | |
| 29 | namespace bnetd |
| 30 | { |
| 31 | |
| 32 | #ifdef AUTOUPDATE_INTERNAL_ACCESS |
| 33 | typedef struct |
| 34 | { |
| 35 | t_tag archtag; |
| 36 | t_tag clienttag; |
| 37 | char const * versiontag; |
| 38 | char const * updatefile; /* used for bnet *.mpq file or wol *.rtp file */ |
| 39 | char const * path; /* Used only for WOL FTP update */ |
| 40 | } t_autoupdate; |
| 41 | #endif |
| 42 | |
| 43 | } |
| 44 | |
| 45 | } |
| 46 | |
| 47 | #endif |
| 48 | |
| 49 | |
| 50 | /*****/ |
| 51 | #ifndef JUST_NEED_TYPES |
| 52 | #ifndef INCLUDED_AUTOUPDATE_PROTOS |
| 53 | #define INCLUDED_AUTOUPDATE_PROTOS |
| 54 | |
| 55 | namespace pvpgn |
| 56 | { |
| 57 | |
| 58 | namespace bnetd |
| 59 | { |
| 60 | |
| 61 | extern int autoupdate_load(char const * filename); |
| 62 | extern int autoupdate_unload(void); |
| 63 | extern char * autoupdate_check(t_tag archtag, t_tag clienttag, t_tag gamelang, char const * versiontag, char const * sku); |
| 64 | |
| 65 | } |
| 66 | |
| 67 | } |
| 68 | |
| 69 | #endif |
| 70 | #endif |