doom3-gpl
Doom 3 GPL source release
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
neo
curl
lib
formdata.h
Go to the documentation of this file.
1
#ifndef __FORMDATA_H
2
#define __FORMDATA_H
3
4
/***************************************************************************
5
* _ _ ____ _
6
* Project ___| | | | _ \| |
7
* / __| | | | |_) | |
8
* | (__| |_| | _ <| |___
9
* \___|\___/|_| \_\_____|
10
*
11
* Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
12
*
13
* This software is licensed as described in the file COPYING, which
14
* you should have received as part of this distribution. The terms
15
* are also available at http://curl.haxx.se/docs/copyright.html.
16
*
17
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
18
* copies of the Software, and permit persons to whom the Software is
19
* furnished to do so, under the terms of the COPYING file.
20
*
21
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
22
* KIND, either express or implied.
23
*
24
* $Id: formdata.h,v 1.19 2004/03/12 14:22:16 bagder Exp $
25
***************************************************************************/
26
/* plain and simple linked list with lines to send */
27
struct
FormData
{
28
struct
FormData
*
next
;
29
char
*
line
;
30
size_t
length
;
31
};
32
33
struct
Form
{
34
struct
FormData
*
data
;
/* current form line to send */
35
unsigned
int
sent
;
/* number of bytes of the current line that has already
36
been sent in a previous invoke */
37
};
38
39
/* used by FormAdd for temporary storage */
40
typedef
struct
FormInfo
{
41
char
*
name
;
42
size_t
namelength
;
43
char
*
value
;
44
size_t
contentslength
;
45
char
*
contenttype
;
46
long
flags
;
47
char
*
buffer
;
/* pointer to existing buffer used for file upload */
48
size_t
bufferlength
;
49
char
*
showfilename
;
/* The file name to show. If not set, the actual
50
file name will be used */
51
struct
curl_slist
*
contentheader
;
52
struct
FormInfo
*
more
;
53
}
FormInfo
;
54
55
int
Curl_FormInit
(
struct
Form
*form,
struct
FormData
*formdata );
56
57
CURLcode
58
Curl_getFormData
(
struct
FormData
**,
59
struct
curl_httppost
*post,
60
curl_off_t
*
size
);
61
62
/* fread() emulation */
63
size_t
Curl_FormReader
(
char
*
buffer
,
64
size_t
size
,
65
size_t
nitems,
66
FILE *mydata);
67
68
/* possible (old) fread() emulation that copies at most one line */
69
size_t
Curl_FormReadOneLine
(
char
*
buffer
,
70
size_t
size
,
71
size_t
nitems,
72
FILE *mydata);
73
74
char
*
Curl_FormBoundary
(
void
);
75
76
void
Curl_formclean
(
struct
FormData
*);
77
78
#endif
79
FormInfo::contenttype
char * contenttype
Definition:
formdata.h:45
FormData::length
size_t length
Definition:
formdata.h:30
Form::data
struct FormData * data
Definition:
formdata.h:34
curl_slist
Definition:
curl.h:1061
Curl_FormInit
int Curl_FormInit(struct Form *form, struct FormData *formdata)
Definition:
formdata.c:1281
FormData
Definition:
formdata.h:27
Curl_FormReadOneLine
size_t Curl_FormReadOneLine(char *buffer, size_t size, size_t nitems, FILE *mydata)
Definition:
formdata.c:1339
Curl_formclean
void Curl_formclean(struct FormData *)
Definition:
formdata.c:1060
FormInfo::name
char * name
Definition:
formdata.h:41
CURLcode
CURLcode
Definition:
curl.h:209
FormData::line
char * line
Definition:
formdata.h:29
curl_off_t
off_t curl_off_t
Definition:
curl.h:96
FormInfo::showfilename
char * showfilename
Definition:
formdata.h:49
curl_httppost
Definition:
curl.h:131
Curl_getFormData
CURLcode Curl_getFormData(struct FormData **, struct curl_httppost *post, curl_off_t *size)
Definition:
formdata.c:1101
FormInfo::contentheader
struct curl_slist * contentheader
Definition:
formdata.h:51
Form::sent
unsigned int sent
Definition:
formdata.h:35
FormInfo
struct FormInfo FormInfo
Curl_FormBoundary
char * Curl_FormBoundary(void)
Definition:
formdata.c:1031
FormInfo::flags
long flags
Definition:
formdata.h:46
FormInfo::buffer
char * buffer
Definition:
formdata.h:47
buffer
GLuint buffer
Definition:
glext.h:3108
Curl_FormReader
size_t Curl_FormReader(char *buffer, size_t size, size_t nitems, FILE *mydata)
Definition:
formdata.c:1293
FormInfo::value
char * value
Definition:
formdata.h:43
size
GLsizeiptr size
Definition:
glext.h:3112
FormInfo::namelength
size_t namelength
Definition:
formdata.h:42
Form
Definition:
formdata.h:33
FormInfo::bufferlength
size_t bufferlength
Definition:
formdata.h:48
FormData::next
struct FormData * next
Definition:
formdata.h:28
FormInfo::contentslength
size_t contentslength
Definition:
formdata.h:44
FormInfo
Definition:
formdata.h:40
FormInfo::more
struct FormInfo * more
Definition:
formdata.h:52
This page is maintained by
Wladimir van der Laan
. Generated on Mon Nov 17 2014 12:23:15 for doom3-gpl by
1.8.6
.