diff options
author | Christian Grothoff <christian@grothoff.org> | 2007-09-09 03:56:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2007-09-09 03:56:26 +0000 |
commit | 5176c75854736ad6514a76778cb81ba93bdfff71 (patch) | |
tree | 6ae65d96ff6397461870ffa9d0aa17cc7106dcf2 | |
parent | 21acb929f578eb8f876c235669b78d6b213ec315 (diff) | |
download | libmicrohttpd-5176c75854736ad6514a76778cb81ba93bdfff71.tar.gz libmicrohttpd-5176c75854736ad6514a76778cb81ba93bdfff71.zip |
formatting
-rw-r--r-- | src/daemon/connection.c | 2 | ||||
-rw-r--r-- | src/include/microhttpd.h | 35 |
2 files changed, 17 insertions, 20 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c index 476d1c89..48f93dfd 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c | |||
@@ -594,7 +594,7 @@ MHD_parse_connection_headers (struct MHD_Connection *connection) | |||
594 | 594 | ||
595 | if (connection->bodyReceived == 1) | 595 | if (connection->bodyReceived == 1) |
596 | abort (); | 596 | abort (); |
597 | colon = NULL; /* make gcc happy */ | 597 | colon = NULL; /* make gcc happy */ |
598 | last = NULL; | 598 | last = NULL; |
599 | while (NULL != (line = MHD_get_next_header_line (connection))) | 599 | while (NULL != (line = MHD_get_next_header_line (connection))) |
600 | { | 600 | { |
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index c77ea6b9..a7f846ca 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -488,7 +488,7 @@ typedef int | |||
488 | const char *version, | 488 | const char *version, |
489 | const char *upload_data, | 489 | const char *upload_data, |
490 | unsigned int *upload_data_size, | 490 | unsigned int *upload_data_size, |
491 | void ** con_cls); | 491 | void **con_cls); |
492 | 492 | ||
493 | /** | 493 | /** |
494 | * Signature of the callback used by MHD to notify the | 494 | * Signature of the callback used by MHD to notify the |
@@ -503,9 +503,9 @@ typedef int | |||
503 | */ | 503 | */ |
504 | typedef void | 504 | typedef void |
505 | (*MHD_RequestCompletedCallback) (void *cls, | 505 | (*MHD_RequestCompletedCallback) (void *cls, |
506 | struct MHD_Connection * connection, | 506 | struct MHD_Connection * connection, |
507 | void ** con_cls, | 507 | void **con_cls, |
508 | enum MHD_RequestTerminationCode toe); | 508 | enum MHD_RequestTerminationCode toe); |
509 | 509 | ||
510 | /** | 510 | /** |
511 | * Iterator over key-value pairs. This iterator | 511 | * Iterator over key-value pairs. This iterator |
@@ -576,11 +576,10 @@ typedef void (*MHD_ContentReaderFreeCallback) (void *cls); | |||
576 | */ | 576 | */ |
577 | typedef int | 577 | typedef int |
578 | (*MHD_IncrementalKeyValueIterator) (void *cls, | 578 | (*MHD_IncrementalKeyValueIterator) (void *cls, |
579 | enum MHD_ValueKind kind, | 579 | enum MHD_ValueKind kind, |
580 | const char *key, | 580 | const char *key, |
581 | const char *value, | 581 | const char *value, |
582 | size_t off, | 582 | size_t off, size_t size); |
583 | size_t size); | ||
584 | 583 | ||
585 | /** | 584 | /** |
586 | * Start a webserver on the given port. | 585 | * Start a webserver on the given port. |
@@ -823,11 +822,11 @@ const char *MHD_get_response_header (struct MHD_Response *response, | |||
823 | * @return NULL on error (out of memory, unsupported encoding), | 822 | * @return NULL on error (out of memory, unsupported encoding), |
824 | otherwise a PP handle | 823 | otherwise a PP handle |
825 | */ | 824 | */ |
826 | struct MHD_PostProcessor * | 825 | struct MHD_PostProcessor *MHD_create_post_processor (struct MHD_Connection |
827 | MHD_create_post_processor(struct MHD_Connection * connection, | 826 | *connection, |
828 | unsigned int buffer_size, | 827 | unsigned int buffer_size, |
829 | MHD_IncrementalKeyValueIterator ikvi, | 828 | MHD_IncrementalKeyValueIterator |
830 | void * cls); | 829 | ikvi, void *cls); |
831 | 830 | ||
832 | /** | 831 | /** |
833 | * Parse and process POST data. | 832 | * Parse and process POST data. |
@@ -844,15 +843,13 @@ MHD_create_post_processor(struct MHD_Connection * connection, | |||
844 | * (out-of-memory, iterator aborted, parse error) | 843 | * (out-of-memory, iterator aborted, parse error) |
845 | */ | 844 | */ |
846 | int | 845 | int |
847 | MHD_post_process(struct MHD_PostProcessor * pp, | 846 | MHD_post_process (struct MHD_PostProcessor *pp, |
848 | const char * post_data, | 847 | const char *post_data, unsigned int post_data_len); |
849 | unsigned int post_data_len); | ||
850 | 848 | ||
851 | /** | 849 | /** |
852 | * Release PostProcessor resources. | 850 | * Release PostProcessor resources. |
853 | */ | 851 | */ |
854 | void | 852 | void MHD_destroy_post_processor (struct MHD_PostProcessor *pp); |
855 | MHD_destroy_post_processor(struct MHD_PostProcessor * pp); | ||
856 | 853 | ||
857 | 854 | ||
858 | #if 0 /* keep Emacsens' auto-indent happy */ | 855 | #if 0 /* keep Emacsens' auto-indent happy */ |