/[LeafOK_CVS]/pvpgn-1.7.4/src/bnetd/versioncheck.h
ViewVC logotype

Contents of /pvpgn-1.7.4/src/bnetd/versioncheck.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Tue Jun 6 03:41:37 2006 UTC (19 years, 9 months ago) by sysadm
Branch: GNU, MAIN
CVS Tags: pvpgn_1-7-4-0_MIL, arelease, HEAD
Changes since 1.1: +0 -0 lines
Content type: text/x-chdr
no message

1 /*
2 * Copyright (C) 2000 Onlyer (onlyer@263.net)
3 * Copyright (C) 2001 Ross Combs (ross@bnetd.org)
4 * Copyright (C) 2002 Gianluigi Tiesi (sherpya@netfarm.it)
5 * Copyright (C) 2004 CreepLord (creeplord@pvpgn.org)
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_VERSIONCHECK_TYPES
22 #define INCLUDED_VERSIONCHECK_TYPES
23
24 #include "common/tag.h"
25
26 #ifdef VERSIONCHECK_INTERNAL_ACCESS
27 typedef struct
28 {
29 char const * exe;
30 int time;
31 int size;
32 } t_parsed_exeinfo;
33 #endif
34
35 #ifdef VERSIONCHECK_INTERNAL_ACCESS
36 typedef struct
37 {
38 char const * eqn;
39 char const * mpqfile;
40 t_tag archtag;
41 t_tag clienttag;
42 char const * versiontag;
43 t_parsed_exeinfo * parsed_exeinfo;
44 unsigned long versionid;
45 unsigned long gameversion;
46 unsigned long checksum;
47 } t_versioninfo;
48 #endif
49
50 typedef struct s_versioncheck
51 #ifdef VERSIONCHECK_INTERNAL_ACCESS
52 {
53 char const * eqn;
54 char const * mpqfile;
55 char * versiontag;
56 }
57 #endif
58 t_versioncheck;
59
60 #endif
61
62 #ifndef JUST_NEED_TYPES
63 #ifndef INCLUDED_VERSIONCHECK_PROTOS
64 #define INCLUDED_VERSIONCHECK_PROTOS
65
66 extern t_versioncheck * versioncheck_create(t_tag archtag, t_tag clienttag);
67 extern int versioncheck_destroy(t_versioncheck * vc);
68 extern char const * versioncheck_get_mpqfile(t_versioncheck const * vc);
69 extern char const * versioncheck_get_eqn(t_versioncheck const * vc);
70 extern int versioncheck_validate(t_versioncheck * vc, t_tag archtag, t_tag clienttag, char const * exeinfo, unsigned long versionid, unsigned long gameversion, unsigned long checksum);
71
72 extern int versioncheck_load(char const * filename);
73 extern int versioncheck_unload(void);
74
75 extern char const * versioncheck_get_versiontag(t_versioncheck const * vc);
76 extern int versioncheck_set_versiontag(t_versioncheck * vc, char const * versiontag);
77
78 #endif
79 #endif

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1