OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
gpiInfo.h
1/*
2gpiInfo.h
3GameSpy Presence SDK
4Dan "Mr. Pants" Schoenblum
5
6Copyright 1999-2007 GameSpy Industries, Inc
7
8devsupport@gamespy.com
9
10***********************************************************************
11Please see the GameSpy Presence SDK documentation for more information
12**********************************************************************/
13
14#ifndef _GPIINFO_H_
15#define _GPIINFO_H_
16
17//INCLUDES
19#include "gpi.h"
20
21//TYPES
23// Profile info cache.
25typedef struct
26{
27 char * nick;
28 char * uniquenick;
29 char * email;
30 char * firstname;
31 char * lastname;
32 char * homepage;
33 int icquin;
34 char zipcode[GP_ZIPCODE_LEN];
35 char countrycode[GP_COUNTRYCODE_LEN];
36 float longitude; // negative is west, positive is east. (0, 0) means unknown.
37 float latitude; // negative is south, positive is north. (0, 0) means unknown.
38 char place[GP_PLACE_LEN]; // e.g., "USA|California|Irvine", "South Korea|Seoul", "Turkey"
39 int birthday;
40 int birthmonth;
41 int birthyear;
42 GPEnum sex;
43 int publicmask;
44 char * aimname;
45 int pic;
46 int occupationid;
47 int industryid;
48 int incomeid;
49 int marriedid;
50 int childcount;
51 int interests1;
52 int ownership1;
53 int conntypeid;
55
56//FUNCTIONS
58GPResult
59gpiSetInfoi(
60 GPConnection * connection,
61 GPEnum info,
62 int value
63);
64
65GPResult
66gpiSetInfos(
67 GPConnection * connection,
68 GPEnum info,
69 const char * value
70);
71
72GPResult
73gpiSetInfod(
74 GPConnection * connection,
75 GPEnum info,
76 int day,
77 int month,
78 int year
79);
80
81GPResult
82gpiSetInfoMask(
83 GPConnection * connection,
84 GPEnum mask
85);
86
87void
88gpiInfoCacheToArg(
89 const GPIInfoCache * cache,
91);
92
93GPResult
94gpiGetInfo(
95 GPConnection * connection,
96 GPProfile profile,
97 GPEnum checkCache,
98 GPEnum blocking,
99 GPCallback callback,
100 void * param
101);
102
103GPResult
104gpiGetInfoNoWait(
105 GPConnection * connection,
106 GPProfile profile,
108);
109
110GPResult
111gpiProcessGetInfo(
112 GPConnection * connection,
113 GPIOperation * operation,
114 const char * input
115);
116
117GPResult
118gpiSendGetInfo(
119 GPConnection * connection,
120 int profileid,
121 int operationid
122);
123
124GPResult
125gpiAddLocalInfo(
126 GPConnection * connection,
127 GPIBuffer * buffer
128);
129
130typedef struct GPIProfile *pGPIProfile;
131
132GPIBool
133gpiSetInfoCache(
134 GPConnection * connection,
135 pGPIProfile profile,
136 const GPIInfoCache * cache
137);
138
139void
140gpiFreeInfoCache(
141 pGPIProfile profile
142);
143
144#endif
Definition gp.h:537
Definition gpiBuffer.h:26
Definition gpiInfo.h:26
Definition gpiProfile.h:67