search for: response_head

Displaying 5 results from an estimated 5 matches for "response_head".

Did you mean: response_read
2007 Nov 15
0
2 commits - libswfdec-gtk/swfdec_gtk_loader.c player/swfplay.c
..._gtk_loader.c +++ b/libswfdec-gtk/swfdec_gtk_loader.c @@ -75,6 +75,22 @@ G_DEFINE_TYPE (SwfdecGtkLoader, swfdec_gtk_loader, SWFDEC_TYPE_FILE_LOADER) #ifdef HAVE_HTTP static void +swfdec_gtk_loader_set_size (SwfdecGtkLoader *gtk) +{ + const char *s = soup_message_get_header (gtk->message->response_headers, "Content-Length"); + unsigned long l; + char *end; + + if (s == NULL) + return; + + errno = 0; + l = strtoul (s, &end, 10); + if (errno == 0 && *end == 0 && l <= G_MAXLONG) + swfdec_loader_set_size (SWFDEC_LOADER (gtk), l); +} + +static void swfdec_...
2010 Apr 22
2
[PATCH 1/2] Try to load the loop module before running mkinitrd
mkinitrd needs to mount files using loop. loop might be a module, so try to load it first. --- lib/Sys/VirtV2V/GuestOS/RedHat.pm | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/lib/Sys/VirtV2V/GuestOS/RedHat.pm b/lib/Sys/VirtV2V/GuestOS/RedHat.pm index 0e469f5..08027b6 100644 --- a/lib/Sys/VirtV2V/GuestOS/RedHat.pm +++ b/lib/Sys/VirtV2V/GuestOS/RedHat.pm @@ -1114,6
2010 Jan 29
4
[FOR REVIEW ONLY] ESX work in progress
The following patches are where I'm currently at with ESX support. I can now import a domain from ESX along with its storage. Note that I'm not yet doing any conversion. In fact, I've never even tested past the import stage (I just had an exit in there). The meat is really in the 4th patch. The rename of MetadataReader->Connection was because the Connection is now really providing
2010 Feb 01
9
[ESX support] Working ESX conversion for RHEL 5
With this patchset I have successfully[1] imported a RHEL 5 guest directly from ESX with the following command line: virt-v2v -ic 'esx://yellow.marston/?no_verify=1' -op transfer RHEL5-64 Login details are stored in ~/.netrc Note that this is the only guest I've tested against. I haven't for example, checked that I haven't broken Xen imports. Matt [1] With the exception of
2007 Aug 20
0
Branch 'vivi' - 60 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c
...gt; +#include <stdlib.h> #include <string.h> #include "swfdec_gtk_loader.h" @@ -105,6 +107,22 @@ swfdec_gtk_loader_push (SoupMessage *msg } static void +swfdec_gtk_loader_headers (SoupMessage *msg, gpointer loader) +{ + const char *s = soup_message_get_header (msg->response_headers, "Content-Length"); + unsigned long l; + char *end; + + if (s == NULL) + return; + + errno = 0; + l = strtoul (s, &end, 10); + if (errno == 0 && *end == 0) + swfdec_loader_set_size (loader, l); +} + +static void swfdec_gtk_loader_finish (SoupMessage *msg, gpoin...