| 1 |
sysadm |
1.1 |
/*
|
| 2 |
|
|
* Copyright (C) 2000 Rob Crittenden (rcrit@greyoak.com)
|
| 3 |
|
|
* Copyright (C) 2002 Gianluigi Tiesi (sherpya@netfarm.it)
|
| 4 |
|
|
* Copyright (C) 2004 CreepLord (creeplord@pvpgn.org)
|
| 5 |
|
|
*
|
| 6 |
|
|
* This program is free software; you can redistribute it and/or
|
| 7 |
|
|
* modify it under the terms of the GNU General Public License
|
| 8 |
|
|
* as published by the Free Software Foundation; either version 2
|
| 9 |
|
|
* of the License, or (at your option) any later version.
|
| 10 |
|
|
*
|
| 11 |
|
|
* This program is distributed in the hope that it will be useful,
|
| 12 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 13 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 14 |
|
|
* GNU General Public License for more details.
|
| 15 |
|
|
*
|
| 16 |
|
|
* You should have received a copy of the GNU General Public License
|
| 17 |
|
|
* along with this program; if not, write to the Free Software
|
| 18 |
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
| 19 |
|
|
*/
|
| 20 |
|
|
#ifndef INCLUDED_AUTOUPDATE_TYPES
|
| 21 |
|
|
#define INCLUDED_AUTOUPDATE_TYPES
|
| 22 |
|
|
|
| 23 |
|
|
#include "common/tag.h"
|
| 24 |
|
|
|
| 25 |
|
|
#ifdef AUTOUPDATE_INTERNAL_ACCESS
|
| 26 |
|
|
typedef struct
|
| 27 |
|
|
{
|
| 28 |
|
|
t_tag archtag;
|
| 29 |
|
|
t_tag clienttag;
|
| 30 |
|
|
char const * versiontag;
|
| 31 |
|
|
char const * mpqfile;
|
| 32 |
|
|
} t_autoupdate;
|
| 33 |
|
|
#endif
|
| 34 |
|
|
|
| 35 |
|
|
#endif
|
| 36 |
|
|
|
| 37 |
|
|
|
| 38 |
|
|
/*****/
|
| 39 |
|
|
#ifndef JUST_NEED_TYPES
|
| 40 |
|
|
#ifndef INCLUDED_AUTOUPDATE_PROTOS
|
| 41 |
|
|
#define INCLUDED_AUTOUPDATE_PROTOS
|
| 42 |
|
|
|
| 43 |
|
|
extern int autoupdate_load(char const * filename);
|
| 44 |
|
|
extern int autoupdate_unload(void);
|
| 45 |
|
|
extern char * autoupdate_check(t_tag archtag, t_tag clienttag, t_tag gamelang, char const * versiontag);
|
| 46 |
|
|
|
| 47 |
|
|
#endif
|
| 48 |
|
|
#endif
|