OpenMoHAA
0.82.1
Loading...
Searching...
No Matches
gserver.h
1
/******
2
gserver.h
3
GameSpy C Engine SDK
4
5
Copyright 1999-2001 GameSpy Industries, Inc
6
7
18002 Skypark Circle
8
Irvine, California 92614
9
949.798.4200 (Tel)
10
949.798.4299 (Fax)
11
devsupport@gamespy.com
12
13
******
14
15
Please see the GameSpy C Engine SDK documentation for more
16
information
17
18
******/
19
20
#include "goaceng.h"
21
22
#ifndef _GSERVER_H_
23
#define _GSERVER_H_
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
29
#if defined(applec) || defined(THINK_C) || defined(__MWERKS__) && !defined(__KATANA__) && !defined(__mips64)
30
#include "::hashtable.h"
31
#include "::nonport.h"
32
#else
33
#include "../hashtable.h"
34
#include "../nonport.h"
35
#endif
36
37
struct
GServerImplementation
38
{
39
goa_uint32 ip;
40
unsigned
short
port;
41
short
ping;
42
GQueryType querytype;
43
HashTable keyvals;
44
HashTable keylist;
45
46
};
47
48
typedef
struct
49
{
50
char
*key;
51
char
*value;
52
}
GKeyValuePair
;
53
/*
54
typedef struct
55
{
56
char *key, *value;
57
} GKeyValuePair;
58
*/
59
typedef
struct
60
{
61
KeyEnumFn EnumFn;
62
void
*instance;
63
HashTable keylist;
64
}
GEnumData
;
65
66
void
ServerFree(
void
*elem);
67
GServer ServerNew(goa_uint32 ip,
unsigned
short
port, GQueryType qtype, HashTable keylist);
68
GServer ServerNewData(
char
**fieldlist,
int
fieldcount,
char
*serverdata, GQueryType qtype, HashTable keylist);
69
void
ServerParseKeyVals(GServer server,
char
*keyvals);
70
int
GStringHash(
const
void
*elem,
int
numbuckets);
71
int
GCaseInsensitiveCompare(
const
void
*entry1,
const
void
*entry2);
72
void
GStringFree(
void
*elem);
73
#ifdef __cplusplus
74
}
75
#endif
76
77
#endif
GEnumData
Definition
gserver.h:60
GKeyValuePair
Definition
gserver.h:49
GServerImplementation
Definition
gserver.h:38
code
gamespy
gserver.h
Generated by
1.13.2