update to return void from the callback. (main): do not requeue existing
authorAlex Graveley <alex@ximian.com>
Thu, 15 Feb 2001 19:54:05 +0000 (19:54 +0000)
committeralex <alex>
Thu, 15 Feb 2001 19:54:05 +0000 (19:54 +0000)
commitb30a3c8ba3684e238bfd061275fba4cebdb27689
treec2bfafe02bdc6a3fe2bef9c62cbfe71745595ccd
parenta1cebf034f5304143bd61e5712cbf2c7a137d69c
update to return void from the callback. (main): do not requeue existing

2001-02-15  Alex Graveley  <alex@ximian.com>

* tests/stress-test.c (current_temp_cb): update to return void
from the callback.
(main): do not requeue existing messages when they have finished,
as they will be freed. instead create new SoupMessage objects.

* tests/simple-test.c (current_temp_cb): update to return void
from the callback.

* src/soup-core/soup-serializer.c (soup_serializer_start_element):
support creation of the request's SOAPAction header my taking the
namespace uri and name of the first element after starting the
body tag.

* src/soup-core/soup-queue.h: add SOUP_ERROR_HANDLER which will be
used by the upcoming handler/interceptor stuff to return an
application-level error to the message callback. Make
SoupCallbackFn return void.

* src/soup-core/soup-queue.c (soup_debug_print_headers): make public.
(soup_queue_write_async): attempt to write again if the first
write was okay and didn't block.

* src/soup-core/soup-uri.c (soup_debug_print_uri): make public.

* src/soup-core/soup-message.c (soup_message_issue_callback):
message callback now returns void, meaning that soup_queue_message()
takes ownership of the message and always frees it after calling
the callback (unless it was requeued from within the callback).

* src/soup-core/soup-headers.c (soup_headers_parse_request):
renamed from soup_parse_request_headers.
(soup_headers_parse_response): renamed from soup_parse_response_headers.
(soup_headers_parse): renamed from soup_parse_headers.
12 files changed:
ChangeLog
TODO
libsoup/soup-headers.c
libsoup/soup-headers.h
libsoup/soup-message.c
libsoup/soup-misc.h
libsoup/soup-private.h
libsoup/soup-queue.c
libsoup/soup-queue.h
libsoup/soup-server.c
libsoup/soup-ssl.c
libsoup/soup-uri.c