OpenMoHAA
0.82.0
Loading...
Searching...
No Matches
ghttpPost.h
1
/*
2
GameSpy GHTTP SDK
3
Dan "Mr. Pants" Schoenblum
4
dan@gamespy.com
5
6
Copyright 1999-2007 GameSpy Industries, Inc
7
8
devsupport@gamespy.com
9
*/
10
11
#ifndef _GHTTPPOST_H_
12
#define _GHTTPPOST_H_
13
14
#include "ghttp.h"
15
#include "ghttpBuffer.h"
16
#include "../darray.h"
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
22
typedef
enum
23
{
24
GHIPostingError,
25
GHIPostingDone,
26
GHIPostingPosting,
27
GHIPostingWaitForContinue
28
} GHIPostingResult;
29
30
typedef
struct
GHIPostingState
31
{
32
DArray states;
33
int
index;
34
int
bytesPosted;
35
int
totalBytes;
36
ghttpPostCallback callback;
37
void
* param;
38
GHTTPBool waitPostContinue;
// does DIME need to wait for continue?
39
GHTTPBool completed;
// prevent re-post in the event of a redirect.
40
}
GHIPostingState
;
41
42
GHTTPPost ghiNewPost
43
(
44
void
45
);
46
47
void
ghiPostSetAutoFree
48
(
49
GHTTPPost post,
50
GHTTPBool autoFree
51
);
52
53
GHTTPBool ghiIsPostAutoFree
54
(
55
GHTTPPost post
56
);
57
58
void
ghiFreePost
59
(
60
GHTTPPost post
61
);
62
63
GHTTPBool ghiPostAddString
64
(
65
GHTTPPost post,
66
const
char
* name,
67
const
char
*
string
68
);
69
70
GHTTPBool ghiPostAddFileFromDisk
71
(
72
GHTTPPost post,
73
const
char
* name,
74
const
char
* filename,
75
const
char
* reportFilename,
76
const
char
* contentType
77
);
78
79
GHTTPBool ghiPostAddFileFromMemory
80
(
81
GHTTPPost post,
82
const
char
* name,
83
const
char
* buffer,
84
int
bufferLen,
85
const
char
* reportFilename,
86
const
char
* contentType
87
);
88
89
GHTTPBool ghiPostAddXml
90
(
91
GHTTPPost post,
92
GSXmlStreamWriter xmlSoap
93
);
94
95
void
ghiPostSetCallback
96
(
97
GHTTPPost post,
98
ghttpPostCallback callback,
99
void
* param
100
);
101
102
const
char
* ghiPostGetContentType
103
(
104
struct
GHIConnection
* connection
105
);
106
107
GHTTPBool ghiPostInitState
108
(
109
struct
GHIConnection
* connection
110
);
111
112
void
ghiPostCleanupState
113
(
114
struct
GHIConnection
* connection
115
);
116
117
GHIPostingResult ghiPostDoPosting
118
(
119
struct
GHIConnection
* connection
120
);
121
122
#ifdef __cplusplus
123
}
124
#endif
125
126
#endif
GHIConnection
Definition
ghttpConnection.h:84
GHIPostingState
Definition
ghttpPost.h:31
code
gamespy
ghttp
ghttpPost.h
Generated by
1.13.2