aboutsummaryrefslogtreecommitdiff
path: root/doc/chapters
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-02-06 06:12:33 +0000
committerChristian Grothoff <christian@grothoff.org>2009-02-06 06:12:33 +0000
commitb90c37b2f38d97952613e26627b3e8ebf9932112 (patch)
tree6f4cd17446da6dcf96ed53679e7c5b42e8c02869 /doc/chapters
parent8c8db696a0b7974b432100b8f4466f11163b66cc (diff)
downloadlibmicrohttpd-b90c37b2f38d97952613e26627b3e8ebf9932112.tar.gz
libmicrohttpd-b90c37b2f38d97952613e26627b3e8ebf9932112.zip
incompatible API change to allow 64-bit uploads and downloads on 32-bit systems
Diffstat (limited to 'doc/chapters')
-rw-r--r--doc/chapters/basicauthentication.inc2
-rw-r--r--doc/chapters/exploringrequests.inc2
-rw-r--r--doc/chapters/hellobrowser.inc2
-rw-r--r--doc/chapters/largerpost.inc4
-rw-r--r--doc/chapters/processingpost.inc4
-rw-r--r--doc/chapters/responseheaders.inc2
6 files changed, 8 insertions, 8 deletions
diff --git a/doc/chapters/basicauthentication.inc b/doc/chapters/basicauthentication.inc
index 6b7dcdc6..fc2e45ca 100644
--- a/doc/chapters/basicauthentication.inc
+++ b/doc/chapters/basicauthentication.inc
@@ -44,7 +44,7 @@ Not even the headers will be looked at on the first iteration.
44@verbatim 44@verbatim
45int answer_to_connection (void *cls, struct MHD_Connection *connection, 45int answer_to_connection (void *cls, struct MHD_Connection *connection,
46 const char *url, const char *method, const char *version, 46 const char *url, const char *method, const char *version,
47 const char *upload_data, unsigned int *upload_data_size, 47 const char *upload_data, size_t *upload_data_size,
48 void **con_cls) 48 void **con_cls)
49{ 49{
50 if (0 != strcmp(method, "GET")) return MHD_NO; 50 if (0 != strcmp(method, "GET")) return MHD_NO;
diff --git a/doc/chapters/exploringrequests.inc b/doc/chapters/exploringrequests.inc
index 11a169dd..d8790025 100644
--- a/doc/chapters/exploringrequests.inc
+++ b/doc/chapters/exploringrequests.inc
@@ -11,7 +11,7 @@ without much ado by the server.
11@verbatim 11@verbatim
12int answer_to_connection (void *cls, struct MHD_Connection *connection, const char *url, 12int answer_to_connection (void *cls, struct MHD_Connection *connection, const char *url,
13 const char *method, const char *version, const char *upload_data, 13 const char *method, const char *version, const char *upload_data,
14 unsigned int *upload_data_size, void **con_cls) 14 size_t *upload_data_size, void **con_cls)
15{ 15{
16 ... 16 ...
17 return MHD_NO; 17 return MHD_NO;
diff --git a/doc/chapters/hellobrowser.inc b/doc/chapters/hellobrowser.inc
index 611463e2..444fcd8e 100644
--- a/doc/chapters/hellobrowser.inc
+++ b/doc/chapters/hellobrowser.inc
@@ -37,7 +37,7 @@ Talking about the reply, it is defined as a string right after the function head
37@verbatim 37@verbatim
38int answer_to_connection (void *cls, struct MHD_Connection *connection, const char *url, 38int answer_to_connection (void *cls, struct MHD_Connection *connection, const char *url,
39 const char *method, const char *version, const char *upload_data, 39 const char *method, const char *version, const char *upload_data,
40 unsigned int *upload_data_size, void **con_cls) 40 size_t *upload_data_size, void **con_cls)
41{ 41{
42 const char *page = "<html><body>Hello, browser!</body></html>"; 42 const char *page = "<html><body>Hello, browser!</body></html>";
43@end verbatim 43@end verbatim
diff --git a/doc/chapters/largerpost.inc b/doc/chapters/largerpost.inc
index d05dd46d..f1f0e060 100644
--- a/doc/chapters/largerpost.inc
+++ b/doc/chapters/largerpost.inc
@@ -86,7 +86,7 @@ a postprocessor has been created and the post iterator is called at least once.
86@verbatim 86@verbatim
87int answer_to_connection (void *cls, struct MHD_Connection *connection, const char *url, 87int answer_to_connection (void *cls, struct MHD_Connection *connection, const char *url,
88 const char *method, const char *version, const char *upload_data, 88 const char *method, const char *version, const char *upload_data,
89 unsigned int *upload_data_size, void **con_cls) 89 size_t *upload_data_size, void **con_cls)
90{ 90{
91 if (NULL == *con_cls) 91 if (NULL == *con_cls)
92 { 92 {
@@ -195,7 +195,7 @@ the posted data has to be written to the correct file. That is why we store a fi
195@verbatim 195@verbatim
196int iterate_post (void *coninfo_cls, enum MHD_ValueKind kind, const char *key, 196int iterate_post (void *coninfo_cls, enum MHD_ValueKind kind, const char *key,
197 const char *filename, const char *content_type, 197 const char *filename, const char *content_type,
198 const char *transfer_encoding, const char *data, size_t off, size_t size) 198 const char *transfer_encoding, const char *data, uint64_t off, size_t size)
199{ 199{
200 struct connection_info_struct *con_info = (struct connection_info_struct*) coninfo_cls; 200 struct connection_info_struct *con_info = (struct connection_info_struct*) coninfo_cls;
201@end verbatim 201@end verbatim
diff --git a/doc/chapters/processingpost.inc b/doc/chapters/processingpost.inc
index 0677c7e8..f1085ce8 100644
--- a/doc/chapters/processingpost.inc
+++ b/doc/chapters/processingpost.inc
@@ -75,7 +75,7 @@ came in. But in this example, the name is assumed to fit entirely inside one sin
75@verbatim 75@verbatim
76int iterate_post (void *coninfo_cls, enum MHD_ValueKind kind, const char *key, 76int iterate_post (void *coninfo_cls, enum MHD_ValueKind kind, const char *key,
77 const char *filename, const char *content_type, 77 const char *filename, const char *content_type,
78 const char *transfer_encoding, const char *data, size_t off, size_t size) 78 const char *transfer_encoding, const char *data, uint64_t off, size_t size)
79{ 79{
80 struct connection_info_struct *con_info = (struct connection_info_struct*) coninfo_cls; 80 struct connection_info_struct *con_info = (struct connection_info_struct*) coninfo_cls;
81 81
@@ -150,7 +150,7 @@ iterations and other functions.
150@verbatim 150@verbatim
151int answer_to_connection (void *cls, struct MHD_Connection *connection, const char *url, 151int answer_to_connection (void *cls, struct MHD_Connection *connection, const char *url,
152 const char *method, const char *version, const char *upload_data, 152 const char *method, const char *version, const char *upload_data,
153 unsigned int *upload_data_size, void **con_cls) 153 size_t *upload_data_size, void **con_cls)
154{ 154{
155 if(NULL == *con_cls) 155 if(NULL == *con_cls)
156 { 156 {
diff --git a/doc/chapters/responseheaders.inc b/doc/chapters/responseheaders.inc
index 19d10142..3fb9ac15 100644
--- a/doc/chapters/responseheaders.inc
+++ b/doc/chapters/responseheaders.inc
@@ -25,7 +25,7 @@ Once again, we can base the new example on the @code{hellobrowser} program.
25 25
26int answer_to_connection (void *cls, struct MHD_Connection *connection, const char *url, 26int answer_to_connection (void *cls, struct MHD_Connection *connection, const char *url,
27 const char *method, const char *version, const char *upload_data, 27 const char *method, const char *version, const char *upload_data,
28 unsigned int *upload_data_size, void **con_cls) 28 size_t *upload_data_size, void **con_cls)
29{ 29{
30 unsigned char *buffer = NULL; 30 unsigned char *buffer = NULL;
31 struct MHD_Response *response; 31 struct MHD_Response *response;