[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5619 - in libmicrohttpd/src: daemon include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5619 - in libmicrohttpd/src: daemon include |
Date: |
Sat, 8 Sep 2007 22:11:31 -0600 (MDT) |
Author: grothoff
Date: 2007-09-08 22:11:30 -0600 (Sat, 08 Sep 2007)
New Revision: 5619
Modified:
libmicrohttpd/src/daemon/daemontest_post.c
libmicrohttpd/src/include/microhttpd.h
Log:
better
Modified: libmicrohttpd/src/daemon/daemontest_post.c
===================================================================
--- libmicrohttpd/src/daemon/daemontest_post.c 2007-09-09 03:56:26 UTC (rev
5618)
+++ libmicrohttpd/src/daemon/daemontest_post.c 2007-09-09 04:11:30 UTC (rev
5619)
@@ -71,7 +71,11 @@
static int
post_iterator (void *cls,
enum MHD_ValueKind kind,
- const char *key, const char *value, size_t off, size_t size)
+ const char *key,
+ const char *filename,
+ const char *content_type,
+ const char *transfer_encoding,
+ const char *value, size_t off, size_t size)
{
int *eok = cls;
Modified: libmicrohttpd/src/include/microhttpd.h
===================================================================
--- libmicrohttpd/src/include/microhttpd.h 2007-09-09 03:56:26 UTC (rev
5618)
+++ libmicrohttpd/src/include/microhttpd.h 2007-09-09 04:11:30 UTC (rev
5619)
@@ -84,7 +84,7 @@
/**
* Current version of the library.
*/
-#define MHD_VERSION 0x00000005
+#define MHD_VERSION 0x00000004
/**
* MHD-internal return codes.
@@ -562,15 +562,19 @@
/**
* Iterator over key-value pairs where the value
* maybe made available in increments and/or may
- * not be zero-terminated.
+ * not be zero-terminated. Used for processing
+ * POST data.
*
* @param cls user-specified closure
* @param kind type of the value
- * @param 0-terminated key for the value
- * @param value pointer to size bytes of data at the
+ * @param key 0-terminated key for the value
+ * @param filename name of the uploaded file, NULL if not known
+ * @param content_type mime-type of the data, NULL if not known
+ * @param transfer_encoding encoding of the data, NULL if not known
+ * @param data pointer to size bytes of data at the
* specified offset
- * @param off offset of value in the overall data
- * @param size number of bytes in value available
+ * @param off offset of data in the overall value
+ * @param size number of bytes in data available
* @return MHD_YES to continue iterating,
* MHD_NO to abort the iteration
*/
@@ -578,7 +582,10 @@
(*MHD_IncrementalKeyValueIterator) (void *cls,
enum MHD_ValueKind kind,
const char *key,
- const char *value,
+ const char *filename,
+ const char *content_type,
+ const char *transfer_encoding,
+ const char *data,
size_t off, size_t size);
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5619 - in libmicrohttpd/src: daemon include,
gnunet <=