/* rygel-http-post-test.c generated by valac 0.17.4.16-52707, the Vala compiler
 * generated from rygel-http-post-test.vala, do not modify */

/*
 * Copyright (C) 2010 Nokia Corporation.
 *
 * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
 *                               <zeeshan.ali@nokia.com>
 *
 * This file is part of Rygel.
 *
 * Rygel is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Rygel is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */

#include <glib.h>
#include <glib-object.h>
#include <libsoup/soup.h>
#include <string.h>
#include <gee.h>
#include <stdlib.h>
#include <libgupnp/gupnp.h>
#include <gio/gio.h>
#include <glib/gstdio.h>
#include <libgssdp/gssdp.h>
#include <glib/gi18n-lib.h>
#include <gobject/gvaluecollector.h>


#define RYGEL_TYPE_CLIENT_HACKS (rygel_client_hacks_get_type ())
#define RYGEL_CLIENT_HACKS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_CLIENT_HACKS, RygelClientHacks))
#define RYGEL_CLIENT_HACKS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_CLIENT_HACKS, RygelClientHacksClass))
#define RYGEL_IS_CLIENT_HACKS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_CLIENT_HACKS))
#define RYGEL_IS_CLIENT_HACKS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_CLIENT_HACKS))
#define RYGEL_CLIENT_HACKS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_CLIENT_HACKS, RygelClientHacksClass))

typedef struct _RygelClientHacks RygelClientHacks;
typedef struct _RygelClientHacksClass RygelClientHacksClass;
typedef struct _RygelClientHacksPrivate RygelClientHacksPrivate;

#define RYGEL_TYPE_MEDIA_OBJECT (rygel_media_object_get_type ())
#define RYGEL_MEDIA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_MEDIA_OBJECT, RygelMediaObject))
#define RYGEL_MEDIA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_MEDIA_OBJECT, RygelMediaObjectClass))
#define RYGEL_IS_MEDIA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_MEDIA_OBJECT))
#define RYGEL_IS_MEDIA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_MEDIA_OBJECT))
#define RYGEL_MEDIA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_MEDIA_OBJECT, RygelMediaObjectClass))

typedef struct _RygelMediaObject RygelMediaObject;
typedef struct _RygelMediaObjectClass RygelMediaObjectClass;

#define RYGEL_TYPE_MEDIA_ITEM (rygel_media_item_get_type ())
#define RYGEL_MEDIA_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_MEDIA_ITEM, RygelMediaItem))
#define RYGEL_MEDIA_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_MEDIA_ITEM, RygelMediaItemClass))
#define RYGEL_IS_MEDIA_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_MEDIA_ITEM))
#define RYGEL_IS_MEDIA_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_MEDIA_ITEM))
#define RYGEL_MEDIA_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_MEDIA_ITEM, RygelMediaItemClass))

typedef struct _RygelMediaItem RygelMediaItem;
typedef struct _RygelMediaItemClass RygelMediaItemClass;
typedef struct _RygelParamSpecClientHacks RygelParamSpecClientHacks;

#define RYGEL_TYPE_TEST_REQUEST_FACTORY (rygel_test_request_factory_get_type ())
#define RYGEL_TEST_REQUEST_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_TEST_REQUEST_FACTORY, RygelTestRequestFactory))
#define RYGEL_TEST_REQUEST_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_TEST_REQUEST_FACTORY, RygelTestRequestFactoryClass))
#define RYGEL_IS_TEST_REQUEST_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_TEST_REQUEST_FACTORY))
#define RYGEL_IS_TEST_REQUEST_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_TEST_REQUEST_FACTORY))
#define RYGEL_TEST_REQUEST_FACTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_TEST_REQUEST_FACTORY, RygelTestRequestFactoryClass))

typedef struct _RygelTestRequestFactory RygelTestRequestFactory;
typedef struct _RygelTestRequestFactoryClass RygelTestRequestFactoryClass;
typedef struct _RygelTestRequestFactoryPrivate RygelTestRequestFactoryPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) ((var == NULL) ? NULL : (var = (g_free (var), NULL)))

#define RYGEL_TYPE_HTTP_SERVER (rygel_http_server_get_type ())
#define RYGEL_HTTP_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_HTTP_SERVER, RygelHTTPServer))
#define RYGEL_HTTP_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_HTTP_SERVER, RygelHTTPServerClass))
#define RYGEL_IS_HTTP_SERVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_HTTP_SERVER))
#define RYGEL_IS_HTTP_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_HTTP_SERVER))
#define RYGEL_HTTP_SERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_HTTP_SERVER, RygelHTTPServerClass))

typedef struct _RygelHTTPServer RygelHTTPServer;
typedef struct _RygelHTTPServerClass RygelHTTPServerClass;

#define RYGEL_TYPE_HTTP_REQUEST (rygel_http_request_get_type ())
#define RYGEL_HTTP_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_HTTP_REQUEST, RygelHTTPRequest))
#define RYGEL_HTTP_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_HTTP_REQUEST, RygelHTTPRequestClass))
#define RYGEL_IS_HTTP_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_HTTP_REQUEST))
#define RYGEL_IS_HTTP_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_HTTP_REQUEST))
#define RYGEL_HTTP_REQUEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_HTTP_REQUEST, RygelHTTPRequestClass))

typedef struct _RygelHTTPRequest RygelHTTPRequest;
typedef struct _RygelHTTPRequestClass RygelHTTPRequestClass;

#define RYGEL_TYPE_HTTP_POST (rygel_http_post_get_type ())
#define RYGEL_HTTP_POST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_HTTP_POST, RygelHTTPPost))
#define RYGEL_HTTP_POST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_HTTP_POST, RygelHTTPPostClass))
#define RYGEL_IS_HTTP_POST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_HTTP_POST))
#define RYGEL_IS_HTTP_POST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_HTTP_POST))
#define RYGEL_HTTP_POST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_HTTP_POST, RygelHTTPPostClass))

typedef struct _RygelHTTPPost RygelHTTPPost;
typedef struct _RygelHTTPPostClass RygelHTTPPostClass;
typedef struct _RygelParamSpecTestRequestFactory RygelParamSpecTestRequestFactory;

#define RYGEL_TYPE_HTTP_POST_TEST (rygel_http_post_test_get_type ())
#define RYGEL_HTTP_POST_TEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_HTTP_POST_TEST, RygelHTTPPostTest))
#define RYGEL_HTTP_POST_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_HTTP_POST_TEST, RygelHTTPPostTestClass))
#define RYGEL_IS_HTTP_POST_TEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_HTTP_POST_TEST))
#define RYGEL_IS_HTTP_POST_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_HTTP_POST_TEST))
#define RYGEL_HTTP_POST_TEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_HTTP_POST_TEST, RygelHTTPPostTestClass))

typedef struct _RygelHTTPPostTest RygelHTTPPostTest;
typedef struct _RygelHTTPPostTestClass RygelHTTPPostTestClass;
typedef struct _RygelHTTPPostTestPrivate RygelHTTPPostTestPrivate;

#define RYGEL_TYPE_HTTP_CLIENT (rygel_http_client_get_type ())
#define RYGEL_HTTP_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_HTTP_CLIENT, RygelHTTPClient))
#define RYGEL_HTTP_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_HTTP_CLIENT, RygelHTTPClientClass))
#define RYGEL_IS_HTTP_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_HTTP_CLIENT))
#define RYGEL_IS_HTTP_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_HTTP_CLIENT))
#define RYGEL_HTTP_CLIENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_HTTP_CLIENT, RygelHTTPClientClass))

typedef struct _RygelHTTPClient RygelHTTPClient;
typedef struct _RygelHTTPClientClass RygelHTTPClientClass;
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _rygel_test_request_factory_unref0(var) ((var == NULL) ? NULL : (var = (rygel_test_request_factory_unref (var), NULL)))
typedef struct _RygelHTTPServerPrivate RygelHTTPServerPrivate;

#define RYGEL_TYPE_MEDIA_CONTAINER (rygel_media_container_get_type ())
#define RYGEL_MEDIA_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_MEDIA_CONTAINER, RygelMediaContainer))
#define RYGEL_MEDIA_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_MEDIA_CONTAINER, RygelMediaContainerClass))
#define RYGEL_IS_MEDIA_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_MEDIA_CONTAINER))
#define RYGEL_IS_MEDIA_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_MEDIA_CONTAINER))
#define RYGEL_MEDIA_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_MEDIA_CONTAINER, RygelMediaContainerClass))

typedef struct _RygelMediaContainer RygelMediaContainer;
typedef struct _RygelMediaContainerClass RygelMediaContainerClass;

#define RYGEL_TYPE_STATE_MACHINE (rygel_state_machine_get_type ())
#define RYGEL_STATE_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_STATE_MACHINE, RygelStateMachine))
#define RYGEL_IS_STATE_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_STATE_MACHINE))
#define RYGEL_STATE_MACHINE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), RYGEL_TYPE_STATE_MACHINE, RygelStateMachineIface))

typedef struct _RygelStateMachine RygelStateMachine;
typedef struct _RygelStateMachineIface RygelStateMachineIface;
typedef struct _RygelHTTPClientPrivate RygelHTTPClientPrivate;
typedef struct _RygelHttpPostTestHandleClientMessageData RygelHttpPostTestHandleClientMessageData;
typedef struct _RygelMediaObjectPrivate RygelMediaObjectPrivate;
typedef struct _RygelMediaContainerPrivate RygelMediaContainerPrivate;
typedef struct _RygelMediaItemPrivate RygelMediaItemPrivate;
typedef struct _RygelHttpPostTestCheckResultData RygelHttpPostTestCheckResultData;

#define RYGEL_TYPE_HTTP_ITEM_URI (rygel_http_item_uri_get_type ())
#define RYGEL_HTTP_ITEM_URI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_HTTP_ITEM_URI, RygelHTTPItemURI))
#define RYGEL_HTTP_ITEM_URI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_HTTP_ITEM_URI, RygelHTTPItemURIClass))
#define RYGEL_IS_HTTP_ITEM_URI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_HTTP_ITEM_URI))
#define RYGEL_IS_HTTP_ITEM_URI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_HTTP_ITEM_URI))
#define RYGEL_HTTP_ITEM_URI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_HTTP_ITEM_URI, RygelHTTPItemURIClass))

typedef struct _RygelHTTPItemURI RygelHTTPItemURI;
typedef struct _RygelHTTPItemURIClass RygelHTTPItemURIClass;

#define RYGEL_TYPE_TRANSCODER (rygel_transcoder_get_type ())
#define RYGEL_TRANSCODER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_TRANSCODER, RygelTranscoder))
#define RYGEL_TRANSCODER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_TRANSCODER, RygelTranscoderClass))
#define RYGEL_IS_TRANSCODER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_TRANSCODER))
#define RYGEL_IS_TRANSCODER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_TRANSCODER))
#define RYGEL_TRANSCODER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_TRANSCODER, RygelTranscoderClass))

typedef struct _RygelTranscoder RygelTranscoder;
typedef struct _RygelTranscoderClass RygelTranscoderClass;
typedef struct _Block1Data Block1Data;
typedef struct _RygelHttpClientRunData RygelHttpClientRunData;
typedef struct _Block2Data Block2Data;
typedef struct _RygelMediaContainerFindObjectData RygelMediaContainerFindObjectData;
typedef struct _Block3Data Block3Data;
typedef struct _RygelMediaItemGetWritableData RygelMediaItemGetWritableData;

#define RYGEL_TYPE_HTTP_RESPONSE (rygel_http_response_get_type ())
#define RYGEL_HTTP_RESPONSE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_HTTP_RESPONSE, RygelHTTPResponse))
#define RYGEL_HTTP_RESPONSE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_HTTP_RESPONSE, RygelHTTPResponseClass))
#define RYGEL_IS_HTTP_RESPONSE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_HTTP_RESPONSE))
#define RYGEL_IS_HTTP_RESPONSE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_HTTP_RESPONSE))
#define RYGEL_HTTP_RESPONSE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_HTTP_RESPONSE, RygelHTTPResponseClass))

typedef struct _RygelHTTPResponse RygelHTTPResponse;
typedef struct _RygelHTTPResponseClass RygelHTTPResponseClass;
typedef struct _RygelHTTPResponsePrivate RygelHTTPResponsePrivate;
typedef struct _RygelHTTPRequestPrivate RygelHTTPRequestPrivate;
typedef struct _Block4Data Block4Data;
typedef struct _RygelHttpResponseRunData RygelHttpResponseRunData;

#define RYGEL_TYPE_ITEM_REMOVAL_QUEUE (rygel_item_removal_queue_get_type ())
#define RYGEL_ITEM_REMOVAL_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_ITEM_REMOVAL_QUEUE, RygelItemRemovalQueue))
#define RYGEL_ITEM_REMOVAL_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_ITEM_REMOVAL_QUEUE, RygelItemRemovalQueueClass))
#define RYGEL_IS_ITEM_REMOVAL_QUEUE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_ITEM_REMOVAL_QUEUE))
#define RYGEL_IS_ITEM_REMOVAL_QUEUE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_ITEM_REMOVAL_QUEUE))
#define RYGEL_ITEM_REMOVAL_QUEUE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_ITEM_REMOVAL_QUEUE, RygelItemRemovalQueueClass))

typedef struct _RygelItemRemovalQueue RygelItemRemovalQueue;
typedef struct _RygelItemRemovalQueueClass RygelItemRemovalQueueClass;
typedef struct _RygelItemRemovalQueuePrivate RygelItemRemovalQueuePrivate;
typedef struct _RygelItemRemovalQueueRemoveNowData RygelItemRemovalQueueRemoveNowData;

#define RYGEL_TYPE_THUMBNAIL (rygel_thumbnail_get_type ())
#define RYGEL_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_THUMBNAIL, RygelThumbnail))
#define RYGEL_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_THUMBNAIL, RygelThumbnailClass))
#define RYGEL_IS_THUMBNAIL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_THUMBNAIL))
#define RYGEL_IS_THUMBNAIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_THUMBNAIL))
#define RYGEL_THUMBNAIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_THUMBNAIL, RygelThumbnailClass))

typedef struct _RygelThumbnail RygelThumbnail;
typedef struct _RygelThumbnailClass RygelThumbnailClass;
typedef struct _RygelThumbnailPrivate RygelThumbnailPrivate;

#define RYGEL_TYPE_VISUAL_ITEM (rygel_visual_item_get_type ())
#define RYGEL_VISUAL_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_VISUAL_ITEM, RygelVisualItem))
#define RYGEL_VISUAL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_VISUAL_ITEM, RygelVisualItemClass))
#define RYGEL_IS_VISUAL_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_VISUAL_ITEM))
#define RYGEL_IS_VISUAL_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_VISUAL_ITEM))
#define RYGEL_VISUAL_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_VISUAL_ITEM, RygelVisualItemClass))

typedef struct _RygelVisualItem RygelVisualItem;
typedef struct _RygelVisualItemClass RygelVisualItemClass;
typedef struct _RygelVisualItemPrivate RygelVisualItemPrivate;

#define RYGEL_TYPE_SUBTITLE (rygel_subtitle_get_type ())
#define RYGEL_SUBTITLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_SUBTITLE, RygelSubtitle))
#define RYGEL_SUBTITLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_SUBTITLE, RygelSubtitleClass))
#define RYGEL_IS_SUBTITLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_SUBTITLE))
#define RYGEL_IS_SUBTITLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_SUBTITLE))
#define RYGEL_SUBTITLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_SUBTITLE, RygelSubtitleClass))

typedef struct _RygelSubtitle RygelSubtitle;
typedef struct _RygelSubtitleClass RygelSubtitleClass;
typedef struct _RygelSubtitlePrivate RygelSubtitlePrivate;

#define RYGEL_TYPE_VIDEO_ITEM (rygel_video_item_get_type ())
#define RYGEL_VIDEO_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_VIDEO_ITEM, RygelVideoItem))
#define RYGEL_VIDEO_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_VIDEO_ITEM, RygelVideoItemClass))
#define RYGEL_IS_VIDEO_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_VIDEO_ITEM))
#define RYGEL_IS_VIDEO_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_VIDEO_ITEM))
#define RYGEL_VIDEO_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_VIDEO_ITEM, RygelVideoItemClass))

typedef struct _RygelVideoItem RygelVideoItem;
typedef struct _RygelVideoItemClass RygelVideoItemClass;
typedef struct _RygelVideoItemPrivate RygelVideoItemPrivate;

#define RYGEL_TYPE_MUSIC_ITEM (rygel_music_item_get_type ())
#define RYGEL_MUSIC_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_MUSIC_ITEM, RygelMusicItem))
#define RYGEL_MUSIC_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_MUSIC_ITEM, RygelMusicItemClass))
#define RYGEL_IS_MUSIC_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_MUSIC_ITEM))
#define RYGEL_IS_MUSIC_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_MUSIC_ITEM))
#define RYGEL_MUSIC_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_MUSIC_ITEM, RygelMusicItemClass))

typedef struct _RygelMusicItem RygelMusicItem;
typedef struct _RygelMusicItemClass RygelMusicItemClass;
typedef struct _RygelMusicItemPrivate RygelMusicItemPrivate;
typedef struct _RygelTranscoderPrivate RygelTranscoderPrivate;
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

typedef enum  {
	RYGEL_TEST_ERROR_SKIP = 77,
	RYGEL_TEST_ERROR_TIMEOUT
} RygelTestError;
#define RYGEL_TEST_ERROR rygel_test_error_quark ()
typedef enum  {
	RYGEL_CLIENT_HACKS_ERROR_NA
} RygelClientHacksError;
#define RYGEL_CLIENT_HACKS_ERROR rygel_client_hacks_error_quark ()
struct _RygelClientHacks {
	GTypeInstance parent_instance;
	volatile int ref_count;
	RygelClientHacksPrivate * priv;
};

struct _RygelClientHacksClass {
	GTypeClass parent_class;
	void (*finalize) (RygelClientHacks *self);
};

struct _RygelParamSpecClientHacks {
	GParamSpec parent_instance;
};

struct _RygelTestRequestFactory {
	GTypeInstance parent_instance;
	volatile int ref_count;
	RygelTestRequestFactoryPrivate * priv;
	SoupMessage* msg;
	SoupKnownStatusCode* expected_code;
	gboolean cancel;
};

struct _RygelTestRequestFactoryClass {
	GTypeClass parent_class;
	void (*finalize) (RygelTestRequestFactory *self);
};

struct _RygelParamSpecTestRequestFactory {
	GParamSpec parent_instance;
};

struct _RygelHTTPPostTest {
	GObject parent_instance;
	RygelHTTPPostTestPrivate * priv;
	RygelHTTPServer* server;
	RygelHTTPClient* client;
};

struct _RygelHTTPPostTestClass {
	GObjectClass parent_class;
	void (*run) (RygelHTTPPostTest* self, GError** error);
};

struct _RygelHTTPPostTestPrivate {
	gboolean server_done;
	gboolean client_done;
	gboolean ready;
	GMainLoop* main_loop;
	GError* error;
	GeeArrayList* requests;
	RygelTestRequestFactory* current_request;
};

struct _RygelHTTPServer {
	GObject parent_instance;
	RygelHTTPServerPrivate * priv;
	RygelMediaContainer* root_container;
	GUPnPContext* context;
};

struct _RygelHTTPServerClass {
	GObjectClass parent_class;
};

struct _RygelStateMachineIface {
	GTypeInterface parent_iface;
	void (*run) (RygelStateMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*run_finish) (RygelStateMachine* self, GAsyncResult* _res_);
	GCancellable* (*get_cancellable) (RygelStateMachine* self);
	void (*set_cancellable) (RygelStateMachine* self, GCancellable* value);
};

struct _RygelHTTPClient {
	GObject parent_instance;
	RygelHTTPClientPrivate * priv;
	guint8* content;
	gint content_length1;
	GUPnPContext* context;
	SoupMessage* msg;
};

struct _RygelHTTPClientClass {
	GObjectClass parent_class;
};

struct _RygelHttpPostTestHandleClientMessageData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	RygelHTTPPostTest* self;
	SoupMessage* msg;
	SoupMessage* _tmp0_;
	RygelHTTPRequest* _tmp1_;
	RygelHTTPRequest* request;
	RygelTestRequestFactory* _tmp2_;
	gboolean _tmp3_;
	RygelHTTPRequest* _tmp4_;
	GCancellable* _tmp5_;
	GCancellable* _tmp6_;
	RygelHTTPRequest* _tmp7_;
	SoupMessage* _tmp8_;
	guint _tmp9_;
	guint _tmp10_;
	SoupMessage* _tmp11_;
	guint _tmp12_;
	guint _tmp13_;
	RygelTestRequestFactory* _tmp14_;
	SoupKnownStatusCode* _tmp15_;
	gboolean _tmp16_;
	GMainLoop* _tmp17_;
	gboolean _tmp18_;
	GError* _error_;
	GError* _tmp19_;
	GError* _tmp20_;
	GMainLoop* _tmp21_;
	GError * _inner_error_;
};

struct _RygelMediaObject {
	GObject parent_instance;
	RygelMediaObjectPrivate * priv;
	gchar* mime_type;
};

struct _RygelMediaObjectClass {
	GObjectClass parent_class;
};

struct _RygelMediaContainer {
	RygelMediaObject parent_instance;
	RygelMediaContainerPrivate * priv;
	gchar* id;
	RygelMediaItem* item;
	GFile* file;
};

struct _RygelMediaContainerClass {
	RygelMediaObjectClass parent_class;
};

struct _RygelMediaItem {
	RygelMediaObject parent_instance;
	RygelMediaItemPrivate * priv;
	RygelMediaContainer* parent;
	gchar* id;
	glong size;
	glong duration;
	GeeArrayList* uris;
	gboolean place_holder;
	GFile* file;
};

struct _RygelMediaItemClass {
	RygelMediaObjectClass parent_class;
};

struct _RygelHttpPostTestCheckResultData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	RygelHTTPPostTest* self;
	RygelHTTPServer* _tmp0_;
	RygelMediaContainer* _tmp1_;
	RygelMediaItem* _tmp2_;
	GFile* _tmp3_;
	GFile* _tmp4_;
	GFile* file;
	GFile* _tmp5_;
	GFileInputStream* _tmp6_;
	GFileInputStream* stream;
	guint8* _tmp7_;
	guint8* buffer;
	gint buffer_length1;
	gint _buffer_size_;
	GFileInputStream* _tmp8_;
	guint8* _tmp9_;
	gint _tmp9__length1;
	gint i;
	gboolean _tmp10_;
	gboolean _tmp11_;
	gint _tmp12_;
	gint _tmp13_;
	guint8* _tmp14_;
	gint _tmp14__length1;
	gint _tmp15_;
	guint8 _tmp16_;
	RygelHTTPClient* _tmp17_;
	guint8* _tmp18_;
	gint _tmp18__length1;
	gint _tmp19_;
	guint8 _tmp20_;
	GError* e;
	GError* _error_;
	GError* _tmp21_;
	GError* _tmp22_;
	GMainLoop* _tmp23_;
	GError * _inner_error_;
};

typedef enum  {
	RYGEL_HTTP_REQUEST_ERROR_UNACCEPTABLE = SOUP_STATUS_NOT_ACCEPTABLE,
	RYGEL_HTTP_REQUEST_ERROR_BAD_REQUEST = SOUP_STATUS_BAD_REQUEST,
	RYGEL_HTTP_REQUEST_ERROR_NOT_FOUND = SOUP_STATUS_NOT_FOUND,
	RYGEL_HTTP_REQUEST_ERROR_INTERNAL_SERVER_ERROR = SOUP_STATUS_INTERNAL_SERVER_ERROR
} RygelHTTPRequestError;
#define RYGEL_HTTP_REQUEST_ERROR rygel_http_request_error_quark ()
struct _RygelHTTPClientPrivate {
	GCancellable* _cancellable;
};

struct _Block1Data {
	int _ref_count_;
	RygelHTTPClient * self;
	GSourceFunc run_continue;
	gpointer run_continue_target;
	GDestroyNotify run_continue_target_destroy_notify;
	gpointer _async_data_;
};

struct _RygelHttpClientRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	RygelHTTPClient* self;
	Block1Data* _data1_;
	SoupMessage* _tmp0_;
	SoupMessageBody* _tmp1_;
	guint8* _tmp2_;
	gint _tmp2__length1;
	GUPnPContext* _tmp3_;
	SoupSession* _tmp4_;
	SoupSession* _tmp5_;
	SoupMessage* _tmp6_;
	SoupMessage* _tmp7_;
};

struct _RygelMediaContainerPrivate {
	gboolean vanish;
	gboolean error;
	GFileMonitor* monitor;
};

struct _Block2Data {
	int _ref_count_;
	RygelMediaContainer * self;
	GSourceFunc find_object_continue;
	gpointer find_object_continue_target;
	GDestroyNotify find_object_continue_target_destroy_notify;
	gpointer _async_data_;
};

typedef enum  {
	RYGEL_CONTENT_DIRECTORY_ERROR_INVALID_ARGS = 402
} RygelContentDirectoryError;
#define RYGEL_CONTENT_DIRECTORY_ERROR rygel_content_directory_error_quark ()
struct _RygelMediaContainerFindObjectData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	RygelMediaContainer* self;
	gchar* item_id;
	GCancellable* cancellable;
	RygelMediaObject* result;
	Block2Data* _data2_;
	gboolean _tmp0_;
	const gchar* _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* msg;
	GFile* _tmp6_;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	GError* _tmp9_;
	gboolean _tmp10_;
	const gchar* _tmp11_;
	gboolean _tmp12_;
	gboolean _tmp13_;
	gboolean _tmp14_;
	const gchar* _tmp15_;
	gboolean _tmp16_;
	gboolean _tmp17_;
	GFile* _tmp18_;
	gboolean _tmp19_;
	const gchar* _tmp20_;
	gboolean _tmp21_;
	gboolean _tmp22_;
	const gchar* _tmp23_;
	RygelMediaItem* _tmp24_;
	const gchar* _tmp25_;
	const gchar* _tmp26_;
	RygelMediaItem* _tmp27_;
	RygelMediaItem* _tmp28_;
	RygelMediaObject* _tmp29_;
	GError * _inner_error_;
};

struct _Block3Data {
	int _ref_count_;
	RygelMediaItem * self;
	GSourceFunc get_writable_continue;
	gpointer get_writable_continue_target;
	GDestroyNotify get_writable_continue_target_destroy_notify;
	gpointer _async_data_;
};

struct _RygelMediaItemGetWritableData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	RygelMediaItem* self;
	GCancellable* cancellable;
	GFile* result;
	Block3Data* _data3_;
	const gchar* _tmp0_;
	GFile* _tmp1_;
	GFile* _tmp2_;
	GFile* _tmp3_;
	GError * _inner_error_;
};

struct _RygelHTTPResponse {
	GObject parent_instance;
	RygelHTTPResponsePrivate * priv;
};

struct _RygelHTTPResponseClass {
	GObjectClass parent_class;
};

struct _RygelHTTPResponsePrivate {
	GCancellable* _cancellable;
	SoupMessage* msg;
	SoupServer* server;
};

struct _RygelHTTPRequest {
	GObject parent_instance;
	RygelHTTPRequestPrivate * priv;
	RygelHTTPServer* http_server;
	SoupServer* server;
	SoupMessage* msg;
	RygelHTTPItemURI* uri;
	RygelMediaItem* item;
	RygelClientHacks* hack;
};

struct _RygelHTTPRequestClass {
	GObjectClass parent_class;
	void (*handle) (RygelHTTPRequest* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*handle_finish) (RygelHTTPRequest* self, GAsyncResult* _res_, GError** error);
	void (*find_item) (RygelHTTPRequest* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*find_item_finish) (RygelHTTPRequest* self, GAsyncResult* _res_, GError** error);
};

struct _Block4Data {
	int _ref_count_;
	RygelHTTPResponse * self;
	GSourceFunc run_continue;
	gpointer run_continue_target;
	GDestroyNotify run_continue_target_destroy_notify;
	gpointer _async_data_;
};

struct _RygelHttpResponseRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	RygelHTTPResponse* self;
	Block4Data* _data4_;
	SoupMessage* _tmp0_;
	SoupServer* _tmp1_;
	SoupMessage* _tmp2_;
};

struct _RygelItemRemovalQueue {
	GObject parent_instance;
	RygelItemRemovalQueuePrivate * priv;
};

struct _RygelItemRemovalQueueClass {
	GObjectClass parent_class;
};

struct _RygelItemRemovalQueueRemoveNowData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	RygelItemRemovalQueue* self;
	RygelMediaItem* item;
	GCancellable* cancellable;
};

struct _RygelThumbnail {
	GObject parent_instance;
	RygelThumbnailPrivate * priv;
	gchar* file_extension;
};

struct _RygelThumbnailClass {
	GObjectClass parent_class;
};

struct _RygelVisualItem {
	RygelMediaItem parent_instance;
	RygelVisualItemPrivate * priv;
	GeeArrayList* thumbnails;
};

struct _RygelVisualItemClass {
	RygelMediaItemClass parent_class;
};

struct _RygelSubtitle {
	GObject parent_instance;
	RygelSubtitlePrivate * priv;
	gchar* caption_type;
};

struct _RygelSubtitleClass {
	GObjectClass parent_class;
};

struct _RygelVideoItem {
	RygelVisualItem parent_instance;
	RygelVideoItemPrivate * priv;
	GeeArrayList* subtitles;
};

struct _RygelVideoItemClass {
	RygelVisualItemClass parent_class;
};

struct _RygelMusicItem {
	RygelMediaItem parent_instance;
	RygelMusicItemPrivate * priv;
	RygelThumbnail* album_art;
};

struct _RygelMusicItemClass {
	RygelMediaItemClass parent_class;
};

struct _RygelTranscoder {
	GObject parent_instance;
	RygelTranscoderPrivate * priv;
};

struct _RygelTranscoderClass {
	GObjectClass parent_class;
};

struct _RygelTranscoderPrivate {
	gchar* _extension;
};


static gpointer rygel_client_hacks_parent_class = NULL;
static gpointer rygel_test_request_factory_parent_class = NULL;
static gpointer rygel_http_post_test_parent_class = NULL;
static gpointer rygel_http_server_parent_class = NULL;
static gpointer rygel_http_client_parent_class = NULL;
static RygelStateMachineIface* rygel_http_client_rygel_state_machine_parent_iface = NULL;
static gpointer rygel_media_container_parent_class = NULL;
static gpointer rygel_media_item_parent_class = NULL;
static gpointer rygel_http_response_parent_class = NULL;
static RygelStateMachineIface* rygel_http_response_rygel_state_machine_parent_iface = NULL;
static gpointer rygel_item_removal_queue_parent_class = NULL;
static gpointer rygel_media_object_parent_class = NULL;
static gpointer rygel_thumbnail_parent_class = NULL;
static gpointer rygel_visual_item_parent_class = NULL;
static gpointer rygel_subtitle_parent_class = NULL;
static gpointer rygel_video_item_parent_class = NULL;
static gpointer rygel_music_item_parent_class = NULL;
static gpointer rygel_transcoder_parent_class = NULL;

GQuark rygel_test_error_quark (void);
GQuark rygel_client_hacks_error_quark (void);
gpointer rygel_client_hacks_ref (gpointer instance);
void rygel_client_hacks_unref (gpointer instance);
GParamSpec* rygel_param_spec_client_hacks (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void rygel_value_set_client_hacks (GValue* value, gpointer v_object);
void rygel_value_take_client_hacks (GValue* value, gpointer v_object);
gpointer rygel_value_get_client_hacks (const GValue* value);
GType rygel_client_hacks_get_type (void) G_GNUC_CONST;
enum  {
	RYGEL_CLIENT_HACKS_DUMMY_PROPERTY
};
RygelClientHacks* rygel_client_hacks_create (SoupMessage* message, GError** error);
GType rygel_media_object_get_type (void) G_GNUC_CONST;
GType rygel_media_item_get_type (void) G_GNUC_CONST;
void rygel_client_hacks_apply (RygelClientHacks* self, RygelMediaItem* item);
RygelClientHacks* rygel_client_hacks_new (void);
RygelClientHacks* rygel_client_hacks_construct (GType object_type);
static void rygel_client_hacks_finalize (RygelClientHacks* obj);
gpointer rygel_test_request_factory_ref (gpointer instance);
void rygel_test_request_factory_unref (gpointer instance);
GParamSpec* rygel_param_spec_test_request_factory (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void rygel_value_set_test_request_factory (GValue* value, gpointer v_object);
void rygel_value_take_test_request_factory (GValue* value, gpointer v_object);
gpointer rygel_value_get_test_request_factory (const GValue* value);
GType rygel_test_request_factory_get_type (void) G_GNUC_CONST;
enum  {
	RYGEL_TEST_REQUEST_FACTORY_DUMMY_PROPERTY
};
RygelTestRequestFactory* rygel_test_request_factory_new (SoupMessage* msg, SoupKnownStatusCode* expected_code, gboolean cancel);
RygelTestRequestFactory* rygel_test_request_factory_construct (GType object_type, SoupMessage* msg, SoupKnownStatusCode* expected_code, gboolean cancel);
static SoupKnownStatusCode* _soup_known_status_code_dup (SoupKnownStatusCode* self);
GType rygel_http_server_get_type (void) G_GNUC_CONST;
GType rygel_http_request_get_type (void) G_GNUC_CONST;
GType rygel_http_post_get_type (void) G_GNUC_CONST;
RygelHTTPPost* rygel_test_request_factory_create_post (RygelTestRequestFactory* self, RygelHTTPServer* http_server, SoupServer* server, SoupMessage* msg);
RygelHTTPPost* rygel_http_post_new (RygelHTTPServer* http_server, SoupServer* server, SoupMessage* msg);
RygelHTTPPost* rygel_http_post_construct (GType object_type, RygelHTTPServer* http_server, SoupServer* server, SoupMessage* msg);
static void rygel_test_request_factory_finalize (RygelTestRequestFactory* obj);
GType rygel_http_post_test_get_type (void) G_GNUC_CONST;
GType rygel_http_client_get_type (void) G_GNUC_CONST;
#define RYGEL_HTTP_POST_TEST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), RYGEL_TYPE_HTTP_POST_TEST, RygelHTTPPostTestPrivate))
enum  {
	RYGEL_HTTP_POST_TEST_DUMMY_PROPERTY
};
gint rygel_http_post_test_main (gchar** args, int args_length1);
RygelHTTPPostTest* rygel_http_post_test_new (GError** error);
RygelHTTPPostTest* rygel_http_post_test_construct (GType object_type, GError** error);
void rygel_http_post_test_run (RygelHTTPPostTest* self, GError** error);
RygelHTTPServer* rygel_http_server_new (GError** error);
RygelHTTPServer* rygel_http_server_construct (GType object_type, GError** error);
GType rygel_media_container_get_type (void) G_GNUC_CONST;
RygelHTTPClient* rygel_http_client_new (GUPnPContext* context);
RygelHTTPClient* rygel_http_client_construct (GType object_type, GUPnPContext* context);
static void rygel_http_post_test_create_test_messages (RygelHTTPPostTest* self);
static void rygel_http_post_test_real_run (RygelHTTPPostTest* self, GError** error);
#define RYGEL_MEDIA_ITEM_URI "file:///tmp/rygel-upload-test.wav"
static gboolean rygel_http_post_test_on_timeout (RygelHTTPPostTest* self);
static gboolean _rygel_http_post_test_on_timeout_gsource_func (gpointer self);
static void rygel_http_post_test_on_message_received (RygelHTTPPostTest* self, RygelHTTPServer* server, SoupMessage* msg);
static void _rygel_http_post_test_on_message_received_rygel_http_server_message_received (RygelHTTPServer* _sender, SoupMessage* message, gpointer self);
GType rygel_state_machine_get_type (void) G_GNUC_CONST;
static void rygel_http_post_test_on_client_completed (RygelHTTPPostTest* self, RygelStateMachine* client);
static void _rygel_http_post_test_on_client_completed_rygel_state_machine_completed (RygelStateMachine* _sender, gpointer self);
static void rygel_http_post_test_start_next_test_request (RygelHTTPPostTest* self);
gchar* rygel_http_server_get_uri (RygelHTTPServer* self);
gchar* rygel_http_server_create_uri (RygelHTTPServer* self, const gchar* item_id);
static RygelHTTPRequest* rygel_http_post_test_create_request (RygelHTTPPostTest* self, SoupMessage* msg, GError** error);
void rygel_state_machine_run (RygelStateMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void rygel_state_machine_run_finish (RygelStateMachine* self, GAsyncResult* _res_);
static void rygel_http_post_test_handle_client_message (RygelHTTPPostTest* self, SoupMessage* msg, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void rygel_http_post_test_handle_client_message_finish (RygelHTTPPostTest* self, GAsyncResult* _res_);
static void rygel_http_post_test_handle_client_message_data_free (gpointer _data);
static gboolean rygel_http_post_test_handle_client_message_co (RygelHttpPostTestHandleClientMessageData* _data_);
GCancellable* rygel_state_machine_get_cancellable (RygelStateMachine* self);
static void rygel_http_post_test_handle_client_message_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void rygel_http_post_test_check_result (RygelHTTPPostTest* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void rygel_http_post_test_check_result_finish (RygelHTTPPostTest* self, GAsyncResult* _res_);
static void rygel_http_post_test_check_result_data_free (gpointer _data);
static gboolean rygel_http_post_test_check_result_co (RygelHttpPostTestCheckResultData* _data_);
static void rygel_http_post_test_check_result_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
#define RYGEL_HTTP_CLIENT_LENGTH ((gsize) 1024)
static void rygel_http_post_test_finalize (GObject* obj);
enum  {
	RYGEL_HTTP_SERVER_DUMMY_PROPERTY,
	RYGEL_HTTP_SERVER_PATH_ROOT,
	RYGEL_HTTP_SERVER_URI
};
#define RYGEL_HTTP_SERVER_SERVER_PATH "/RygelHTTPServer/Rygel/Test"
RygelMediaItem* rygel_media_item_new (const gchar* id, RygelMediaContainer* parent);
RygelMediaItem* rygel_media_item_construct (GType object_type, const gchar* id, RygelMediaContainer* parent);
RygelHTTPItemURI* rygel_http_item_uri_new (RygelMediaItem* item, RygelHTTPServer* http_server, gint thumbnail_index, gint subtitle_index, const gchar* transcode_target);
RygelHTTPItemURI* rygel_http_item_uri_construct (GType object_type, RygelMediaItem* item, RygelHTTPServer* http_server, gint thumbnail_index, gint subtitle_index, const gchar* transcode_target);
GType rygel_http_item_uri_get_type (void) G_GNUC_CONST;
gchar* rygel_http_item_uri_to_string (RygelHTTPItemURI* self);
static void rygel_http_server_on_request_started (RygelHTTPServer* self, SoupServer* server, SoupMessage* msg, SoupClientContext* client);
static void _rygel_http_server_on_request_started_soup_server_request_started (SoupServer* _sender, SoupMessage* msg, SoupClientContext* client, gpointer self);
RygelMediaContainer* rygel_media_container_new (void);
RygelMediaContainer* rygel_media_container_construct (GType object_type);
static void rygel_http_server_on_got_headers (RygelHTTPServer* self, SoupMessage* msg);
static void _rygel_http_server_on_got_headers_soup_message_got_headers (SoupMessage* _sender, gpointer self);
GType rygel_transcoder_get_type (void) G_GNUC_CONST;
RygelTranscoder* rygel_http_server_get_transcoder (RygelHTTPServer* self, const gchar* target, GError** error);
RygelTranscoder* rygel_transcoder_new (const gchar* extension);
RygelTranscoder* rygel_transcoder_construct (GType object_type, const gchar* extension);
GQuark rygel_http_request_error_quark (void);
const gchar* rygel_http_server_get_path_root (RygelHTTPServer* self);
#define RYGEL_MEDIA_CONTAINER_ITEM_ID "TestItem"
static void rygel_http_server_finalize (GObject* obj);
static void _vala_rygel_http_server_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
#define RYGEL_HTTP_CLIENT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), RYGEL_TYPE_HTTP_CLIENT, RygelHTTPClientPrivate))
enum  {
	RYGEL_HTTP_CLIENT_DUMMY_PROPERTY,
	RYGEL_HTTP_CLIENT_CANCELLABLE
};
static void rygel_http_client_real_run_data_free (gpointer _data);
static void rygel_http_client_real_run (RygelStateMachine* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean rygel_http_client_real_run_co (RygelHttpClientRunData* _data_);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
static gboolean _rygel_http_client_real_run_co_gsource_func (gpointer self);
static void __lambda6_ (Block1Data* _data1_, SoupSession* session, SoupMessage* msg);
static void ___lambda6__soup_session_callback (SoupSession* session, SoupMessage* msg, gpointer self);
static void rygel_http_client_finalize (GObject* obj);
static void _vala_rygel_http_client_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
void rygel_state_machine_set_cancellable (RygelStateMachine* self, GCancellable* value);
static void _vala_rygel_http_client_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
#define RYGEL_MEDIA_CONTAINER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), RYGEL_TYPE_MEDIA_CONTAINER, RygelMediaContainerPrivate))
enum  {
	RYGEL_MEDIA_CONTAINER_DUMMY_PROPERTY
};
RygelMediaObject* rygel_media_object_new (void);
RygelMediaObject* rygel_media_object_construct (GType object_type);
void rygel_media_container_on_file_changed (RygelMediaContainer* self, GFileMonitor* monitor, GFile* file, GFile* other_file, GFileMonitorEvent event_type);
static void _rygel_media_container_on_file_changed_g_file_monitor_changed (GFileMonitor* _sender, GFile* file, GFile* other_file, GFileMonitorEvent event_type, gpointer self);
static void rygel_media_container_find_object_data_free (gpointer _data);
void rygel_media_container_find_object (RygelMediaContainer* self, const gchar* item_id, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
RygelMediaObject* rygel_media_container_find_object_finish (RygelMediaContainer* self, GAsyncResult* _res_, GError** error);
static gboolean rygel_media_container_find_object_co (RygelMediaContainerFindObjectData* _data_);
static Block2Data* block2_data_ref (Block2Data* _data2_);
static void block2_data_unref (void * _userdata_);
static gboolean _rygel_media_container_find_object_co_gsource_func (gpointer self);
static gboolean __lambda2_ (Block2Data* _data2_);
static gboolean ___lambda2__gsource_func (gpointer self);
GQuark rygel_content_directory_error_quark (void);
static void rygel_media_container_finalize (GObject* obj);
enum  {
	RYGEL_MEDIA_ITEM_DUMMY_PROPERTY
};
RygelMediaItem* rygel_media_item_new_for_visual_item (void);
RygelMediaItem* rygel_media_item_construct_for_visual_item (GType object_type);
static void rygel_media_item_get_writable_data_free (gpointer _data);
void rygel_media_item_get_writable (RygelMediaItem* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
GFile* rygel_media_item_get_writable_finish (RygelMediaItem* self, GAsyncResult* _res_, GError** error);
static gboolean rygel_media_item_get_writable_co (RygelMediaItemGetWritableData* _data_);
static Block3Data* block3_data_ref (Block3Data* _data3_);
static void block3_data_unref (void * _userdata_);
static gboolean _rygel_media_item_get_writable_co_gsource_func (gpointer self);
static gboolean __lambda3_ (Block3Data* _data3_);
static gboolean ___lambda3__gsource_func (gpointer self);
static void rygel_media_item_finalize (GObject* obj);
GType rygel_http_response_get_type (void) G_GNUC_CONST;
#define RYGEL_HTTP_RESPONSE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), RYGEL_TYPE_HTTP_RESPONSE, RygelHTTPResponsePrivate))
enum  {
	RYGEL_HTTP_RESPONSE_DUMMY_PROPERTY,
	RYGEL_HTTP_RESPONSE_CANCELLABLE
};
RygelHTTPResponse* rygel_http_response_new (RygelHTTPPost* get_request);
RygelHTTPResponse* rygel_http_response_construct (GType object_type, RygelHTTPPost* get_request);
static void rygel_http_response_real_run_data_free (gpointer _data);
static void rygel_http_response_real_run (RygelStateMachine* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean rygel_http_response_real_run_co (RygelHttpResponseRunData* _data_);
static Block4Data* block4_data_ref (Block4Data* _data4_);
static void block4_data_unref (void * _userdata_);
static gboolean _rygel_http_response_real_run_co_gsource_func (gpointer self);
static gboolean __lambda7_ (Block4Data* _data4_);
static gboolean ___lambda7__gsource_func (gpointer self);
static void rygel_http_response_finalize (GObject* obj);
static void _vala_rygel_http_response_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_rygel_http_response_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
GType rygel_item_removal_queue_get_type (void) G_GNUC_CONST;
enum  {
	RYGEL_ITEM_REMOVAL_QUEUE_DUMMY_PROPERTY
};
RygelItemRemovalQueue* rygel_item_removal_queue_get_default (void);
RygelItemRemovalQueue* rygel_item_removal_queue_new (void);
RygelItemRemovalQueue* rygel_item_removal_queue_construct (GType object_type);
gboolean rygel_item_removal_queue_dequeue (RygelItemRemovalQueue* self, RygelMediaItem* item);
static void rygel_item_removal_queue_remove_now_data_free (gpointer _data);
void rygel_item_removal_queue_remove_now (RygelItemRemovalQueue* self, RygelMediaItem* item, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void rygel_item_removal_queue_remove_now_finish (RygelItemRemovalQueue* self, GAsyncResult* _res_);
static gboolean rygel_item_removal_queue_remove_now_co (RygelItemRemovalQueueRemoveNowData* _data_);
static gboolean _rygel_item_removal_queue_remove_now_co_gsource_func (gpointer self);
enum  {
	RYGEL_MEDIA_OBJECT_DUMMY_PROPERTY
};
static void rygel_media_object_finalize (GObject* obj);
GType rygel_thumbnail_get_type (void) G_GNUC_CONST;
enum  {
	RYGEL_THUMBNAIL_DUMMY_PROPERTY
};
RygelThumbnail* rygel_thumbnail_new (void);
RygelThumbnail* rygel_thumbnail_construct (GType object_type);
static void rygel_thumbnail_finalize (GObject* obj);
GType rygel_visual_item_get_type (void) G_GNUC_CONST;
enum  {
	RYGEL_VISUAL_ITEM_DUMMY_PROPERTY
};
RygelVisualItem* rygel_visual_item_new (void);
RygelVisualItem* rygel_visual_item_construct (GType object_type);
static void rygel_visual_item_finalize (GObject* obj);
GType rygel_subtitle_get_type (void) G_GNUC_CONST;
enum  {
	RYGEL_SUBTITLE_DUMMY_PROPERTY
};
RygelSubtitle* rygel_subtitle_new (void);
RygelSubtitle* rygel_subtitle_construct (GType object_type);
static void rygel_subtitle_finalize (GObject* obj);
GType rygel_video_item_get_type (void) G_GNUC_CONST;
enum  {
	RYGEL_VIDEO_ITEM_DUMMY_PROPERTY
};
RygelVideoItem* rygel_video_item_new (void);
RygelVideoItem* rygel_video_item_construct (GType object_type);
static void rygel_video_item_finalize (GObject* obj);
GType rygel_music_item_get_type (void) G_GNUC_CONST;
enum  {
	RYGEL_MUSIC_ITEM_DUMMY_PROPERTY
};
RygelMusicItem* rygel_music_item_new (const gchar* id, RygelMediaContainer* parent);
RygelMusicItem* rygel_music_item_construct (GType object_type, const gchar* id, RygelMediaContainer* parent);
static void rygel_music_item_finalize (GObject* obj);
#define RYGEL_TRANSCODER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), RYGEL_TYPE_TRANSCODER, RygelTranscoderPrivate))
enum  {
	RYGEL_TRANSCODER_DUMMY_PROPERTY,
	RYGEL_TRANSCODER_EXTENSION
};
void rygel_transcoder_set_extension (RygelTranscoder* self, const gchar* value);
const gchar* rygel_transcoder_get_extension (RygelTranscoder* self);
static void rygel_transcoder_finalize (GObject* obj);
static void _vala_rygel_transcoder_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_rygel_transcoder_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


GQuark rygel_test_error_quark (void) {
	return g_quark_from_static_string ("rygel_test_error-quark");
}


GQuark rygel_client_hacks_error_quark (void) {
	return g_quark_from_static_string ("rygel_client_hacks_error-quark");
}


RygelClientHacks* rygel_client_hacks_create (SoupMessage* message, GError** error) {
	RygelClientHacks* result = NULL;
	GError* _tmp0_;
	GError * _inner_error_ = NULL;
#line 38 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = g_error_new_literal (RYGEL_CLIENT_HACKS_ERROR, RYGEL_CLIENT_HACKS_ERROR_NA, "");
#line 38 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_inner_error_ = _tmp0_;
#line 38 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_propagate_error (error, _inner_error_);
#line 38 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return NULL;
#line 37 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 1039 "rygel-http-post-test.c"
}


void rygel_client_hacks_apply (RygelClientHacks* self, RygelMediaItem* item) {
#line 41 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (self != NULL);
#line 41 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (item != NULL);
#line 1048 "rygel-http-post-test.c"
}


RygelClientHacks* rygel_client_hacks_construct (GType object_type) {
	RygelClientHacks* self = NULL;
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelClientHacks*) g_type_create_instance (object_type);
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self;
#line 1058 "rygel-http-post-test.c"
}


RygelClientHacks* rygel_client_hacks_new (void) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return rygel_client_hacks_construct (RYGEL_TYPE_CLIENT_HACKS);
#line 1065 "rygel-http-post-test.c"
}


static void rygel_value_client_hacks_init (GValue* value) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	value->data[0].v_pointer = NULL;
#line 1072 "rygel-http-post-test.c"
}


static void rygel_value_client_hacks_free_value (GValue* value) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (value->data[0].v_pointer) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		rygel_client_hacks_unref (value->data[0].v_pointer);
#line 1081 "rygel-http-post-test.c"
	}
}


static void rygel_value_client_hacks_copy_value (const GValue* src_value, GValue* dest_value) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (src_value->data[0].v_pointer) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		dest_value->data[0].v_pointer = rygel_client_hacks_ref (src_value->data[0].v_pointer);
#line 1091 "rygel-http-post-test.c"
	} else {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		dest_value->data[0].v_pointer = NULL;
#line 1095 "rygel-http-post-test.c"
	}
}


static gpointer rygel_value_client_hacks_peek_pointer (const GValue* value) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return value->data[0].v_pointer;
#line 1103 "rygel-http-post-test.c"
}


static gchar* rygel_value_client_hacks_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (collect_values[0].v_pointer) {
#line 1110 "rygel-http-post-test.c"
		RygelClientHacks* object;
		object = collect_values[0].v_pointer;
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (object->parent_instance.g_class == NULL) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 1117 "rygel-http-post-test.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 1121 "rygel-http-post-test.c"
		}
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		value->data[0].v_pointer = rygel_client_hacks_ref (object);
#line 1125 "rygel-http-post-test.c"
	} else {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		value->data[0].v_pointer = NULL;
#line 1129 "rygel-http-post-test.c"
	}
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return NULL;
#line 1133 "rygel-http-post-test.c"
}


static gchar* rygel_value_client_hacks_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	RygelClientHacks** object_p;
	object_p = collect_values[0].v_pointer;
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (!object_p) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 1144 "rygel-http-post-test.c"
	}
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (!value->data[0].v_pointer) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		*object_p = NULL;
#line 1150 "rygel-http-post-test.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		*object_p = value->data[0].v_pointer;
#line 1154 "rygel-http-post-test.c"
	} else {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		*object_p = rygel_client_hacks_ref (value->data[0].v_pointer);
#line 1158 "rygel-http-post-test.c"
	}
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return NULL;
#line 1162 "rygel-http-post-test.c"
}


GParamSpec* rygel_param_spec_client_hacks (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	RygelParamSpecClientHacks* spec;
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (g_type_is_a (object_type, RYGEL_TYPE_CLIENT_HACKS), NULL);
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return G_PARAM_SPEC (spec);
#line 1176 "rygel-http-post-test.c"
}


gpointer rygel_value_get_client_hacks (const GValue* value) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, RYGEL_TYPE_CLIENT_HACKS), NULL);
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return value->data[0].v_pointer;
#line 1185 "rygel-http-post-test.c"
}


void rygel_value_set_client_hacks (GValue* value, gpointer v_object) {
	RygelClientHacks* old;
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, RYGEL_TYPE_CLIENT_HACKS));
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	old = value->data[0].v_pointer;
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (v_object) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, RYGEL_TYPE_CLIENT_HACKS));
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		value->data[0].v_pointer = v_object;
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		rygel_client_hacks_ref (value->data[0].v_pointer);
#line 1205 "rygel-http-post-test.c"
	} else {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		value->data[0].v_pointer = NULL;
#line 1209 "rygel-http-post-test.c"
	}
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (old) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		rygel_client_hacks_unref (old);
#line 1215 "rygel-http-post-test.c"
	}
}


void rygel_value_take_client_hacks (GValue* value, gpointer v_object) {
	RygelClientHacks* old;
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, RYGEL_TYPE_CLIENT_HACKS));
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	old = value->data[0].v_pointer;
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (v_object) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, RYGEL_TYPE_CLIENT_HACKS));
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		value->data[0].v_pointer = v_object;
#line 1234 "rygel-http-post-test.c"
	} else {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		value->data[0].v_pointer = NULL;
#line 1238 "rygel-http-post-test.c"
	}
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (old) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		rygel_client_hacks_unref (old);
#line 1244 "rygel-http-post-test.c"
	}
}


static void rygel_client_hacks_class_init (RygelClientHacksClass * klass) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_client_hacks_parent_class = g_type_class_peek_parent (klass);
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	RYGEL_CLIENT_HACKS_CLASS (klass)->finalize = rygel_client_hacks_finalize;
#line 1254 "rygel-http-post-test.c"
}


static void rygel_client_hacks_instance_init (RygelClientHacks * self) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->ref_count = 1;
#line 1261 "rygel-http-post-test.c"
}


static void rygel_client_hacks_finalize (RygelClientHacks* obj) {
	RygelClientHacks * self;
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_CLIENT_HACKS, RygelClientHacks);
#line 1269 "rygel-http-post-test.c"
}


GType rygel_client_hacks_get_type (void) {
	static volatile gsize rygel_client_hacks_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_client_hacks_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { rygel_value_client_hacks_init, rygel_value_client_hacks_free_value, rygel_value_client_hacks_copy_value, rygel_value_client_hacks_peek_pointer, "p", rygel_value_client_hacks_collect_value, "p", rygel_value_client_hacks_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (RygelClientHacksClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_client_hacks_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelClientHacks), 0, (GInstanceInitFunc) rygel_client_hacks_instance_init, &g_define_type_value_table };
		static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
		GType rygel_client_hacks_type_id;
		rygel_client_hacks_type_id = g_type_register_fundamental (g_type_fundamental_next (), "RygelClientHacks", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&rygel_client_hacks_type_id__volatile, rygel_client_hacks_type_id);
	}
	return rygel_client_hacks_type_id__volatile;
}


gpointer rygel_client_hacks_ref (gpointer instance) {
	RygelClientHacks* self;
	self = instance;
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_atomic_int_inc (&self->ref_count);
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return instance;
#line 1294 "rygel-http-post-test.c"
}


void rygel_client_hacks_unref (gpointer instance) {
	RygelClientHacks* self;
	self = instance;
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		RYGEL_CLIENT_HACKS_GET_CLASS (self)->finalize (self);
#line 36 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 1307 "rygel-http-post-test.c"
	}
}


static gpointer _g_object_ref0 (gpointer self) {
#line 53 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self ? g_object_ref (self) : NULL;
#line 1315 "rygel-http-post-test.c"
}


static SoupKnownStatusCode* _soup_known_status_code_dup (SoupKnownStatusCode* self) {
	SoupKnownStatusCode* dup;
#line 54 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	dup = g_new0 (SoupKnownStatusCode, 1);
#line 54 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	memcpy (dup, self, sizeof (SoupKnownStatusCode));
#line 54 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return dup;
#line 1327 "rygel-http-post-test.c"
}


static gpointer __soup_known_status_code_dup0 (gpointer self) {
#line 54 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self ? _soup_known_status_code_dup (self) : NULL;
#line 1334 "rygel-http-post-test.c"
}


RygelTestRequestFactory* rygel_test_request_factory_construct (GType object_type, SoupMessage* msg, SoupKnownStatusCode* expected_code, gboolean cancel) {
	RygelTestRequestFactory* self = NULL;
	SoupMessage* _tmp0_;
	SoupMessage* _tmp1_;
	SoupKnownStatusCode* _tmp2_;
	SoupKnownStatusCode* _tmp3_;
	gboolean _tmp4_;
#line 50 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (msg != NULL, NULL);
#line 50 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelTestRequestFactory*) g_type_create_instance (object_type);
#line 53 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = msg;
#line 53 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 53 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->msg);
#line 53 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->msg = _tmp1_;
#line 54 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_ = expected_code;
#line 54 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp3_ = __soup_known_status_code_dup0 (_tmp2_);
#line 54 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_free0 (self->expected_code);
#line 54 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->expected_code = _tmp3_;
#line 55 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp4_ = cancel;
#line 55 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->cancel = _tmp4_;
#line 50 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self;
#line 1371 "rygel-http-post-test.c"
}


RygelTestRequestFactory* rygel_test_request_factory_new (SoupMessage* msg, SoupKnownStatusCode* expected_code, gboolean cancel) {
#line 50 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return rygel_test_request_factory_construct (RYGEL_TYPE_TEST_REQUEST_FACTORY, msg, expected_code, cancel);
#line 1378 "rygel-http-post-test.c"
}


RygelHTTPPost* rygel_test_request_factory_create_post (RygelTestRequestFactory* self, RygelHTTPServer* http_server, SoupServer* server, SoupMessage* msg) {
	RygelHTTPPost* result = NULL;
	RygelHTTPServer* _tmp0_;
	SoupServer* _tmp1_;
	SoupMessage* _tmp2_;
	RygelHTTPPost* _tmp3_;
	RygelHTTPPost* request;
#line 58 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 58 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (http_server != NULL, NULL);
#line 58 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (server != NULL, NULL);
#line 58 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (msg != NULL, NULL);
#line 61 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = http_server;
#line 61 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = server;
#line 61 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_ = msg;
#line 61 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp3_ = rygel_http_post_new (_tmp0_, _tmp1_, _tmp2_);
#line 61 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	request = _tmp3_;
#line 63 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	result = request;
#line 63 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 1411 "rygel-http-post-test.c"
}


static void rygel_value_test_request_factory_init (GValue* value) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	value->data[0].v_pointer = NULL;
#line 1418 "rygel-http-post-test.c"
}


static void rygel_value_test_request_factory_free_value (GValue* value) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (value->data[0].v_pointer) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		rygel_test_request_factory_unref (value->data[0].v_pointer);
#line 1427 "rygel-http-post-test.c"
	}
}


static void rygel_value_test_request_factory_copy_value (const GValue* src_value, GValue* dest_value) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (src_value->data[0].v_pointer) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		dest_value->data[0].v_pointer = rygel_test_request_factory_ref (src_value->data[0].v_pointer);
#line 1437 "rygel-http-post-test.c"
	} else {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		dest_value->data[0].v_pointer = NULL;
#line 1441 "rygel-http-post-test.c"
	}
}


static gpointer rygel_value_test_request_factory_peek_pointer (const GValue* value) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return value->data[0].v_pointer;
#line 1449 "rygel-http-post-test.c"
}


static gchar* rygel_value_test_request_factory_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (collect_values[0].v_pointer) {
#line 1456 "rygel-http-post-test.c"
		RygelTestRequestFactory* object;
		object = collect_values[0].v_pointer;
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (object->parent_instance.g_class == NULL) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 1463 "rygel-http-post-test.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 1467 "rygel-http-post-test.c"
		}
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		value->data[0].v_pointer = rygel_test_request_factory_ref (object);
#line 1471 "rygel-http-post-test.c"
	} else {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		value->data[0].v_pointer = NULL;
#line 1475 "rygel-http-post-test.c"
	}
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return NULL;
#line 1479 "rygel-http-post-test.c"
}


static gchar* rygel_value_test_request_factory_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	RygelTestRequestFactory** object_p;
	object_p = collect_values[0].v_pointer;
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (!object_p) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 1490 "rygel-http-post-test.c"
	}
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (!value->data[0].v_pointer) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		*object_p = NULL;
#line 1496 "rygel-http-post-test.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		*object_p = value->data[0].v_pointer;
#line 1500 "rygel-http-post-test.c"
	} else {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		*object_p = rygel_test_request_factory_ref (value->data[0].v_pointer);
#line 1504 "rygel-http-post-test.c"
	}
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return NULL;
#line 1508 "rygel-http-post-test.c"
}


GParamSpec* rygel_param_spec_test_request_factory (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	RygelParamSpecTestRequestFactory* spec;
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (g_type_is_a (object_type, RYGEL_TYPE_TEST_REQUEST_FACTORY), NULL);
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return G_PARAM_SPEC (spec);
#line 1522 "rygel-http-post-test.c"
}


gpointer rygel_value_get_test_request_factory (const GValue* value) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, RYGEL_TYPE_TEST_REQUEST_FACTORY), NULL);
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return value->data[0].v_pointer;
#line 1531 "rygel-http-post-test.c"
}


void rygel_value_set_test_request_factory (GValue* value, gpointer v_object) {
	RygelTestRequestFactory* old;
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, RYGEL_TYPE_TEST_REQUEST_FACTORY));
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	old = value->data[0].v_pointer;
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (v_object) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, RYGEL_TYPE_TEST_REQUEST_FACTORY));
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		value->data[0].v_pointer = v_object;
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		rygel_test_request_factory_ref (value->data[0].v_pointer);
#line 1551 "rygel-http-post-test.c"
	} else {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		value->data[0].v_pointer = NULL;
#line 1555 "rygel-http-post-test.c"
	}
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (old) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		rygel_test_request_factory_unref (old);
#line 1561 "rygel-http-post-test.c"
	}
}


void rygel_value_take_test_request_factory (GValue* value, gpointer v_object) {
	RygelTestRequestFactory* old;
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, RYGEL_TYPE_TEST_REQUEST_FACTORY));
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	old = value->data[0].v_pointer;
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (v_object) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, RYGEL_TYPE_TEST_REQUEST_FACTORY));
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		value->data[0].v_pointer = v_object;
#line 1580 "rygel-http-post-test.c"
	} else {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		value->data[0].v_pointer = NULL;
#line 1584 "rygel-http-post-test.c"
	}
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (old) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		rygel_test_request_factory_unref (old);
#line 1590 "rygel-http-post-test.c"
	}
}


static void rygel_test_request_factory_class_init (RygelTestRequestFactoryClass * klass) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_test_request_factory_parent_class = g_type_class_peek_parent (klass);
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	RYGEL_TEST_REQUEST_FACTORY_CLASS (klass)->finalize = rygel_test_request_factory_finalize;
#line 1600 "rygel-http-post-test.c"
}


static void rygel_test_request_factory_instance_init (RygelTestRequestFactory * self) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->ref_count = 1;
#line 1607 "rygel-http-post-test.c"
}


static void rygel_test_request_factory_finalize (RygelTestRequestFactory* obj) {
	RygelTestRequestFactory * self;
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_TEST_REQUEST_FACTORY, RygelTestRequestFactory);
#line 46 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->msg);
#line 47 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_free0 (self->expected_code);
#line 1619 "rygel-http-post-test.c"
}


GType rygel_test_request_factory_get_type (void) {
	static volatile gsize rygel_test_request_factory_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_test_request_factory_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { rygel_value_test_request_factory_init, rygel_value_test_request_factory_free_value, rygel_value_test_request_factory_copy_value, rygel_value_test_request_factory_peek_pointer, "p", rygel_value_test_request_factory_collect_value, "p", rygel_value_test_request_factory_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (RygelTestRequestFactoryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_test_request_factory_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelTestRequestFactory), 0, (GInstanceInitFunc) rygel_test_request_factory_instance_init, &g_define_type_value_table };
		static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
		GType rygel_test_request_factory_type_id;
		rygel_test_request_factory_type_id = g_type_register_fundamental (g_type_fundamental_next (), "RygelTestRequestFactory", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&rygel_test_request_factory_type_id__volatile, rygel_test_request_factory_type_id);
	}
	return rygel_test_request_factory_type_id__volatile;
}


gpointer rygel_test_request_factory_ref (gpointer instance) {
	RygelTestRequestFactory* self;
	self = instance;
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_atomic_int_inc (&self->ref_count);
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return instance;
#line 1644 "rygel-http-post-test.c"
}


void rygel_test_request_factory_unref (gpointer instance) {
	RygelTestRequestFactory* self;
	self = instance;
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		RYGEL_TEST_REQUEST_FACTORY_GET_CLASS (self)->finalize (self);
#line 45 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 1657 "rygel-http-post-test.c"
	}
}


gint rygel_http_post_test_main (gchar** args, int args_length1) {
	gint result = 0;
	GError * _inner_error_ = NULL;
	{
		RygelHTTPPostTest* _tmp0_;
		RygelHTTPPostTest* test;
		RygelHTTPPostTest* _tmp1_;
#line 82 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_tmp0_ = rygel_http_post_test_new (&_inner_error_);
#line 82 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		test = _tmp0_;
#line 82 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_inner_error_ != NULL) {
#line 82 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			if (g_error_matches (_inner_error_, RYGEL_TEST_ERROR, RYGEL_TEST_ERROR_SKIP)) {
#line 1677 "rygel-http-post-test.c"
				goto __catch0_rygel_test_error_skip;
			}
			goto __catch0_g_error;
		}
#line 84 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_tmp1_ = test;
#line 84 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		rygel_http_post_test_run (_tmp1_, &_inner_error_);
#line 84 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_inner_error_ != NULL) {
#line 84 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_g_object_unref0 (test);
#line 84 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			if (g_error_matches (_inner_error_, RYGEL_TEST_ERROR, RYGEL_TEST_ERROR_SKIP)) {
#line 1692 "rygel-http-post-test.c"
				goto __catch0_rygel_test_error_skip;
			}
			goto __catch0_g_error;
		}
#line 81 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_object_unref0 (test);
#line 1699 "rygel-http-post-test.c"
	}
	goto __finally0;
	__catch0_rygel_test_error_skip:
	{
		GError* _error_ = NULL;
		GError* _tmp2_;
		gint _tmp3_;
#line 81 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_error_ = _inner_error_;
#line 81 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_inner_error_ = NULL;
#line 86 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_tmp2_ = _error_;
#line 86 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_tmp3_ = _tmp2_->code;
#line 86 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		result = _tmp3_;
#line 86 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_error_free0 (_error_);
#line 86 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return result;
#line 1721 "rygel-http-post-test.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* _error_ = NULL;
		GError* _tmp4_;
		const gchar* _tmp5_;
#line 81 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_error_ = _inner_error_;
#line 81 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_inner_error_ = NULL;
#line 88 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_tmp4_ = _error_;
#line 88 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_tmp5_ = _tmp4_->message;
#line 88 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_critical ("rygel-http-post-test.vala:88: %s", _tmp5_);
#line 90 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		result = -1;
#line 90 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_error_free0 (_error_);
#line 90 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return result;
#line 1745 "rygel-http-post-test.c"
	}
	__finally0:
#line 81 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (_inner_error_ != NULL) {
#line 81 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 81 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_clear_error (&_inner_error_);
#line 81 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return 0;
#line 1756 "rygel-http-post-test.c"
	}
#line 93 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	result = 0;
#line 93 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 1762 "rygel-http-post-test.c"
}


int main (int argc, char ** argv) {
#line 80 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_thread_init (NULL);
#line 80 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_type_init ();
#line 80 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return rygel_http_post_test_main (argv, argc);
#line 1773 "rygel-http-post-test.c"
}


RygelHTTPPostTest* rygel_http_post_test_construct (GType object_type, GError** error) {
	RygelHTTPPostTest * self = NULL;
	RygelHTTPServer* _tmp0_;
	RygelHTTPServer* _tmp1_;
	RygelHTTPServer* _tmp2_;
	GUPnPContext* _tmp3_;
	RygelHTTPClient* _tmp4_;
	GMainLoop* _tmp5_;
	GError * _inner_error_ = NULL;
#line 96 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelHTTPPostTest*) g_object_new (object_type, NULL);
#line 97 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = rygel_http_server_new (&_inner_error_);
#line 97 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = _tmp0_;
#line 97 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (_inner_error_ != NULL) {
#line 97 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_propagate_error (error, _inner_error_);
#line 97 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_object_unref0 (self);
#line 97 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return NULL;
#line 1800 "rygel-http-post-test.c"
	}
#line 97 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->server);
#line 97 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->server = _tmp1_;
#line 98 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_ = self->server;
#line 98 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp3_ = _tmp2_->context;
#line 98 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp4_ = rygel_http_client_new (_tmp3_);
#line 98 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->client);
#line 98 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->client = _tmp4_;
#line 99 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp5_ = g_main_loop_new (NULL, FALSE);
#line 99 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_main_loop_unref0 (self->priv->main_loop);
#line 99 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->priv->main_loop = _tmp5_;
#line 100 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_http_post_test_create_test_messages (self);
#line 96 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self;
#line 1826 "rygel-http-post-test.c"
}


RygelHTTPPostTest* rygel_http_post_test_new (GError** error) {
#line 96 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return rygel_http_post_test_construct (RYGEL_TYPE_HTTP_POST_TEST, error);
#line 1833 "rygel-http-post-test.c"
}


static gboolean _rygel_http_post_test_on_timeout_gsource_func (gpointer self) {
	gboolean result;
	result = rygel_http_post_test_on_timeout (self);
#line 108 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 1842 "rygel-http-post-test.c"
}


static void _rygel_http_post_test_on_message_received_rygel_http_server_message_received (RygelHTTPServer* _sender, SoupMessage* message, gpointer self) {
#line 109 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_http_post_test_on_message_received (self, _sender, message);
#line 1849 "rygel-http-post-test.c"
}


static void _rygel_http_post_test_on_client_completed_rygel_state_machine_completed (RygelStateMachine* _sender, gpointer self) {
#line 110 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_http_post_test_on_client_completed (self, _sender);
#line 1856 "rygel-http-post-test.c"
}


static gpointer _g_error_copy0 (gpointer self) {
#line 117 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self ? g_error_copy (self) : NULL;
#line 1863 "rygel-http-post-test.c"
}


static void rygel_http_post_test_real_run (RygelHTTPPostTest* self, GError** error) {
	GFile* _tmp0_ = NULL;
	GFile* file;
	GFile* _tmp1_;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_;
	RygelHTTPServer* _tmp4_;
	RygelHTTPClient* _tmp5_;
	GMainLoop* _tmp6_;
	GError* _tmp7_;
	GError * _inner_error_ = NULL;
#line 105 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = g_file_new_for_uri (RYGEL_MEDIA_ITEM_URI);
#line 105 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	file = _tmp0_;
#line 106 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = file;
#line 106 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_ = g_file_get_path (_tmp1_);
#line 106 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp3_ = _tmp2_;
#line 106 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_remove (_tmp3_);
#line 106 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_free0 (_tmp3_);
#line 108 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 3, _rygel_http_post_test_on_timeout_gsource_func, g_object_ref (self), g_object_unref);
#line 109 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp4_ = self->server;
#line 109 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_signal_connect_object (_tmp4_, "message-received", (GCallback) _rygel_http_post_test_on_message_received_rygel_http_server_message_received, self, 0);
#line 110 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp5_ = self->client;
#line 110 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_signal_connect_object ((RygelStateMachine*) _tmp5_, "completed", (GCallback) _rygel_http_post_test_on_client_completed_rygel_state_machine_completed, self, 0);
#line 112 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_http_post_test_start_next_test_request (self);
#line 114 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp6_ = self->priv->main_loop;
#line 114 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_main_loop_run (_tmp6_);
#line 116 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp7_ = self->priv->error;
#line 116 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (_tmp7_ != NULL) {
#line 1912 "rygel-http-post-test.c"
		GError* _tmp8_;
		GError* _tmp9_;
#line 117 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_tmp8_ = self->priv->error;
#line 117 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_tmp9_ = _g_error_copy0 (_tmp8_);
#line 117 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_inner_error_ = _tmp9_;
#line 117 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_propagate_error (error, _inner_error_);
#line 117 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_object_unref0 (file);
#line 117 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return;
#line 1927 "rygel-http-post-test.c"
	}
#line 103 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (file);
#line 1931 "rygel-http-post-test.c"
}


void rygel_http_post_test_run (RygelHTTPPostTest* self, GError** error) {
#line 103 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (self != NULL);
#line 103 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	RYGEL_HTTP_POST_TEST_GET_CLASS (self)->run (self, error);
#line 1940 "rygel-http-post-test.c"
}


static void rygel_http_post_test_create_test_messages (RygelHTTPPostTest* self) {
	GeeArrayList* _tmp0_;
	RygelHTTPServer* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	SoupMessage* _tmp5_;
	SoupMessage* _tmp6_;
	SoupMessage* request;
	GeeArrayList* _tmp7_;
	SoupMessage* _tmp8_;
	SoupKnownStatusCode _tmp9_;
	RygelTestRequestFactory* _tmp10_;
	RygelTestRequestFactory* _tmp11_;
	RygelHTTPServer* _tmp12_;
	gchar* _tmp13_;
	gchar* _tmp14_;
	gchar* _tmp15_;
	SoupMessage* _tmp16_;
	GeeArrayList* _tmp17_;
	SoupMessage* _tmp18_;
	SoupKnownStatusCode _tmp19_;
	RygelTestRequestFactory* _tmp20_;
	RygelTestRequestFactory* _tmp21_;
	RygelHTTPServer* _tmp22_;
	gchar* _tmp23_ = NULL;
	gchar* _tmp24_;
	SoupMessage* _tmp25_;
	GeeArrayList* _tmp26_;
	SoupMessage* _tmp27_;
	SoupKnownStatusCode _tmp28_;
	RygelTestRequestFactory* _tmp29_;
	RygelTestRequestFactory* _tmp30_;
	RygelHTTPServer* _tmp31_;
	gchar* _tmp32_ = NULL;
	gchar* _tmp33_;
	SoupMessage* _tmp34_;
	GeeArrayList* _tmp35_;
	SoupMessage* _tmp36_;
	SoupKnownStatusCode _tmp37_;
	RygelTestRequestFactory* _tmp38_;
	RygelTestRequestFactory* _tmp39_;
	RygelHTTPServer* _tmp40_;
	gchar* _tmp41_ = NULL;
	gchar* _tmp42_;
	SoupMessage* _tmp43_;
	GeeArrayList* _tmp44_;
	SoupMessage* _tmp45_;
	SoupKnownStatusCode _tmp46_;
	RygelTestRequestFactory* _tmp47_;
	RygelTestRequestFactory* _tmp48_;
	RygelHTTPServer* _tmp49_;
	gchar* _tmp50_ = NULL;
	gchar* _tmp51_;
	SoupMessage* _tmp52_;
	GeeArrayList* _tmp53_;
	SoupMessage* _tmp54_;
	SoupKnownStatusCode _tmp55_;
	RygelTestRequestFactory* _tmp56_;
	RygelTestRequestFactory* _tmp57_;
#line 121 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (self != NULL);
#line 122 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = gee_array_list_new (RYGEL_TYPE_TEST_REQUEST_FACTORY, (GBoxedCopyFunc) rygel_test_request_factory_ref, rygel_test_request_factory_unref, NULL);
#line 122 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->priv->requests);
#line 122 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->priv->requests = _tmp0_;
#line 124 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = self->server;
#line 124 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_ = rygel_http_server_get_uri (_tmp1_);
#line 124 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp3_ = _tmp2_;
#line 124 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp4_ = _tmp3_;
#line 124 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp5_ = soup_message_new ("POST", _tmp4_);
#line 124 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp6_ = _tmp5_;
#line 124 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_free0 (_tmp4_);
#line 124 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	request = _tmp6_;
#line 125 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp7_ = self->priv->requests;
#line 125 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp8_ = request;
#line 125 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp9_ = SOUP_STATUS_OK;
#line 125 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp10_ = rygel_test_request_factory_new (_tmp8_, &_tmp9_, FALSE);
#line 125 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp11_ = _tmp10_;
#line 125 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp7_, _tmp11_);
#line 125 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_rygel_test_request_factory_unref0 (_tmp11_);
#line 127 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp12_ = self->server;
#line 127 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp13_ = rygel_http_server_get_uri (_tmp12_);
#line 127 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp14_ = _tmp13_;
#line 127 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp15_ = _tmp14_;
#line 127 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp16_ = soup_message_new ("POST", _tmp15_);
#line 127 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (request);
#line 127 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	request = _tmp16_;
#line 127 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_free0 (_tmp15_);
#line 128 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp17_ = self->priv->requests;
#line 128 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp18_ = request;
#line 128 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp19_ = SOUP_STATUS_NOT_FOUND;
#line 128 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp20_ = rygel_test_request_factory_new (_tmp18_, &_tmp19_, FALSE);
#line 128 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp21_ = _tmp20_;
#line 128 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp17_, _tmp21_);
#line 128 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_rygel_test_request_factory_unref0 (_tmp21_);
#line 131 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp22_ = self->server;
#line 131 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp23_ = rygel_http_server_create_uri (_tmp22_, "NullItem");
#line 131 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp24_ = _tmp23_;
#line 131 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp25_ = soup_message_new ("POST", _tmp24_);
#line 131 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (request);
#line 131 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	request = _tmp25_;
#line 131 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_free0 (_tmp24_);
#line 132 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp26_ = self->priv->requests;
#line 132 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp27_ = request;
#line 132 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp28_ = SOUP_STATUS_BAD_REQUEST;
#line 132 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp29_ = rygel_test_request_factory_new (_tmp27_, &_tmp28_, FALSE);
#line 132 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp30_ = _tmp29_;
#line 132 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp26_, _tmp30_);
#line 132 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_rygel_test_request_factory_unref0 (_tmp30_);
#line 135 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp31_ = self->server;
#line 135 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp32_ = rygel_http_server_create_uri (_tmp31_, "ErrorItem");
#line 135 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp33_ = _tmp32_;
#line 135 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp34_ = soup_message_new ("POST", _tmp33_);
#line 135 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (request);
#line 135 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	request = _tmp34_;
#line 135 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_free0 (_tmp33_);
#line 137 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp35_ = self->priv->requests;
#line 137 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp36_ = request;
#line 137 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp37_ = SOUP_STATUS_OK;
#line 137 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp38_ = rygel_test_request_factory_new (_tmp36_, &_tmp37_, FALSE);
#line 137 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp39_ = _tmp38_;
#line 137 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp35_, _tmp39_);
#line 137 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_rygel_test_request_factory_unref0 (_tmp39_);
#line 140 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp40_ = self->server;
#line 140 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp41_ = rygel_http_server_create_uri (_tmp40_, "CancelItem");
#line 140 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp42_ = _tmp41_;
#line 140 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp43_ = soup_message_new ("POST", _tmp42_);
#line 140 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (request);
#line 140 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	request = _tmp43_;
#line 140 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_free0 (_tmp42_);
#line 142 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp44_ = self->priv->requests;
#line 142 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp45_ = request;
#line 142 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp46_ = SOUP_STATUS_OK;
#line 142 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp47_ = rygel_test_request_factory_new (_tmp45_, &_tmp46_, TRUE);
#line 142 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp48_ = _tmp47_;
#line 142 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp44_, _tmp48_);
#line 142 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_rygel_test_request_factory_unref0 (_tmp48_);
#line 145 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp49_ = self->server;
#line 145 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp50_ = rygel_http_server_create_uri (_tmp49_, "VanishingItem");
#line 145 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp51_ = _tmp50_;
#line 145 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp52_ = soup_message_new ("POST", _tmp51_);
#line 145 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (request);
#line 145 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	request = _tmp52_;
#line 145 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_free0 (_tmp51_);
#line 147 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp53_ = self->priv->requests;
#line 147 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp54_ = request;
#line 147 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp55_ = SOUP_STATUS_OK;
#line 147 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp56_ = rygel_test_request_factory_new (_tmp54_, &_tmp55_, FALSE);
#line 147 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp57_ = _tmp56_;
#line 147 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp53_, _tmp57_);
#line 147 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_rygel_test_request_factory_unref0 (_tmp57_);
#line 121 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (request);
#line 2186 "rygel-http-post-test.c"
}


static RygelHTTPRequest* rygel_http_post_test_create_request (RygelHTTPPostTest* self, SoupMessage* msg, GError** error) {
	RygelHTTPRequest* result = NULL;
	RygelHTTPServer* _tmp0_;
	GUPnPContext* _tmp1_;
	SoupServer* _tmp2_;
	SoupServer* _tmp3_;
	SoupServer* _tmp4_;
	SoupServer* srv;
	RygelTestRequestFactory* _tmp5_;
	RygelHTTPServer* _tmp6_;
	SoupMessage* _tmp7_;
	RygelHTTPPost* _tmp8_ = NULL;
	RygelHTTPPost* request;
#line 150 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 150 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (msg != NULL, NULL);
#line 151 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = self->server;
#line 151 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = _tmp0_->context;
#line 151 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_ = gupnp_context_get_server (_tmp1_);
#line 151 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp3_ = _tmp2_;
#line 151 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 151 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	srv = _tmp4_;
#line 152 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp5_ = self->priv->current_request;
#line 152 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp6_ = self->server;
#line 152 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp7_ = msg;
#line 152 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp8_ = rygel_test_request_factory_create_post (_tmp5_, _tmp6_, srv, _tmp7_);
#line 152 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	request = _tmp8_;
#line 154 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	result = (RygelHTTPRequest*) request;
#line 154 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (srv);
#line 154 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 2235 "rygel-http-post-test.c"
}


static void rygel_http_post_test_start_next_test_request (RygelHTTPPostTest* self) {
	GeeArrayList* _tmp0_;
	gpointer _tmp1_ = NULL;
	RygelHTTPClient* _tmp2_;
	RygelTestRequestFactory* _tmp3_;
	SoupMessage* _tmp4_;
	SoupMessage* _tmp5_;
	RygelHTTPClient* _tmp6_;
#line 157 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (self != NULL);
#line 158 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = self->priv->requests;
#line 158 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = gee_abstract_list_remove_at ((GeeAbstractList*) _tmp0_, 0);
#line 158 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_rygel_test_request_factory_unref0 (self->priv->current_request);
#line 158 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->priv->current_request = (RygelTestRequestFactory*) _tmp1_;
#line 159 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_ = self->client;
#line 159 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp3_ = self->priv->current_request;
#line 159 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp4_ = _tmp3_->msg;
#line 159 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp5_ = _g_object_ref0 (_tmp4_);
#line 159 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (_tmp2_->msg);
#line 159 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_->msg = _tmp5_;
#line 161 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp6_ = self->client;
#line 161 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_state_machine_run ((RygelStateMachine*) _tmp6_, NULL, NULL);
#line 2273 "rygel-http-post-test.c"
}


static void rygel_http_post_test_on_client_completed (RygelHTTPPostTest* self, RygelStateMachine* client) {
	GeeArrayList* _tmp0_;
	gint _tmp1_;
	gint _tmp2_;
#line 164 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (self != NULL);
#line 164 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (client != NULL);
#line 165 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = self->priv->requests;
#line 165 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp0_);
#line 165 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_ = _tmp1_;
#line 165 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (_tmp2_ > 0) {
#line 2293 "rygel-http-post-test.c"
		gboolean _tmp3_;
#line 166 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_tmp3_ = self->priv->server_done;
#line 166 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_tmp3_) {
#line 167 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			self->priv->server_done = FALSE;
#line 168 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			rygel_http_post_test_start_next_test_request (self);
#line 2303 "rygel-http-post-test.c"
		} else {
#line 170 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			self->priv->ready = TRUE;
#line 2307 "rygel-http-post-test.c"
		}
	} else {
		gboolean _tmp4_;
#line 173 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_tmp4_ = self->priv->server_done;
#line 173 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_tmp4_) {
#line 2315 "rygel-http-post-test.c"
			GMainLoop* _tmp5_;
#line 174 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_tmp5_ = self->priv->main_loop;
#line 174 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_main_loop_quit (_tmp5_);
#line 2321 "rygel-http-post-test.c"
		}
#line 176 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		self->priv->client_done = TRUE;
#line 2325 "rygel-http-post-test.c"
	}
}


static void rygel_http_post_test_on_message_received (RygelHTTPPostTest* self, RygelHTTPServer* server, SoupMessage* msg) {
	SoupMessage* _tmp0_;
#line 180 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (self != NULL);
#line 180 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (server != NULL);
#line 180 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (msg != NULL);
#line 182 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = msg;
#line 182 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_http_post_test_handle_client_message (self, _tmp0_, NULL, NULL);
#line 2342 "rygel-http-post-test.c"
}


static void rygel_http_post_test_handle_client_message_data_free (gpointer _data) {
	RygelHttpPostTestHandleClientMessageData* _data_;
	_data_ = _data;
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (_data_->msg);
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (_data_->self);
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_slice_free (RygelHttpPostTestHandleClientMessageData, _data_);
#line 2355 "rygel-http-post-test.c"
}


static void rygel_http_post_test_handle_client_message (RygelHTTPPostTest* self, SoupMessage* msg, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RygelHttpPostTestHandleClientMessageData* _data_;
	RygelHTTPPostTest* _tmp0_;
	SoupMessage* _tmp1_;
	SoupMessage* _tmp2_;
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_ = g_slice_new0 (RygelHttpPostTestHandleClientMessageData);
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, rygel_http_post_test_handle_client_message);
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, rygel_http_post_test_handle_client_message_data_free);
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->self = _tmp0_;
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = msg;
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->msg = _tmp2_;
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_http_post_test_handle_client_message_co (_data_);
#line 2382 "rygel-http-post-test.c"
}


static void rygel_http_post_test_handle_client_message_finish (RygelHTTPPostTest* self, GAsyncResult* _res_) {
	RygelHttpPostTestHandleClientMessageData* _data_;
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 2390 "rygel-http-post-test.c"
}


static void rygel_http_post_test_handle_client_message_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	RygelHttpPostTestHandleClientMessageData* _data_;
#line 192 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_ = _user_data_;
#line 192 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_source_object_ = source_object;
#line 192 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_res_ = _res_;
#line 192 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_http_post_test_handle_client_message_co (_data_);
#line 2404 "rygel-http-post-test.c"
}


static gboolean rygel_http_post_test_handle_client_message_co (RygelHttpPostTestHandleClientMessageData* _data_) {
#line 185 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	switch (_data_->_state_) {
#line 185 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case 0:
#line 2413 "rygel-http-post-test.c"
		goto _state_0;
#line 185 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case 1:
#line 2417 "rygel-http-post-test.c"
		goto _state_1;
		default:
#line 185 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_assert_not_reached ();
#line 2422 "rygel-http-post-test.c"
	}
	_state_0:
	{
#line 187 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp0_ = _data_->msg;
#line 187 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp1_ = NULL;
#line 187 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp1_ = rygel_http_post_test_create_request (_data_->self, _data_->_tmp0_, &_data_->_inner_error_);
#line 187 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->request = _data_->_tmp1_;
#line 187 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_data_->_inner_error_ != NULL) {
#line 2436 "rygel-http-post-test.c"
			goto __catch1_g_error;
		}
#line 189 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp2_ = _data_->self->priv->current_request;
#line 189 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp3_ = _data_->_tmp2_->cancel;
#line 189 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_data_->_tmp3_) {
#line 190 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp4_ = _data_->request;
#line 190 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp5_ = rygel_state_machine_get_cancellable ((RygelStateMachine*) _data_->_tmp4_);
#line 190 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp6_ = _data_->_tmp5_;
#line 190 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_cancellable_cancel (_data_->_tmp6_);
#line 2453 "rygel-http-post-test.c"
		} else {
#line 192 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp7_ = _data_->request;
#line 192 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_state_ = 1;
#line 192 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			rygel_state_machine_run ((RygelStateMachine*) _data_->_tmp7_, rygel_http_post_test_handle_client_message_ready, _data_);
#line 192 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			return FALSE;
#line 2463 "rygel-http-post-test.c"
			_state_1:
#line 192 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			rygel_state_machine_run_finish ((RygelStateMachine*) _data_->_tmp7_, _data_->_res_);
#line 194 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp8_ = _data_->msg;
#line 194 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp9_ = 0U;
#line 194 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_object_get (_data_->_tmp8_, "status-code", &_data_->_tmp9_, NULL);
#line 194 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp10_ = _data_->_tmp9_;
#line 194 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_debug ("rygel-http-post-test.vala:194: status.code: %d", (gint) _data_->_tmp10_);
#line 195 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp11_ = _data_->msg;
#line 195 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp12_ = 0U;
#line 195 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_object_get (_data_->_tmp11_, "status-code", &_data_->_tmp12_, NULL);
#line 195 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp13_ = _data_->_tmp12_;
#line 195 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp14_ = _data_->self->priv->current_request;
#line 195 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp15_ = _data_->_tmp14_->expected_code;
#line 195 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_vala_assert ((_data_->_tmp13_) == (*_data_->_tmp15_), "msg.status_code == this.current_request.expected_code");
#line 197 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			rygel_http_post_test_check_result (_data_->self, NULL, NULL);
#line 2493 "rygel-http-post-test.c"
		}
#line 200 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp16_ = _data_->self->priv->client_done;
#line 200 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_data_->_tmp16_) {
#line 201 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp17_ = _data_->self->priv->main_loop;
#line 201 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_main_loop_quit (_data_->_tmp17_);
#line 2503 "rygel-http-post-test.c"
		} else {
#line 202 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp18_ = _data_->self->priv->ready;
#line 202 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			if (_data_->_tmp18_) {
#line 203 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
				_data_->self->priv->ready = FALSE;
#line 205 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
				rygel_http_post_test_start_next_test_request (_data_->self);
#line 2513 "rygel-http-post-test.c"
			} else {
#line 207 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
				_data_->self->priv->server_done = TRUE;
#line 2517 "rygel-http-post-test.c"
			}
		}
#line 186 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_object_unref0 (_data_->request);
#line 2522 "rygel-http-post-test.c"
	}
	goto __finally1;
	__catch1_g_error:
	{
#line 186 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 186 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_inner_error_ = NULL;
#line 210 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp19_ = _data_->_error_;
#line 210 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp20_ = _g_error_copy0 (_data_->_tmp19_);
#line 210 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_error_free0 (_data_->self->priv->error);
#line 210 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->self->priv->error = _data_->_tmp20_;
#line 211 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp21_ = _data_->self->priv->main_loop;
#line 211 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_main_loop_quit (_data_->_tmp21_);
#line 213 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_error_free0 (_data_->_error_);
#line 213 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_data_->_state_ == 0) {
#line 213 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2549 "rygel-http-post-test.c"
		} else {
#line 213 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2553 "rygel-http-post-test.c"
		}
#line 213 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_object_unref (_data_->_async_result);
#line 213 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return FALSE;
#line 2559 "rygel-http-post-test.c"
	}
	__finally1:
#line 186 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (_data_->_inner_error_ != NULL) {
#line 186 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 186 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_clear_error (&_data_->_inner_error_);
#line 186 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return FALSE;
#line 2570 "rygel-http-post-test.c"
	}
#line 185 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (_data_->_state_ == 0) {
#line 185 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2576 "rygel-http-post-test.c"
	} else {
#line 185 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2580 "rygel-http-post-test.c"
	}
#line 185 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_object_unref (_data_->_async_result);
#line 185 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return FALSE;
#line 2586 "rygel-http-post-test.c"
}


static gboolean rygel_http_post_test_on_timeout (RygelHTTPPostTest* self) {
	gboolean result = FALSE;
	GError* _tmp0_;
	GMainLoop* _tmp1_;
#line 217 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 218 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = g_error_new_literal (RYGEL_TEST_ERROR, RYGEL_TEST_ERROR_TIMEOUT, "Timeout");
#line 218 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_error_free0 (self->priv->error);
#line 218 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->priv->error = _tmp0_;
#line 219 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = self->priv->main_loop;
#line 219 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_main_loop_quit (_tmp1_);
#line 221 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	result = FALSE;
#line 221 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 2610 "rygel-http-post-test.c"
}


static void rygel_http_post_test_check_result_data_free (gpointer _data) {
	RygelHttpPostTestCheckResultData* _data_;
	_data_ = _data;
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (_data_->self);
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_slice_free (RygelHttpPostTestCheckResultData, _data_);
#line 2621 "rygel-http-post-test.c"
}


static void rygel_http_post_test_check_result (RygelHTTPPostTest* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RygelHttpPostTestCheckResultData* _data_;
	RygelHTTPPostTest* _tmp0_;
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_ = g_slice_new0 (RygelHttpPostTestCheckResultData);
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, rygel_http_post_test_check_result);
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, rygel_http_post_test_check_result_data_free);
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->self = _tmp0_;
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_http_post_test_check_result_co (_data_);
#line 2640 "rygel-http-post-test.c"
}


static void rygel_http_post_test_check_result_finish (RygelHTTPPostTest* self, GAsyncResult* _res_) {
	RygelHttpPostTestCheckResultData* _data_;
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 2648 "rygel-http-post-test.c"
}


static void rygel_http_post_test_check_result_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	RygelHttpPostTestCheckResultData* _data_;
#line 227 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_ = _user_data_;
#line 227 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_source_object_ = source_object;
#line 227 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_res_ = _res_;
#line 227 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_http_post_test_check_result_co (_data_);
#line 2662 "rygel-http-post-test.c"
}


static gboolean rygel_http_post_test_check_result_co (RygelHttpPostTestCheckResultData* _data_) {
#line 224 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	switch (_data_->_state_) {
#line 224 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case 0:
#line 2671 "rygel-http-post-test.c"
		goto _state_0;
#line 224 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case 1:
#line 2675 "rygel-http-post-test.c"
		goto _state_1;
#line 224 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case 2:
#line 2679 "rygel-http-post-test.c"
		goto _state_2;
		default:
#line 224 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_assert_not_reached ();
#line 2684 "rygel-http-post-test.c"
	}
	_state_0:
	{
#line 226 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp0_ = _data_->self->server;
#line 226 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp1_ = _data_->_tmp0_->root_container;
#line 226 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp2_ = _data_->_tmp1_->item;
#line 226 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp3_ = _data_->_tmp2_->file;
#line 226 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp4_ = _g_object_ref0 (_data_->_tmp3_);
#line 226 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->file = _data_->_tmp4_;
#line 227 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp5_ = _data_->file;
#line 227 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_state_ = 1;
#line 227 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_file_read_async (_data_->_tmp5_, G_PRIORITY_HIGH, NULL, rygel_http_post_test_check_result_ready, _data_);
#line 227 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return FALSE;
#line 2708 "rygel-http-post-test.c"
		_state_1:
#line 227 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp6_ = NULL;
#line 227 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp6_ = g_file_read_finish (_data_->_tmp5_, _data_->_res_, &_data_->_inner_error_);
#line 227 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->stream = _data_->_tmp6_;
#line 227 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_data_->_inner_error_ != NULL) {
#line 227 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_g_object_unref0 (_data_->file);
#line 227 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) {
#line 2722 "rygel-http-post-test.c"
				goto __catch2_g_io_error_not_found;
			}
			goto __catch2_g_error;
		}
#line 228 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp7_ = NULL;
#line 228 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp7_ = g_new0 (guint8, RYGEL_HTTP_CLIENT_LENGTH);
#line 228 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->buffer = _data_->_tmp7_;
#line 228 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->buffer_length1 = RYGEL_HTTP_CLIENT_LENGTH;
#line 228 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_buffer_size_ = _data_->buffer_length1;
#line 229 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp8_ = _data_->stream;
#line 229 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp9_ = _data_->buffer;
#line 229 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp9__length1 = _data_->buffer_length1;
#line 229 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_state_ = 2;
#line 229 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_input_stream_read_async ((GInputStream*) _data_->_tmp8_, (void*) _data_->_tmp9_, (gsize) _data_->_tmp9__length1, G_PRIORITY_HIGH, NULL, rygel_http_post_test_check_result_ready, _data_);
#line 229 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return FALSE;
#line 2749 "rygel-http-post-test.c"
		_state_2:
#line 229 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_input_stream_read_finish ((GInputStream*) _data_->_tmp8_, _data_->_res_, &_data_->_inner_error_);
#line 229 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_data_->_inner_error_ != NULL) {
#line 229 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->buffer = (g_free (_data_->buffer), NULL);
#line 229 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_g_object_unref0 (_data_->stream);
#line 229 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_g_object_unref0 (_data_->file);
#line 229 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) {
#line 2763 "rygel-http-post-test.c"
				goto __catch2_g_io_error_not_found;
			}
			goto __catch2_g_error;
		}
		{
#line 231 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->i = 0;
#line 2771 "rygel-http-post-test.c"
			{
#line 231 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
				_data_->_tmp10_ = TRUE;
#line 231 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
				while (TRUE) {
#line 231 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
					_data_->_tmp11_ = _data_->_tmp10_;
#line 231 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
					if (!_data_->_tmp11_) {
#line 231 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
						_data_->_tmp12_ = _data_->i;
#line 231 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
						_data_->i = _data_->_tmp12_ + 1;
#line 2785 "rygel-http-post-test.c"
					}
#line 231 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
					_data_->_tmp10_ = FALSE;
#line 231 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
					_data_->_tmp13_ = _data_->i;
#line 231 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
					if (!(((gsize) _data_->_tmp13_) < RYGEL_HTTP_CLIENT_LENGTH)) {
#line 231 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
						break;
#line 2795 "rygel-http-post-test.c"
					}
#line 232 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
					_data_->_tmp14_ = _data_->buffer;
#line 232 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
					_data_->_tmp14__length1 = _data_->buffer_length1;
#line 232 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
					_data_->_tmp15_ = _data_->i;
#line 232 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
					_data_->_tmp16_ = _data_->_tmp14_[_data_->_tmp15_];
#line 232 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
					_data_->_tmp17_ = _data_->self->client;
#line 232 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
					_data_->_tmp18_ = _data_->_tmp17_->content;
#line 232 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
					_data_->_tmp18__length1 = _data_->_tmp17_->content_length1;
#line 232 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
					_data_->_tmp19_ = _data_->i;
#line 232 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
					_data_->_tmp20_ = _data_->_tmp18_[_data_->_tmp19_];
#line 232 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
					_vala_assert (_data_->_tmp16_ == _data_->_tmp20_, "buffer[i] == this.client.content[i]");
#line 2817 "rygel-http-post-test.c"
				}
			}
		}
#line 225 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->buffer = (g_free (_data_->buffer), NULL);
#line 225 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_object_unref0 (_data_->stream);
#line 225 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_object_unref0 (_data_->file);
#line 2827 "rygel-http-post-test.c"
	}
	goto __finally2;
	__catch2_g_io_error_not_found:
	{
#line 225 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->e = _data_->_inner_error_;
#line 225 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_inner_error_ = NULL;
#line 235 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_error_free0 (_data_->e);
#line 235 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_data_->_state_ == 0) {
#line 235 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2842 "rygel-http-post-test.c"
		} else {
#line 235 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2846 "rygel-http-post-test.c"
		}
#line 235 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_object_unref (_data_->_async_result);
#line 235 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return FALSE;
#line 2852 "rygel-http-post-test.c"
	}
	goto __finally2;
	__catch2_g_error:
	{
#line 225 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 225 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_inner_error_ = NULL;
#line 237 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp21_ = _data_->_error_;
#line 237 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp22_ = _g_error_copy0 (_data_->_tmp21_);
#line 237 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_error_free0 (_data_->self->priv->error);
#line 237 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->self->priv->error = _data_->_tmp22_;
#line 239 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp23_ = _data_->self->priv->main_loop;
#line 239 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_main_loop_quit (_data_->_tmp23_);
#line 225 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_error_free0 (_data_->_error_);
#line 2875 "rygel-http-post-test.c"
	}
	__finally2:
#line 225 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (_data_->_inner_error_ != NULL) {
#line 225 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 225 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_clear_error (&_data_->_inner_error_);
#line 225 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return FALSE;
#line 2886 "rygel-http-post-test.c"
	}
#line 224 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (_data_->_state_ == 0) {
#line 224 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2892 "rygel-http-post-test.c"
	} else {
#line 224 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2896 "rygel-http-post-test.c"
	}
#line 224 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_object_unref (_data_->_async_result);
#line 224 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return FALSE;
#line 2902 "rygel-http-post-test.c"
}


static void rygel_http_post_test_class_init (RygelHTTPPostTestClass * klass) {
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_http_post_test_parent_class = g_type_class_peek_parent (klass);
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_type_class_add_private (klass, sizeof (RygelHTTPPostTestPrivate));
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	RYGEL_HTTP_POST_TEST_CLASS (klass)->run = rygel_http_post_test_real_run;
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->finalize = rygel_http_post_test_finalize;
#line 2915 "rygel-http-post-test.c"
}


static void rygel_http_post_test_instance_init (RygelHTTPPostTest * self) {
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->priv = RYGEL_HTTP_POST_TEST_GET_PRIVATE (self);
#line 2922 "rygel-http-post-test.c"
}


static void rygel_http_post_test_finalize (GObject* obj) {
	RygelHTTPPostTest * self;
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_HTTP_POST_TEST, RygelHTTPPostTest);
#line 68 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->server);
#line 69 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->client);
#line 74 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_main_loop_unref0 (self->priv->main_loop);
#line 75 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_error_free0 (self->priv->error);
#line 77 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->priv->requests);
#line 78 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_rygel_test_request_factory_unref0 (self->priv->current_request);
#line 67 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (rygel_http_post_test_parent_class)->finalize (obj);
#line 2944 "rygel-http-post-test.c"
}


GType rygel_http_post_test_get_type (void) {
	static volatile gsize rygel_http_post_test_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_http_post_test_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelHTTPPostTestClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_http_post_test_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelHTTPPostTest), 0, (GInstanceInitFunc) rygel_http_post_test_instance_init, NULL };
		GType rygel_http_post_test_type_id;
		rygel_http_post_test_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelHTTPPostTest", &g_define_type_info, 0);
		g_once_init_leave (&rygel_http_post_test_type_id__volatile, rygel_http_post_test_type_id);
	}
	return rygel_http_post_test_type_id__volatile;
}


gchar* rygel_http_server_create_uri (RygelHTTPServer* self, const gchar* item_id) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	RygelMediaContainer* _tmp1_;
	RygelMediaItem* _tmp2_;
	RygelMediaItem* item;
	RygelHTTPItemURI* _tmp3_;
	RygelHTTPItemURI* item_uri;
	gchar* _tmp4_ = NULL;
#line 263 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 263 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (item_id != NULL, NULL);
#line 264 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = item_id;
#line 264 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = self->root_container;
#line 264 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_ = rygel_media_item_new (_tmp0_, _tmp1_);
#line 264 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	item = _tmp2_;
#line 265 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp3_ = rygel_http_item_uri_new (item, self, -1, -1, NULL);
#line 265 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	item_uri = _tmp3_;
#line 266 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp4_ = rygel_http_item_uri_to_string (item_uri);
#line 266 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	result = _tmp4_;
#line 266 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (item_uri);
#line 266 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (item);
#line 266 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 2995 "rygel-http-post-test.c"
}


static void _rygel_http_server_on_request_started_soup_server_request_started (SoupServer* _sender, SoupMessage* msg, SoupClientContext* client, gpointer self) {
#line 282 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_http_server_on_request_started (self, _sender, msg, client);
#line 3002 "rygel-http-post-test.c"
}


RygelHTTPServer* rygel_http_server_construct (GType object_type, GError** error) {
	RygelHTTPServer * self = NULL;
	GUPnPContext* _tmp3_;
	GUPnPContext* _tmp4_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	GUPnPContext* _tmp7_;
	guint _tmp8_;
	guint _tmp9_;
	GUPnPContext* _tmp10_;
	SoupServer* _tmp11_;
	SoupServer* _tmp12_;
	RygelMediaContainer* _tmp13_;
	GError * _inner_error_ = NULL;
#line 271 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelHTTPServer*) g_object_new (object_type, NULL);
#line 3022 "rygel-http-post-test.c"
	{
		GUPnPContext* _tmp0_;
		GUPnPContext* _tmp1_;
#line 273 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_tmp0_ = gupnp_context_new (NULL, "lo", (guint) 0, &_inner_error_);
#line 273 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_tmp1_ = _tmp0_;
#line 273 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_inner_error_ != NULL) {
#line 3032 "rygel-http-post-test.c"
			goto __catch3_g_error;
		}
#line 273 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_object_unref0 (self->context);
#line 273 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		self->context = _tmp1_;
#line 3039 "rygel-http-post-test.c"
	}
	goto __finally3;
	__catch3_g_error:
	{
		GError* _error_ = NULL;
		GError* _tmp2_;
#line 272 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_error_ = _inner_error_;
#line 272 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_inner_error_ = NULL;
#line 275 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_tmp2_ = g_error_new_literal (RYGEL_TEST_ERROR, RYGEL_TEST_ERROR_SKIP, "Network context not available");
#line 275 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_inner_error_ = _tmp2_;
#line 275 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_error_free0 (_error_);
#line 3056 "rygel-http-post-test.c"
		goto __finally3;
	}
	__finally3:
#line 272 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (_inner_error_ != NULL) {
#line 272 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_inner_error_->domain == RYGEL_TEST_ERROR) {
#line 272 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_propagate_error (error, _inner_error_);
#line 272 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_g_object_unref0 (self);
#line 272 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			return NULL;
#line 3070 "rygel-http-post-test.c"
		} else {
#line 272 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 272 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_clear_error (&_inner_error_);
#line 272 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			return NULL;
#line 3078 "rygel-http-post-test.c"
		}
	}
#line 278 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp3_ = self->context;
#line 278 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_vala_assert (_tmp3_ != NULL, "this.context != null");
#line 279 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp4_ = self->context;
#line 279 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp5_ = gssdp_client_get_host_ip ((GSSDPClient*) _tmp4_);
#line 279 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp6_ = _tmp5_;
#line 279 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_vala_assert (_tmp6_ != NULL, "this.context.host_ip != null");
#line 280 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp7_ = self->context;
#line 280 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp8_ = gupnp_context_get_port (_tmp7_);
#line 280 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp9_ = _tmp8_;
#line 280 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_vala_assert (_tmp9_ > ((guint) 0), "this.context.port > 0");
#line 282 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp10_ = self->context;
#line 282 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp11_ = gupnp_context_get_server (_tmp10_);
#line 282 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp12_ = _tmp11_;
#line 282 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_signal_connect_object (_tmp12_, "request-started", (GCallback) _rygel_http_server_on_request_started_soup_server_request_started, self, 0);
#line 284 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp13_ = rygel_media_container_new ();
#line 284 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->root_container);
#line 284 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->root_container = _tmp13_;
#line 271 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self;
#line 3117 "rygel-http-post-test.c"
}


RygelHTTPServer* rygel_http_server_new (GError** error) {
#line 271 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return rygel_http_server_construct (RYGEL_TYPE_HTTP_SERVER, error);
#line 3124 "rygel-http-post-test.c"
}


static void _rygel_http_server_on_got_headers_soup_message_got_headers (SoupMessage* _sender, gpointer self) {
#line 290 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_http_server_on_got_headers (self, _sender);
#line 3131 "rygel-http-post-test.c"
}


static void rygel_http_server_on_request_started (RygelHTTPServer* self, SoupServer* server, SoupMessage* msg, SoupClientContext* client) {
	SoupMessage* _tmp0_;
#line 287 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (self != NULL);
#line 287 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (server != NULL);
#line 287 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (msg != NULL);
#line 287 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (client != NULL);
#line 290 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = msg;
#line 290 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_signal_connect_object (_tmp0_, "got-headers", (GCallback) _rygel_http_server_on_got_headers_soup_message_got_headers, self, 0);
#line 3149 "rygel-http-post-test.c"
}


static void rygel_http_server_on_got_headers (RygelHTTPServer* self, SoupMessage* msg) {
	SoupMessage* _tmp0_;
#line 293 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (self != NULL);
#line 293 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (msg != NULL);
#line 294 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = msg;
#line 294 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_signal_emit_by_name (self, "message-received", _tmp0_);
#line 3163 "rygel-http-post-test.c"
}


RygelTranscoder* rygel_http_server_get_transcoder (RygelHTTPServer* self, const gchar* target, GError** error) {
	RygelTranscoder* result = NULL;
	const gchar* _tmp0_;
	const gchar* _tmp2_;
	GError* _tmp3_;
	GError * _inner_error_ = NULL;
#line 297 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 297 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (target != NULL, NULL);
#line 298 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = target;
#line 298 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (g_strcmp0 (_tmp0_, "MP3") == 0) {
#line 3181 "rygel-http-post-test.c"
		RygelTranscoder* _tmp1_;
#line 299 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_tmp1_ = rygel_transcoder_new ("mp3");
#line 299 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		result = _tmp1_;
#line 299 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return result;
#line 3189 "rygel-http-post-test.c"
	}
#line 301 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_ = target;
#line 301 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp3_ = g_error_new (RYGEL_HTTP_REQUEST_ERROR, RYGEL_HTTP_REQUEST_ERROR_NOT_FOUND, "No transcoder available for target format '%s'", _tmp2_);
#line 301 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_inner_error_ = _tmp3_;
#line 301 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_propagate_error (error, _inner_error_);
#line 301 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return NULL;
#line 3201 "rygel-http-post-test.c"
}


const gchar* rygel_http_server_get_path_root (RygelHTTPServer* self) {
	const gchar* result;
#line 247 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 248 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	result = RYGEL_HTTP_SERVER_SERVER_PATH;
#line 248 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 3213 "rygel-http-post-test.c"
}


gchar* rygel_http_server_get_uri (RygelHTTPServer* self) {
	gchar* result;
	RygelMediaContainer* _tmp0_;
	RygelMediaContainer* _tmp1_;
	RygelMediaItem* _tmp2_;
	RygelMediaItem* item;
	RygelHTTPItemURI* _tmp3_;
	RygelHTTPItemURI* item_uri;
	gchar* _tmp4_ = NULL;
#line 256 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 257 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = self->root_container;
#line 257 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = self->root_container;
#line 257 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_ = rygel_media_item_new (RYGEL_MEDIA_CONTAINER_ITEM_ID, _tmp1_);
#line 257 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	item = _tmp2_;
#line 258 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp3_ = rygel_http_item_uri_new (item, self, -1, -1, NULL);
#line 258 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	item_uri = _tmp3_;
#line 259 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp4_ = rygel_http_item_uri_to_string (item_uri);
#line 259 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	result = _tmp4_;
#line 259 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (item_uri);
#line 259 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (item);
#line 259 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 3250 "rygel-http-post-test.c"
}


static void rygel_http_server_class_init (RygelHTTPServerClass * klass) {
#line 244 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_http_server_parent_class = g_type_class_peek_parent (klass);
#line 244 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_rygel_http_server_get_property;
#line 244 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->finalize = rygel_http_server_finalize;
#line 244 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), RYGEL_HTTP_SERVER_PATH_ROOT, g_param_spec_string ("path-root", "path-root", "path-root", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 244 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), RYGEL_HTTP_SERVER_URI, g_param_spec_string ("uri", "uri", "uri", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 244 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_signal_new ("message_received", RYGEL_TYPE_HTTP_SERVER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, soup_message_get_type ());
#line 3267 "rygel-http-post-test.c"
}


static void rygel_http_server_instance_init (RygelHTTPServer * self) {
}


static void rygel_http_server_finalize (GObject* obj) {
	RygelHTTPServer * self;
#line 244 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_HTTP_SERVER, RygelHTTPServer);
#line 252 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->root_container);
#line 253 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->context);
#line 244 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (rygel_http_server_parent_class)->finalize (obj);
#line 3285 "rygel-http-post-test.c"
}


GType rygel_http_server_get_type (void) {
	static volatile gsize rygel_http_server_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_http_server_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelHTTPServerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_http_server_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelHTTPServer), 0, (GInstanceInitFunc) rygel_http_server_instance_init, NULL };
		GType rygel_http_server_type_id;
		rygel_http_server_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelHTTPServer", &g_define_type_info, 0);
		g_once_init_leave (&rygel_http_server_type_id__volatile, rygel_http_server_type_id);
	}
	return rygel_http_server_type_id__volatile;
}


static void _vala_rygel_http_server_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	RygelHTTPServer * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, RYGEL_TYPE_HTTP_SERVER, RygelHTTPServer);
#line 244 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	switch (property_id) {
#line 244 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case RYGEL_HTTP_SERVER_PATH_ROOT:
#line 244 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_value_set_string (value, rygel_http_server_get_path_root (self));
#line 244 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		break;
#line 244 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case RYGEL_HTTP_SERVER_URI:
#line 244 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_value_take_string (value, rygel_http_server_get_uri (self));
#line 244 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		break;
#line 3318 "rygel-http-post-test.c"
		default:
#line 244 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 244 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		break;
#line 3324 "rygel-http-post-test.c"
	}
}


RygelHTTPClient* rygel_http_client_construct (GType object_type, GUPnPContext* context) {
	RygelHTTPClient * self = NULL;
	GUPnPContext* _tmp0_;
	GUPnPContext* _tmp1_;
	guint8* _tmp2_ = NULL;
#line 317 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (context != NULL, NULL);
#line 317 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelHTTPClient*) g_object_new (object_type, NULL);
#line 318 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = context;
#line 318 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 318 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->context);
#line 318 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->context = _tmp1_;
#line 319 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_ = g_new0 (guint8, 1024);
#line 319 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->content = (g_free (self->content), NULL);
#line 319 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->content = _tmp2_;
#line 319 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->content_length1 = 1024;
#line 317 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self;
#line 3356 "rygel-http-post-test.c"
}


RygelHTTPClient* rygel_http_client_new (GUPnPContext* context) {
#line 317 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return rygel_http_client_construct (RYGEL_TYPE_HTTP_CLIENT, context);
#line 3363 "rygel-http-post-test.c"
}


static void rygel_http_client_real_run_data_free (gpointer _data) {
	RygelHttpClientRunData* _data_;
	_data_ = _data;
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (_data_->self);
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_slice_free (RygelHttpClientRunData, _data_);
#line 3374 "rygel-http-post-test.c"
}


static void rygel_http_client_real_run (RygelStateMachine* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RygelHTTPClient * self;
	RygelHttpClientRunData* _data_;
	RygelHTTPClient* _tmp0_;
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelHTTPClient*) base;
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_ = g_slice_new0 (RygelHttpClientRunData);
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, rygel_http_client_real_run);
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, rygel_http_client_real_run_data_free);
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->self = _tmp0_;
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_http_client_real_run_co (_data_);
#line 3396 "rygel-http-post-test.c"
}


static void rygel_http_client_real_run_finish (RygelStateMachine* base, GAsyncResult* _res_) {
	RygelHttpClientRunData* _data_;
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 3404 "rygel-http-post-test.c"
}


static Block1Data* block1_data_ref (Block1Data* _data1_) {
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_atomic_int_inc (&_data1_->_ref_count_);
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return _data1_;
#line 3413 "rygel-http-post-test.c"
}


static void block1_data_unref (void * _userdata_) {
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 3422 "rygel-http-post-test.c"
		RygelHTTPClient * self;
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		self = _data1_->self;
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		(_data1_->run_continue_target_destroy_notify == NULL) ? NULL : (_data1_->run_continue_target_destroy_notify (_data1_->run_continue_target), NULL);
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data1_->run_continue = NULL;
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data1_->run_continue_target = NULL;
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data1_->run_continue_target_destroy_notify = NULL;
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_object_unref0 (self);
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_slice_free (Block1Data, _data1_);
#line 3438 "rygel-http-post-test.c"
	}
}


static gboolean _rygel_http_client_real_run_co_gsource_func (gpointer self) {
	gboolean result;
	result = rygel_http_client_real_run_co (self);
#line 323 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 3448 "rygel-http-post-test.c"
}


static void __lambda6_ (Block1Data* _data1_, SoupSession* session, SoupMessage* msg) {
	RygelHTTPClient * self;
#line 327 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = _data1_->self;
#line 327 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (session != NULL);
#line 327 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (msg != NULL);
#line 328 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data1_->run_continue (_data1_->run_continue_target);
#line 3462 "rygel-http-post-test.c"
}


static void ___lambda6__soup_session_callback (SoupSession* session, SoupMessage* msg, gpointer self) {
#line 327 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	__lambda6_ (self, session, msg);
#line 3469 "rygel-http-post-test.c"
}


static gboolean rygel_http_client_real_run_co (RygelHttpClientRunData* _data_) {
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	switch (_data_->_state_) {
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case 0:
#line 3478 "rygel-http-post-test.c"
		goto _state_0;
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case 1:
#line 3482 "rygel-http-post-test.c"
		goto _state_1;
		default:
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_assert_not_reached ();
#line 3487 "rygel-http-post-test.c"
	}
	_state_0:
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data1_ = g_slice_new0 (Block1Data);
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data1_->_ref_count_ = 1;
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data1_->self = g_object_ref (_data_->self);
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data1_->_async_data_ = _data_;
#line 323 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data1_->run_continue = _rygel_http_client_real_run_co_gsource_func;
#line 323 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data1_->run_continue_target = _data_;
#line 323 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data1_->run_continue_target_destroy_notify = NULL;
#line 325 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp0_ = _data_->self->msg;
#line 325 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp1_ = _data_->_tmp0_->request_body;
#line 325 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp2_ = _data_->self->content;
#line 325 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp2__length1 = _data_->self->content_length1;
#line 325 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	soup_message_body_append (_data_->_tmp1_, SOUP_MEMORY_COPY, _data_->_tmp2_, (gsize) _data_->_tmp2__length1);
#line 327 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp3_ = _data_->self->context;
#line 327 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp4_ = gupnp_context_get_session (_data_->_tmp3_);
#line 327 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp5_ = _data_->_tmp4_;
#line 327 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp6_ = _data_->self->msg;
#line 327 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp7_ = _g_object_ref0 (_data_->_tmp6_);
#line 327 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	soup_session_queue_message (_data_->_tmp5_, _data_->_tmp7_, ___lambda6__soup_session_callback, _data_->_data1_);
#line 331 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_state_ = 1;
#line 331 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return FALSE;
#line 3530 "rygel-http-post-test.c"
	_state_1:
	;
#line 333 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_signal_emit_by_name ((RygelStateMachine*) _data_->self, "completed");
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	block1_data_unref (_data_->_data1_);
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data1_ = NULL;
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (_data_->_state_ == 0) {
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3543 "rygel-http-post-test.c"
	} else {
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 3547 "rygel-http-post-test.c"
	}
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_object_unref (_data_->_async_result);
#line 322 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return FALSE;
#line 3553 "rygel-http-post-test.c"
}


static GCancellable* rygel_http_client_real_get_cancellable (RygelStateMachine* base) {
	GCancellable* result;
	RygelHTTPClient* self;
	GCancellable* _tmp0_;
#line 315 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelHTTPClient*) base;
#line 315 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = self->priv->_cancellable;
#line 315 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	result = _tmp0_;
#line 315 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 3569 "rygel-http-post-test.c"
}


static void rygel_http_client_real_set_cancellable (RygelStateMachine* base, GCancellable* value) {
	RygelHTTPClient* self;
	GCancellable* _tmp0_;
	GCancellable* _tmp1_;
#line 315 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelHTTPClient*) base;
#line 315 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = value;
#line 315 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 315 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->priv->_cancellable);
#line 315 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->priv->_cancellable = _tmp1_;
#line 315 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_object_notify ((GObject *) self, "cancellable");
#line 3589 "rygel-http-post-test.c"
}


static void rygel_http_client_class_init (RygelHTTPClientClass * klass) {
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_http_client_parent_class = g_type_class_peek_parent (klass);
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_type_class_add_private (klass, sizeof (RygelHTTPClientPrivate));
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_rygel_http_client_get_property;
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_rygel_http_client_set_property;
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->finalize = rygel_http_client_finalize;
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), RYGEL_HTTP_CLIENT_CANCELLABLE, g_param_spec_object ("cancellable", "cancellable", "cancellable", g_cancellable_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 3606 "rygel-http-post-test.c"
}


static void rygel_http_client_rygel_state_machine_interface_init (RygelStateMachineIface * iface) {
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_http_client_rygel_state_machine_parent_iface = g_type_interface_peek_parent (iface);
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	iface->run = (void (*)(RygelStateMachine*)) rygel_http_client_real_run;
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	iface->run_finish = rygel_http_client_real_run_finish;
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	iface->get_cancellable = rygel_http_client_real_get_cancellable;
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	iface->set_cancellable = rygel_http_client_real_set_cancellable;
#line 3621 "rygel-http-post-test.c"
}


static void rygel_http_client_instance_init (RygelHTTPClient * self) {
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->priv = RYGEL_HTTP_CLIENT_GET_PRIVATE (self);
#line 3628 "rygel-http-post-test.c"
}


static void rygel_http_client_finalize (GObject* obj) {
	RygelHTTPClient * self;
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_HTTP_CLIENT, RygelHTTPClient);
#line 310 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->content = (g_free (self->content), NULL);
#line 312 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->context);
#line 313 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->msg);
#line 315 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->priv->_cancellable);
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (rygel_http_client_parent_class)->finalize (obj);
#line 3646 "rygel-http-post-test.c"
}


GType rygel_http_client_get_type (void) {
	static volatile gsize rygel_http_client_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_http_client_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelHTTPClientClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_http_client_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelHTTPClient), 0, (GInstanceInitFunc) rygel_http_client_instance_init, NULL };
		static const GInterfaceInfo rygel_state_machine_info = { (GInterfaceInitFunc) rygel_http_client_rygel_state_machine_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType rygel_http_client_type_id;
		rygel_http_client_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelHTTPClient", &g_define_type_info, 0);
		g_type_add_interface_static (rygel_http_client_type_id, RYGEL_TYPE_STATE_MACHINE, &rygel_state_machine_info);
		g_once_init_leave (&rygel_http_client_type_id__volatile, rygel_http_client_type_id);
	}
	return rygel_http_client_type_id__volatile;
}


static void _vala_rygel_http_client_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	RygelHTTPClient * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, RYGEL_TYPE_HTTP_CLIENT, RygelHTTPClient);
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	switch (property_id) {
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case RYGEL_HTTP_CLIENT_CANCELLABLE:
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_value_set_object (value, rygel_state_machine_get_cancellable ((RygelStateMachine*) self));
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		break;
#line 3675 "rygel-http-post-test.c"
		default:
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		break;
#line 3681 "rygel-http-post-test.c"
	}
}


static void _vala_rygel_http_client_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	RygelHTTPClient * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, RYGEL_TYPE_HTTP_CLIENT, RygelHTTPClient);
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	switch (property_id) {
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case RYGEL_HTTP_CLIENT_CANCELLABLE:
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		rygel_state_machine_set_cancellable ((RygelStateMachine*) self, g_value_get_object (value));
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		break;
#line 3697 "rygel-http-post-test.c"
		default:
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 307 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		break;
#line 3703 "rygel-http-post-test.c"
	}
}


static void _rygel_media_container_on_file_changed_g_file_monitor_changed (GFileMonitor* _sender, GFile* file, GFile* other_file, GFileMonitorEvent event_type, gpointer self) {
#line 357 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_media_container_on_file_changed (self, _sender, file, other_file, event_type);
#line 3711 "rygel-http-post-test.c"
}


RygelMediaContainer* rygel_media_container_construct (GType object_type) {
	RygelMediaContainer * self = NULL;
	GFile* _tmp0_ = NULL;
	RygelMediaItem* _tmp1_;
	GFile* _tmp2_;
	GFileMonitor* _tmp3_ = NULL;
	GFileMonitor* _tmp4_;
	GFileMonitor* _tmp5_;
	GError * _inner_error_ = NULL;
#line 350 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelMediaContainer*) rygel_media_object_construct (object_type);
#line 351 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = g_file_new_for_uri (RYGEL_MEDIA_ITEM_URI);
#line 351 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->file);
#line 351 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->file = _tmp0_;
#line 352 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = rygel_media_item_new (RYGEL_MEDIA_CONTAINER_ITEM_ID, self);
#line 352 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->item);
#line 352 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->item = _tmp1_;
#line 353 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->priv->vanish = FALSE;
#line 354 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->priv->error = FALSE;
#line 356 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_ = self->file;
#line 356 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp3_ = g_file_monitor_file (_tmp2_, G_FILE_MONITOR_NONE, NULL, &_inner_error_);
#line 356 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp4_ = _tmp3_;
#line 356 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (_inner_error_ != NULL) {
#line 356 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 356 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_clear_error (&_inner_error_);
#line 356 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return NULL;
#line 3756 "rygel-http-post-test.c"
	}
#line 356 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->priv->monitor);
#line 356 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->priv->monitor = _tmp4_;
#line 357 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp5_ = self->priv->monitor;
#line 357 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_signal_connect_object (_tmp5_, "changed", (GCallback) _rygel_media_container_on_file_changed_g_file_monitor_changed, self, 0);
#line 350 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self;
#line 3768 "rygel-http-post-test.c"
}


RygelMediaContainer* rygel_media_container_new (void) {
#line 350 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return rygel_media_container_construct (RYGEL_TYPE_MEDIA_CONTAINER);
#line 3775 "rygel-http-post-test.c"
}


static void rygel_media_container_find_object_data_free (gpointer _data) {
	RygelMediaContainerFindObjectData* _data_;
	_data_ = _data;
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_free0 (_data_->item_id);
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (_data_->cancellable);
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (_data_->result);
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (_data_->self);
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_slice_free (RygelMediaContainerFindObjectData, _data_);
#line 3792 "rygel-http-post-test.c"
}


void rygel_media_container_find_object (RygelMediaContainer* self, const gchar* item_id, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RygelMediaContainerFindObjectData* _data_;
	RygelMediaContainer* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	GCancellable* _tmp3_;
	GCancellable* _tmp4_;
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_ = g_slice_new0 (RygelMediaContainerFindObjectData);
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, rygel_media_container_find_object);
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, rygel_media_container_find_object_data_free);
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->self = _tmp0_;
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = item_id;
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->item_id = _tmp2_;
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp3_ = cancellable;
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->cancellable = _tmp4_;
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_media_container_find_object_co (_data_);
#line 3827 "rygel-http-post-test.c"
}


RygelMediaObject* rygel_media_container_find_object_finish (RygelMediaContainer* self, GAsyncResult* _res_, GError** error) {
	RygelMediaObject* result;
	RygelMediaContainerFindObjectData* _data_;
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return NULL;
#line 3838 "rygel-http-post-test.c"
	}
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	result = _data_->result;
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->result = NULL;
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 3848 "rygel-http-post-test.c"
}


static Block2Data* block2_data_ref (Block2Data* _data2_) {
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_atomic_int_inc (&_data2_->_ref_count_);
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return _data2_;
#line 3857 "rygel-http-post-test.c"
}


static void block2_data_unref (void * _userdata_) {
	Block2Data* _data2_;
	_data2_ = (Block2Data*) _userdata_;
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
#line 3866 "rygel-http-post-test.c"
		RygelMediaContainer * self;
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		self = _data2_->self;
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		(_data2_->find_object_continue_target_destroy_notify == NULL) ? NULL : (_data2_->find_object_continue_target_destroy_notify (_data2_->find_object_continue_target), NULL);
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data2_->find_object_continue = NULL;
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data2_->find_object_continue_target = NULL;
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data2_->find_object_continue_target_destroy_notify = NULL;
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_object_unref0 (self);
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_slice_free (Block2Data, _data2_);
#line 3882 "rygel-http-post-test.c"
	}
}


static gboolean _rygel_media_container_find_object_co_gsource_func (gpointer self) {
	gboolean result;
	result = rygel_media_container_find_object_co (self);
#line 363 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 3892 "rygel-http-post-test.c"
}


static gboolean __lambda2_ (Block2Data* _data2_) {
	RygelMediaContainer * self;
	gboolean result = FALSE;
	GSourceFunc _tmp0_;
	void* _tmp0__target;
#line 364 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = _data2_->self;
#line 365 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = _data2_->find_object_continue;
#line 365 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0__target = _data2_->find_object_continue_target;
#line 365 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ (_tmp0__target);
#line 367 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	result = FALSE;
#line 367 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 3913 "rygel-http-post-test.c"
}


static gboolean ___lambda2__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda2_ (self);
#line 364 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 3922 "rygel-http-post-test.c"
}


static gboolean rygel_media_container_find_object_co (RygelMediaContainerFindObjectData* _data_) {
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	switch (_data_->_state_) {
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case 0:
#line 3931 "rygel-http-post-test.c"
		goto _state_0;
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case 1:
#line 3935 "rygel-http-post-test.c"
		goto _state_1;
		default:
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_assert_not_reached ();
#line 3940 "rygel-http-post-test.c"
	}
	_state_0:
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data2_ = g_slice_new0 (Block2Data);
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data2_->_ref_count_ = 1;
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data2_->self = g_object_ref (_data_->self);
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data2_->_async_data_ = _data_;
#line 363 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data2_->find_object_continue = _rygel_media_container_find_object_co_gsource_func;
#line 363 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data2_->find_object_continue_target = _data_;
#line 363 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data2_->find_object_continue_target_destroy_notify = NULL;
#line 364 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda2__gsource_func, block2_data_ref (_data_->_data2_), block2_data_unref);
#line 370 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_state_ = 1;
#line 370 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return FALSE;
#line 3963 "rygel-http-post-test.c"
	_state_1:
	;
#line 372 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp1_ = _data_->item_id;
#line 372 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (g_strcmp0 (_data_->_tmp1_, "ErrorItem") == 0) {
#line 372 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp2_ = _data_->self->priv->error;
#line 372 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp0_ = _data_->_tmp2_;
#line 3974 "rygel-http-post-test.c"
	} else {
#line 372 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp0_ = FALSE;
#line 3978 "rygel-http-post-test.c"
	}
#line 372 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp3_ = _data_->_tmp0_;
#line 372 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (_data_->_tmp3_) {
#line 373 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp4_ = NULL;
#line 373 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp4_ = _ ("Fake error caused by %s object.");
#line 373 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp5_ = g_strdup (_data_->_tmp4_);
#line 373 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->msg = _data_->_tmp5_;
#line 374 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp6_ = _data_->self->file;
#line 374 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_file_delete (_data_->_tmp6_, NULL, &_data_->_inner_error_);
#line 374 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_data_->_inner_error_ != NULL) {
#line 374 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 374 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_error_free (_data_->_inner_error_);
#line 374 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_g_free0 (_data_->msg);
#line 374 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			block2_data_unref (_data_->_data2_);
#line 374 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_data2_ = NULL;
#line 374 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			if (_data_->_state_ == 0) {
#line 374 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4012 "rygel-http-post-test.c"
			} else {
#line 374 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 4016 "rygel-http-post-test.c"
			}
#line 374 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_object_unref (_data_->_async_result);
#line 374 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			return FALSE;
#line 4022 "rygel-http-post-test.c"
		}
#line 376 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp7_ = _data_->msg;
#line 376 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp8_ = _data_->item_id;
#line 376 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp9_ = g_error_new (RYGEL_CONTENT_DIRECTORY_ERROR, RYGEL_CONTENT_DIRECTORY_ERROR_INVALID_ARGS, _data_->_tmp7_, _data_->_tmp8_);
#line 376 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_inner_error_ = _data_->_tmp9_;
#line 376 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 376 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_error_free (_data_->_inner_error_);
#line 376 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_free0 (_data_->msg);
#line 376 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		block2_data_unref (_data_->_data2_);
#line 376 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_data2_ = NULL;
#line 376 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_data_->_state_ == 0) {
#line 376 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4046 "rygel-http-post-test.c"
		} else {
#line 376 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 4050 "rygel-http-post-test.c"
		}
#line 376 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_object_unref (_data_->_async_result);
#line 376 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return FALSE;
#line 4056 "rygel-http-post-test.c"
	} else {
#line 377 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp11_ = _data_->item_id;
#line 377 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (g_strcmp0 (_data_->_tmp11_, "ErrorItem") == 0) {
#line 377 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp12_ = _data_->self->priv->error;
#line 377 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp10_ = !_data_->_tmp12_;
#line 4066 "rygel-http-post-test.c"
		} else {
#line 377 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp10_ = FALSE;
#line 4070 "rygel-http-post-test.c"
		}
#line 377 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp13_ = _data_->_tmp10_;
#line 377 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_data_->_tmp13_) {
#line 378 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->self->priv->error = TRUE;
#line 4078 "rygel-http-post-test.c"
		}
	}
#line 381 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp15_ = _data_->item_id;
#line 381 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (g_strcmp0 (_data_->_tmp15_, "VanishingItem") == 0) {
#line 381 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp16_ = _data_->self->priv->vanish;
#line 381 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp14_ = _data_->_tmp16_;
#line 4089 "rygel-http-post-test.c"
	} else {
#line 381 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp14_ = FALSE;
#line 4093 "rygel-http-post-test.c"
	}
#line 381 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp17_ = _data_->_tmp14_;
#line 381 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (_data_->_tmp17_) {
#line 382 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp18_ = _data_->self->file;
#line 382 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_file_delete (_data_->_tmp18_, NULL, &_data_->_inner_error_);
#line 382 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_data_->_inner_error_ != NULL) {
#line 382 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 382 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_error_free (_data_->_inner_error_);
#line 382 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			block2_data_unref (_data_->_data2_);
#line 382 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_data2_ = NULL;
#line 382 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			if (_data_->_state_ == 0) {
#line 382 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4117 "rygel-http-post-test.c"
			} else {
#line 382 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 4121 "rygel-http-post-test.c"
			}
#line 382 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_object_unref (_data_->_async_result);
#line 382 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			return FALSE;
#line 4127 "rygel-http-post-test.c"
		}
#line 384 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->result = NULL;
#line 384 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		block2_data_unref (_data_->_data2_);
#line 384 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_data2_ = NULL;
#line 384 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_data_->_state_ == 0) {
#line 384 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4139 "rygel-http-post-test.c"
		} else {
#line 384 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 4143 "rygel-http-post-test.c"
		}
#line 384 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_object_unref (_data_->_async_result);
#line 384 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return FALSE;
#line 4149 "rygel-http-post-test.c"
	} else {
#line 385 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp20_ = _data_->item_id;
#line 385 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (g_strcmp0 (_data_->_tmp20_, "VanishingItem") == 0) {
#line 385 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp21_ = _data_->self->priv->vanish;
#line 385 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp19_ = !_data_->_tmp21_;
#line 4159 "rygel-http-post-test.c"
		} else {
#line 385 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_tmp19_ = FALSE;
#line 4163 "rygel-http-post-test.c"
		}
#line 385 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp22_ = _data_->_tmp19_;
#line 385 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_data_->_tmp22_) {
#line 386 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->self->priv->vanish = TRUE;
#line 4171 "rygel-http-post-test.c"
		}
	}
#line 389 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp23_ = _data_->item_id;
#line 389 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp24_ = _data_->self->item;
#line 389 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp25_ = _data_->_tmp24_->id;
#line 389 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (g_strcmp0 (_data_->_tmp23_, _data_->_tmp25_) != 0) {
#line 390 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp26_ = _data_->item_id;
#line 390 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp27_ = rygel_media_item_new (_data_->_tmp26_, _data_->self);
#line 390 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_object_unref0 (_data_->self->item);
#line 390 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->self->item = _data_->_tmp27_;
#line 4190 "rygel-http-post-test.c"
	}
#line 393 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp28_ = _data_->self->item;
#line 393 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp29_ = _g_object_ref0 ((RygelMediaObject*) _data_->_tmp28_);
#line 393 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->result = _data_->_tmp29_;
#line 393 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	block2_data_unref (_data_->_data2_);
#line 393 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data2_ = NULL;
#line 393 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (_data_->_state_ == 0) {
#line 393 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4206 "rygel-http-post-test.c"
	} else {
#line 393 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 4210 "rygel-http-post-test.c"
	}
#line 393 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_object_unref (_data_->_async_result);
#line 393 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return FALSE;
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	block2_data_unref (_data_->_data2_);
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data2_ = NULL;
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (_data_->_state_ == 0) {
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4224 "rygel-http-post-test.c"
	} else {
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 4228 "rygel-http-post-test.c"
	}
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_object_unref (_data_->_async_result);
#line 360 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return FALSE;
#line 4234 "rygel-http-post-test.c"
}


void rygel_media_container_on_file_changed (RygelMediaContainer* self, GFileMonitor* monitor, GFile* file, GFile* other_file, GFileMonitorEvent event_type) {
	RygelMediaItem* _tmp0_;
#line 396 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (self != NULL);
#line 396 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (monitor != NULL);
#line 396 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (file != NULL);
#line 400 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = self->item;
#line 400 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_->place_holder = FALSE;
#line 402 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_signal_emit_by_name (self, "container-updated", self);
#line 4252 "rygel-http-post-test.c"
}


static void rygel_media_container_class_init (RygelMediaContainerClass * klass) {
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_media_container_parent_class = g_type_class_peek_parent (klass);
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_type_class_add_private (klass, sizeof (RygelMediaContainerPrivate));
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->finalize = rygel_media_container_finalize;
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_signal_new ("container_updated", RYGEL_TYPE_MEDIA_CONTAINER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, RYGEL_TYPE_MEDIA_CONTAINER);
#line 4265 "rygel-http-post-test.c"
}


static void rygel_media_container_instance_init (RygelMediaContainer * self) {
	gchar* _tmp0_;
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->priv = RYGEL_MEDIA_CONTAINER_GET_PRIVATE (self);
#line 342 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = g_strdup ("TesContainer");
#line 342 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->id = _tmp0_;
#line 4277 "rygel-http-post-test.c"
}


static void rygel_media_container_finalize (GObject* obj) {
	RygelMediaContainer * self;
	GError * _inner_error_ = NULL;
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_MEDIA_CONTAINER, RygelMediaContainer);
#line 4286 "rygel-http-post-test.c"
	{
		GFile* _tmp0_;
#line 407 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_tmp0_ = self->file;
#line 407 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_file_delete (_tmp0_, NULL, &_inner_error_);
#line 407 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_inner_error_ != NULL) {
#line 4295 "rygel-http-post-test.c"
			goto __catch4_g_error;
		}
	}
	goto __finally4;
	__catch4_g_error:
	{
		GError* _error_ = NULL;
#line 406 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_error_ = _inner_error_;
#line 406 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_inner_error_ = NULL;
#line 409 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_assert_not_reached ();
#line 406 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_error_free0 (_error_);
#line 4311 "rygel-http-post-test.c"
	}
	__finally4:
#line 406 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (_inner_error_ != NULL) {
#line 406 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 406 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_clear_error (&_inner_error_);
#line 4320 "rygel-http-post-test.c"
	}
#line 342 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_free0 (self->id);
#line 343 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->item);
#line 347 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->file);
#line 348 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->priv->monitor);
#line 337 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (rygel_media_container_parent_class)->finalize (obj);
#line 4332 "rygel-http-post-test.c"
}


GType rygel_media_container_get_type (void) {
	static volatile gsize rygel_media_container_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_media_container_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelMediaContainerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_media_container_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelMediaContainer), 0, (GInstanceInitFunc) rygel_media_container_instance_init, NULL };
		GType rygel_media_container_type_id;
		rygel_media_container_type_id = g_type_register_static (RYGEL_TYPE_MEDIA_OBJECT, "RygelMediaContainer", &g_define_type_info, 0);
		g_once_init_leave (&rygel_media_container_type_id__volatile, rygel_media_container_type_id);
	}
	return rygel_media_container_type_id__volatile;
}


RygelMediaItem* rygel_media_item_construct_for_visual_item (GType object_type) {
	RygelMediaItem * self = NULL;
#line 428 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelMediaItem*) rygel_media_object_construct (object_type);
#line 428 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self;
#line 4354 "rygel-http-post-test.c"
}


RygelMediaItem* rygel_media_item_new_for_visual_item (void) {
#line 428 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return rygel_media_item_construct_for_visual_item (RYGEL_TYPE_MEDIA_ITEM);
#line 4361 "rygel-http-post-test.c"
}


RygelMediaItem* rygel_media_item_construct (GType object_type, const gchar* id, RygelMediaContainer* parent) {
	RygelMediaItem * self = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	RygelMediaContainer* _tmp2_;
	RygelMediaContainer* _tmp3_;
	GFile* _tmp4_;
	GFile* _tmp5_;
#line 430 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (id != NULL, NULL);
#line 430 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (parent != NULL, NULL);
#line 430 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelMediaItem*) rygel_media_object_construct (object_type);
#line 431 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = id;
#line 431 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 431 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_free0 (self->id);
#line 431 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->id = _tmp1_;
#line 432 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_ = parent;
#line 432 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->parent = _tmp2_;
#line 434 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp3_ = parent;
#line 434 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp4_ = _tmp3_->file;
#line 434 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp5_ = _g_object_ref0 (_tmp4_);
#line 434 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->file);
#line 434 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->file = _tmp5_;
#line 430 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self;
#line 4403 "rygel-http-post-test.c"
}


RygelMediaItem* rygel_media_item_new (const gchar* id, RygelMediaContainer* parent) {
#line 430 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return rygel_media_item_construct (RYGEL_TYPE_MEDIA_ITEM, id, parent);
#line 4410 "rygel-http-post-test.c"
}


static void rygel_media_item_get_writable_data_free (gpointer _data) {
	RygelMediaItemGetWritableData* _data_;
	_data_ = _data;
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (_data_->cancellable);
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (_data_->result);
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (_data_->self);
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_slice_free (RygelMediaItemGetWritableData, _data_);
#line 4425 "rygel-http-post-test.c"
}


void rygel_media_item_get_writable (RygelMediaItem* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RygelMediaItemGetWritableData* _data_;
	RygelMediaItem* _tmp0_;
	GCancellable* _tmp1_;
	GCancellable* _tmp2_;
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_ = g_slice_new0 (RygelMediaItemGetWritableData);
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, rygel_media_item_get_writable);
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, rygel_media_item_get_writable_data_free);
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->self = _tmp0_;
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = cancellable;
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->cancellable = _tmp2_;
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_media_item_get_writable_co (_data_);
#line 4452 "rygel-http-post-test.c"
}


GFile* rygel_media_item_get_writable_finish (RygelMediaItem* self, GAsyncResult* _res_, GError** error) {
	GFile* result;
	RygelMediaItemGetWritableData* _data_;
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return NULL;
#line 4463 "rygel-http-post-test.c"
	}
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	result = _data_->result;
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->result = NULL;
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 4473 "rygel-http-post-test.c"
}


static Block3Data* block3_data_ref (Block3Data* _data3_) {
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_atomic_int_inc (&_data3_->_ref_count_);
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return _data3_;
#line 4482 "rygel-http-post-test.c"
}


static void block3_data_unref (void * _userdata_) {
	Block3Data* _data3_;
	_data3_ = (Block3Data*) _userdata_;
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
#line 4491 "rygel-http-post-test.c"
		RygelMediaItem * self;
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		self = _data3_->self;
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		(_data3_->get_writable_continue_target_destroy_notify == NULL) ? NULL : (_data3_->get_writable_continue_target_destroy_notify (_data3_->get_writable_continue_target), NULL);
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data3_->get_writable_continue = NULL;
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data3_->get_writable_continue_target = NULL;
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data3_->get_writable_continue_target_destroy_notify = NULL;
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_object_unref0 (self);
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_slice_free (Block3Data, _data3_);
#line 4507 "rygel-http-post-test.c"
	}
}


static gboolean _rygel_media_item_get_writable_co_gsource_func (gpointer self) {
	gboolean result;
	result = rygel_media_item_get_writable_co (self);
#line 438 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 4517 "rygel-http-post-test.c"
}


static gboolean __lambda3_ (Block3Data* _data3_) {
	RygelMediaItem * self;
	gboolean result = FALSE;
	GSourceFunc _tmp0_;
	void* _tmp0__target;
#line 440 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = _data3_->self;
#line 441 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = _data3_->get_writable_continue;
#line 441 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0__target = _data3_->get_writable_continue_target;
#line 441 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ (_tmp0__target);
#line 443 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	result = FALSE;
#line 443 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 4538 "rygel-http-post-test.c"
}


static gboolean ___lambda3__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda3_ (self);
#line 440 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 4547 "rygel-http-post-test.c"
}


static gboolean rygel_media_item_get_writable_co (RygelMediaItemGetWritableData* _data_) {
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	switch (_data_->_state_) {
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case 0:
#line 4556 "rygel-http-post-test.c"
		goto _state_0;
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case 1:
#line 4560 "rygel-http-post-test.c"
		goto _state_1;
		default:
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_assert_not_reached ();
#line 4565 "rygel-http-post-test.c"
	}
	_state_0:
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data3_ = g_slice_new0 (Block3Data);
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data3_->_ref_count_ = 1;
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data3_->self = g_object_ref (_data_->self);
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data3_->_async_data_ = _data_;
#line 438 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data3_->get_writable_continue = _rygel_media_item_get_writable_co_gsource_func;
#line 438 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data3_->get_writable_continue_target = _data_;
#line 438 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data3_->get_writable_continue_target_destroy_notify = NULL;
#line 440 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda3__gsource_func, block3_data_ref (_data_->_data3_), block3_data_unref);
#line 446 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_state_ = 1;
#line 446 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return FALSE;
#line 4588 "rygel-http-post-test.c"
	_state_1:
	;
#line 448 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp0_ = _data_->self->id;
#line 448 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (g_strcmp0 (_data_->_tmp0_, "NullItem") == 0) {
#line 449 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp1_ = _data_->self->file;
#line 449 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_file_delete (_data_->_tmp1_, NULL, &_data_->_inner_error_);
#line 449 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_data_->_inner_error_ != NULL) {
#line 449 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 449 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_error_free (_data_->_inner_error_);
#line 449 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			block3_data_unref (_data_->_data3_);
#line 449 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			_data_->_data3_ = NULL;
#line 449 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			if (_data_->_state_ == 0) {
#line 449 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4613 "rygel-http-post-test.c"
			} else {
#line 449 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 4617 "rygel-http-post-test.c"
			}
#line 449 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_object_unref (_data_->_async_result);
#line 449 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			return FALSE;
#line 4623 "rygel-http-post-test.c"
		}
#line 451 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->result = NULL;
#line 451 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		block3_data_unref (_data_->_data3_);
#line 451 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_data3_ = NULL;
#line 451 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_data_->_state_ == 0) {
#line 451 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4635 "rygel-http-post-test.c"
		} else {
#line 451 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 4639 "rygel-http-post-test.c"
		}
#line 451 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_object_unref (_data_->_async_result);
#line 451 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return FALSE;
#line 4645 "rygel-http-post-test.c"
	} else {
#line 453 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp2_ = _data_->self->file;
#line 453 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_tmp3_ = _g_object_ref0 (_data_->_tmp2_);
#line 453 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->result = _data_->_tmp3_;
#line 453 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		block3_data_unref (_data_->_data3_);
#line 453 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data_->_data3_ = NULL;
#line 453 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		if (_data_->_state_ == 0) {
#line 453 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4661 "rygel-http-post-test.c"
		} else {
#line 453 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 4665 "rygel-http-post-test.c"
		}
#line 453 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_object_unref (_data_->_async_result);
#line 453 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		return FALSE;
#line 4671 "rygel-http-post-test.c"
	}
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	block3_data_unref (_data_->_data3_);
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data3_ = NULL;
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (_data_->_state_ == 0) {
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4681 "rygel-http-post-test.c"
	} else {
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 4685 "rygel-http-post-test.c"
	}
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_object_unref (_data_->_async_result);
#line 437 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return FALSE;
#line 4691 "rygel-http-post-test.c"
}


static void rygel_media_item_class_init (RygelMediaItemClass * klass) {
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_media_item_parent_class = g_type_class_peek_parent (klass);
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->finalize = rygel_media_item_finalize;
#line 4700 "rygel-http-post-test.c"
}


static void rygel_media_item_instance_init (RygelMediaItem * self) {
	GeeArrayList* _tmp0_;
#line 420 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->size = (glong) 1024;
#line 421 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->duration = (glong) 1024;
#line 422 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL);
#line 422 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->uris = _tmp0_;
#line 424 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->place_holder = TRUE;
#line 4716 "rygel-http-post-test.c"
}


static void rygel_media_item_finalize (GObject* obj) {
	RygelMediaItem * self;
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_MEDIA_ITEM, RygelMediaItem);
#line 419 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_free0 (self->id);
#line 422 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->uris);
#line 426 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->file);
#line 414 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (rygel_media_item_parent_class)->finalize (obj);
#line 4732 "rygel-http-post-test.c"
}


GType rygel_media_item_get_type (void) {
	static volatile gsize rygel_media_item_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_media_item_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelMediaItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_media_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelMediaItem), 0, (GInstanceInitFunc) rygel_media_item_instance_init, NULL };
		GType rygel_media_item_type_id;
		rygel_media_item_type_id = g_type_register_static (RYGEL_TYPE_MEDIA_OBJECT, "RygelMediaItem", &g_define_type_info, 0);
		g_once_init_leave (&rygel_media_item_type_id__volatile, rygel_media_item_type_id);
	}
	return rygel_media_item_type_id__volatile;
}


RygelHTTPResponse* rygel_http_response_construct (GType object_type, RygelHTTPPost* get_request) {
	RygelHTTPResponse * self = NULL;
	RygelHTTPPost* _tmp0_;
	SoupMessage* _tmp1_;
	SoupMessage* _tmp2_;
	RygelHTTPPost* _tmp3_;
	SoupServer* _tmp4_;
	SoupServer* _tmp5_;
#line 464 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (get_request != NULL, NULL);
#line 464 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelHTTPResponse*) g_object_new (object_type, NULL);
#line 465 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = get_request;
#line 465 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = ((RygelHTTPRequest*) _tmp0_)->msg;
#line 465 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 465 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->priv->msg);
#line 465 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->priv->msg = _tmp2_;
#line 467 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp3_ = get_request;
#line 467 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp4_ = ((RygelHTTPRequest*) _tmp3_)->server;
#line 467 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp5_ = _g_object_ref0 (_tmp4_);
#line 467 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->priv->server);
#line 467 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->priv->server = _tmp5_;
#line 464 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self;
#line 4782 "rygel-http-post-test.c"
}


RygelHTTPResponse* rygel_http_response_new (RygelHTTPPost* get_request) {
#line 464 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return rygel_http_response_construct (RYGEL_TYPE_HTTP_RESPONSE, get_request);
#line 4789 "rygel-http-post-test.c"
}


static void rygel_http_response_real_run_data_free (gpointer _data) {
	RygelHttpResponseRunData* _data_;
	_data_ = _data;
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (_data_->self);
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_slice_free (RygelHttpResponseRunData, _data_);
#line 4800 "rygel-http-post-test.c"
}


static void rygel_http_response_real_run (RygelStateMachine* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RygelHTTPResponse * self;
	RygelHttpResponseRunData* _data_;
	RygelHTTPResponse* _tmp0_;
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelHTTPResponse*) base;
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_ = g_slice_new0 (RygelHttpResponseRunData);
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, rygel_http_response_real_run);
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, rygel_http_response_real_run_data_free);
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->self = _tmp0_;
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_http_response_real_run_co (_data_);
#line 4822 "rygel-http-post-test.c"
}


static void rygel_http_response_real_run_finish (RygelStateMachine* base, GAsyncResult* _res_) {
	RygelHttpResponseRunData* _data_;
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 4830 "rygel-http-post-test.c"
}


static Block4Data* block4_data_ref (Block4Data* _data4_) {
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_atomic_int_inc (&_data4_->_ref_count_);
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return _data4_;
#line 4839 "rygel-http-post-test.c"
}


static void block4_data_unref (void * _userdata_) {
	Block4Data* _data4_;
	_data4_ = (Block4Data*) _userdata_;
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (g_atomic_int_dec_and_test (&_data4_->_ref_count_)) {
#line 4848 "rygel-http-post-test.c"
		RygelHTTPResponse * self;
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		self = _data4_->self;
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		(_data4_->run_continue_target_destroy_notify == NULL) ? NULL : (_data4_->run_continue_target_destroy_notify (_data4_->run_continue_target), NULL);
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data4_->run_continue = NULL;
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data4_->run_continue_target = NULL;
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_data4_->run_continue_target_destroy_notify = NULL;
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		_g_object_unref0 (self);
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_slice_free (Block4Data, _data4_);
#line 4864 "rygel-http-post-test.c"
	}
}


static gboolean _rygel_http_response_real_run_co_gsource_func (gpointer self) {
	gboolean result;
	result = rygel_http_response_real_run_co (self);
#line 471 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 4874 "rygel-http-post-test.c"
}


static gboolean __lambda7_ (Block4Data* _data4_) {
	RygelHTTPResponse * self;
	gboolean result = FALSE;
#line 473 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = _data4_->self;
#line 474 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data4_->run_continue (_data4_->run_continue_target);
#line 476 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	result = FALSE;
#line 476 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 4889 "rygel-http-post-test.c"
}


static gboolean ___lambda7__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda7_ (self);
#line 473 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 4898 "rygel-http-post-test.c"
}


static gboolean rygel_http_response_real_run_co (RygelHttpResponseRunData* _data_) {
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	switch (_data_->_state_) {
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case 0:
#line 4907 "rygel-http-post-test.c"
		goto _state_0;
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case 1:
#line 4911 "rygel-http-post-test.c"
		goto _state_1;
		default:
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_assert_not_reached ();
#line 4916 "rygel-http-post-test.c"
	}
	_state_0:
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data4_ = g_slice_new0 (Block4Data);
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data4_->_ref_count_ = 1;
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data4_->self = g_object_ref (_data_->self);
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data4_->_async_data_ = _data_;
#line 471 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data4_->run_continue = _rygel_http_response_real_run_co_gsource_func;
#line 471 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data4_->run_continue_target = _data_;
#line 471 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data4_->run_continue_target_destroy_notify = NULL;
#line 473 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda7__gsource_func, block4_data_ref (_data_->_data4_), block4_data_unref);
#line 479 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_state_ = 1;
#line 479 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return FALSE;
#line 4939 "rygel-http-post-test.c"
	_state_1:
	;
#line 481 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp0_ = _data_->self->priv->msg;
#line 481 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	soup_message_set_status (_data_->_tmp0_, (guint) SOUP_STATUS_OK);
#line 482 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp1_ = _data_->self->priv->server;
#line 482 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_tmp2_ = _data_->self->priv->msg;
#line 482 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	soup_server_unpause_message (_data_->_tmp1_, _data_->_tmp2_);
#line 484 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_signal_emit_by_name ((RygelStateMachine*) _data_->self, "completed");
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	block4_data_unref (_data_->_data4_);
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_data4_ = NULL;
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (_data_->_state_ == 0) {
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4962 "rygel-http-post-test.c"
	} else {
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 4966 "rygel-http-post-test.c"
	}
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_object_unref (_data_->_async_result);
#line 470 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return FALSE;
#line 4972 "rygel-http-post-test.c"
}


static GCancellable* rygel_http_response_real_get_cancellable (RygelStateMachine* base) {
	GCancellable* result;
	RygelHTTPResponse* self;
	GCancellable* _tmp0_;
#line 459 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelHTTPResponse*) base;
#line 459 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = self->priv->_cancellable;
#line 459 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	result = _tmp0_;
#line 459 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 4988 "rygel-http-post-test.c"
}


static void rygel_http_response_real_set_cancellable (RygelStateMachine* base, GCancellable* value) {
	RygelHTTPResponse* self;
	GCancellable* _tmp0_;
	GCancellable* _tmp1_;
#line 459 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelHTTPResponse*) base;
#line 459 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = value;
#line 459 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 459 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->priv->_cancellable);
#line 459 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->priv->_cancellable = _tmp1_;
#line 459 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_object_notify ((GObject *) self, "cancellable");
#line 5008 "rygel-http-post-test.c"
}


static void rygel_http_response_class_init (RygelHTTPResponseClass * klass) {
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_http_response_parent_class = g_type_class_peek_parent (klass);
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_type_class_add_private (klass, sizeof (RygelHTTPResponsePrivate));
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_rygel_http_response_get_property;
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_rygel_http_response_set_property;
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->finalize = rygel_http_response_finalize;
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), RYGEL_HTTP_RESPONSE_CANCELLABLE, g_param_spec_object ("cancellable", "cancellable", "cancellable", g_cancellable_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5025 "rygel-http-post-test.c"
}


static void rygel_http_response_rygel_state_machine_interface_init (RygelStateMachineIface * iface) {
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_http_response_rygel_state_machine_parent_iface = g_type_interface_peek_parent (iface);
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	iface->run = (void (*)(RygelStateMachine*)) rygel_http_response_real_run;
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	iface->run_finish = rygel_http_response_real_run_finish;
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	iface->get_cancellable = rygel_http_response_real_get_cancellable;
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	iface->set_cancellable = rygel_http_response_real_set_cancellable;
#line 5040 "rygel-http-post-test.c"
}


static void rygel_http_response_instance_init (RygelHTTPResponse * self) {
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->priv = RYGEL_HTTP_RESPONSE_GET_PRIVATE (self);
#line 5047 "rygel-http-post-test.c"
}


static void rygel_http_response_finalize (GObject* obj) {
	RygelHTTPResponse * self;
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_HTTP_RESPONSE, RygelHTTPResponse);
#line 459 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->priv->_cancellable);
#line 461 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->priv->msg);
#line 462 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->priv->server);
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (rygel_http_response_parent_class)->finalize (obj);
#line 5063 "rygel-http-post-test.c"
}


GType rygel_http_response_get_type (void) {
	static volatile gsize rygel_http_response_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_http_response_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelHTTPResponseClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_http_response_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelHTTPResponse), 0, (GInstanceInitFunc) rygel_http_response_instance_init, NULL };
		static const GInterfaceInfo rygel_state_machine_info = { (GInterfaceInitFunc) rygel_http_response_rygel_state_machine_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType rygel_http_response_type_id;
		rygel_http_response_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelHTTPResponse", &g_define_type_info, 0);
		g_type_add_interface_static (rygel_http_response_type_id, RYGEL_TYPE_STATE_MACHINE, &rygel_state_machine_info);
		g_once_init_leave (&rygel_http_response_type_id__volatile, rygel_http_response_type_id);
	}
	return rygel_http_response_type_id__volatile;
}


static void _vala_rygel_http_response_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	RygelHTTPResponse * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, RYGEL_TYPE_HTTP_RESPONSE, RygelHTTPResponse);
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	switch (property_id) {
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case RYGEL_HTTP_RESPONSE_CANCELLABLE:
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_value_set_object (value, rygel_state_machine_get_cancellable ((RygelStateMachine*) self));
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		break;
#line 5092 "rygel-http-post-test.c"
		default:
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		break;
#line 5098 "rygel-http-post-test.c"
	}
}


static void _vala_rygel_http_response_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	RygelHTTPResponse * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, RYGEL_TYPE_HTTP_RESPONSE, RygelHTTPResponse);
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	switch (property_id) {
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case RYGEL_HTTP_RESPONSE_CANCELLABLE:
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		rygel_state_machine_set_cancellable ((RygelStateMachine*) self, g_value_get_object (value));
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		break;
#line 5114 "rygel-http-post-test.c"
		default:
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 458 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		break;
#line 5120 "rygel-http-post-test.c"
	}
}


RygelItemRemovalQueue* rygel_item_removal_queue_get_default (void) {
	RygelItemRemovalQueue* result = NULL;
	RygelItemRemovalQueue* _tmp0_;
#line 490 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = rygel_item_removal_queue_new ();
#line 490 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	result = _tmp0_;
#line 490 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 5134 "rygel-http-post-test.c"
}


gboolean rygel_item_removal_queue_dequeue (RygelItemRemovalQueue* self, RygelMediaItem* item) {
	gboolean result = FALSE;
#line 493 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 493 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (item != NULL, FALSE);
#line 494 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	result = TRUE;
#line 494 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 5148 "rygel-http-post-test.c"
}


static void rygel_item_removal_queue_remove_now_data_free (gpointer _data) {
	RygelItemRemovalQueueRemoveNowData* _data_;
	_data_ = _data;
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (_data_->item);
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (_data_->cancellable);
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (_data_->self);
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_slice_free (RygelItemRemovalQueueRemoveNowData, _data_);
#line 5163 "rygel-http-post-test.c"
}


void rygel_item_removal_queue_remove_now (RygelItemRemovalQueue* self, RygelMediaItem* item, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	RygelItemRemovalQueueRemoveNowData* _data_;
	RygelItemRemovalQueue* _tmp0_;
	RygelMediaItem* _tmp1_;
	RygelMediaItem* _tmp2_;
	GCancellable* _tmp3_;
	GCancellable* _tmp4_;
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_ = g_slice_new0 (RygelItemRemovalQueueRemoveNowData);
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, rygel_item_removal_queue_remove_now);
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, rygel_item_removal_queue_remove_now_data_free);
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->self = _tmp0_;
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = item;
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->item = _tmp2_;
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp3_ = cancellable;
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->cancellable = _tmp4_;
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_item_removal_queue_remove_now_co (_data_);
#line 5198 "rygel-http-post-test.c"
}


void rygel_item_removal_queue_remove_now_finish (RygelItemRemovalQueue* self, GAsyncResult* _res_) {
	RygelItemRemovalQueueRemoveNowData* _data_;
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 5206 "rygel-http-post-test.c"
}


static gboolean _rygel_item_removal_queue_remove_now_co_gsource_func (gpointer self) {
	gboolean result;
	result = rygel_item_removal_queue_remove_now_co (self);
#line 498 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 5215 "rygel-http-post-test.c"
}


static gboolean rygel_item_removal_queue_remove_now_co (RygelItemRemovalQueueRemoveNowData* _data_) {
#line 497 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	switch (_data_->_state_) {
#line 497 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case 0:
#line 5224 "rygel-http-post-test.c"
		goto _state_0;
#line 497 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case 1:
#line 5228 "rygel-http-post-test.c"
		goto _state_1;
		default:
#line 497 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_assert_not_reached ();
#line 5233 "rygel-http-post-test.c"
	}
	_state_0:
#line 498 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _rygel_item_removal_queue_remove_now_co_gsource_func, _data_, NULL);
#line 500 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_data_->_state_ = 1;
#line 500 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return FALSE;
#line 5242 "rygel-http-post-test.c"
	_state_1:
	;
#line 497 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	if (_data_->_state_ == 0) {
#line 497 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5249 "rygel-http-post-test.c"
	} else {
#line 497 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 5253 "rygel-http-post-test.c"
	}
#line 497 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_object_unref (_data_->_async_result);
#line 497 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return FALSE;
#line 5259 "rygel-http-post-test.c"
}


RygelItemRemovalQueue* rygel_item_removal_queue_construct (GType object_type) {
	RygelItemRemovalQueue * self = NULL;
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelItemRemovalQueue*) g_object_new (object_type, NULL);
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self;
#line 5269 "rygel-http-post-test.c"
}


RygelItemRemovalQueue* rygel_item_removal_queue_new (void) {
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return rygel_item_removal_queue_construct (RYGEL_TYPE_ITEM_REMOVAL_QUEUE);
#line 5276 "rygel-http-post-test.c"
}


static void rygel_item_removal_queue_class_init (RygelItemRemovalQueueClass * klass) {
#line 488 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_item_removal_queue_parent_class = g_type_class_peek_parent (klass);
#line 5283 "rygel-http-post-test.c"
}


static void rygel_item_removal_queue_instance_init (RygelItemRemovalQueue * self) {
}


GType rygel_item_removal_queue_get_type (void) {
	static volatile gsize rygel_item_removal_queue_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_item_removal_queue_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelItemRemovalQueueClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_item_removal_queue_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelItemRemovalQueue), 0, (GInstanceInitFunc) rygel_item_removal_queue_instance_init, NULL };
		GType rygel_item_removal_queue_type_id;
		rygel_item_removal_queue_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelItemRemovalQueue", &g_define_type_info, 0);
		g_once_init_leave (&rygel_item_removal_queue_type_id__volatile, rygel_item_removal_queue_type_id);
	}
	return rygel_item_removal_queue_type_id__volatile;
}


RygelMediaObject* rygel_media_object_construct (GType object_type) {
	RygelMediaObject * self = NULL;
#line 504 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelMediaObject*) g_object_new (object_type, NULL);
#line 504 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self;
#line 5309 "rygel-http-post-test.c"
}


RygelMediaObject* rygel_media_object_new (void) {
#line 504 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return rygel_media_object_construct (RYGEL_TYPE_MEDIA_OBJECT);
#line 5316 "rygel-http-post-test.c"
}


static void rygel_media_object_class_init (RygelMediaObjectClass * klass) {
#line 504 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_media_object_parent_class = g_type_class_peek_parent (klass);
#line 504 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->finalize = rygel_media_object_finalize;
#line 5325 "rygel-http-post-test.c"
}


static void rygel_media_object_instance_init (RygelMediaObject * self) {
	gchar* _tmp0_;
#line 505 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = g_strdup ("");
#line 505 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->mime_type = _tmp0_;
#line 5335 "rygel-http-post-test.c"
}


static void rygel_media_object_finalize (GObject* obj) {
	RygelMediaObject * self;
#line 504 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_MEDIA_OBJECT, RygelMediaObject);
#line 505 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_free0 (self->mime_type);
#line 504 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (rygel_media_object_parent_class)->finalize (obj);
#line 5347 "rygel-http-post-test.c"
}


GType rygel_media_object_get_type (void) {
	static volatile gsize rygel_media_object_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_media_object_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelMediaObjectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_media_object_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelMediaObject), 0, (GInstanceInitFunc) rygel_media_object_instance_init, NULL };
		GType rygel_media_object_type_id;
		rygel_media_object_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelMediaObject", &g_define_type_info, 0);
		g_once_init_leave (&rygel_media_object_type_id__volatile, rygel_media_object_type_id);
	}
	return rygel_media_object_type_id__volatile;
}


RygelThumbnail* rygel_thumbnail_construct (GType object_type) {
	RygelThumbnail * self = NULL;
#line 508 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelThumbnail*) g_object_new (object_type, NULL);
#line 508 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self;
#line 5369 "rygel-http-post-test.c"
}


RygelThumbnail* rygel_thumbnail_new (void) {
#line 508 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return rygel_thumbnail_construct (RYGEL_TYPE_THUMBNAIL);
#line 5376 "rygel-http-post-test.c"
}


static void rygel_thumbnail_class_init (RygelThumbnailClass * klass) {
#line 508 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_thumbnail_parent_class = g_type_class_peek_parent (klass);
#line 508 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->finalize = rygel_thumbnail_finalize;
#line 5385 "rygel-http-post-test.c"
}


static void rygel_thumbnail_instance_init (RygelThumbnail * self) {
}


static void rygel_thumbnail_finalize (GObject* obj) {
	RygelThumbnail * self;
#line 508 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_THUMBNAIL, RygelThumbnail);
#line 509 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_free0 (self->file_extension);
#line 508 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (rygel_thumbnail_parent_class)->finalize (obj);
#line 5401 "rygel-http-post-test.c"
}


GType rygel_thumbnail_get_type (void) {
	static volatile gsize rygel_thumbnail_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_thumbnail_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelThumbnailClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_thumbnail_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelThumbnail), 0, (GInstanceInitFunc) rygel_thumbnail_instance_init, NULL };
		GType rygel_thumbnail_type_id;
		rygel_thumbnail_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelThumbnail", &g_define_type_info, 0);
		g_once_init_leave (&rygel_thumbnail_type_id__volatile, rygel_thumbnail_type_id);
	}
	return rygel_thumbnail_type_id__volatile;
}


RygelVisualItem* rygel_visual_item_construct (GType object_type) {
	RygelVisualItem * self = NULL;
#line 516 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelVisualItem*) rygel_media_item_construct_for_visual_item (object_type);
#line 515 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self;
#line 5423 "rygel-http-post-test.c"
}


RygelVisualItem* rygel_visual_item_new (void) {
#line 515 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return rygel_visual_item_construct (RYGEL_TYPE_VISUAL_ITEM);
#line 5430 "rygel-http-post-test.c"
}


static void rygel_visual_item_class_init (RygelVisualItemClass * klass) {
#line 512 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_visual_item_parent_class = g_type_class_peek_parent (klass);
#line 512 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->finalize = rygel_visual_item_finalize;
#line 5439 "rygel-http-post-test.c"
}


static void rygel_visual_item_instance_init (RygelVisualItem * self) {
	GeeArrayList* _tmp0_;
#line 513 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = gee_array_list_new (RYGEL_TYPE_THUMBNAIL, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL);
#line 513 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->thumbnails = _tmp0_;
#line 5449 "rygel-http-post-test.c"
}


static void rygel_visual_item_finalize (GObject* obj) {
	RygelVisualItem * self;
#line 512 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_VISUAL_ITEM, RygelVisualItem);
#line 513 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->thumbnails);
#line 512 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (rygel_visual_item_parent_class)->finalize (obj);
#line 5461 "rygel-http-post-test.c"
}


GType rygel_visual_item_get_type (void) {
	static volatile gsize rygel_visual_item_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_visual_item_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelVisualItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_visual_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelVisualItem), 0, (GInstanceInitFunc) rygel_visual_item_instance_init, NULL };
		GType rygel_visual_item_type_id;
		rygel_visual_item_type_id = g_type_register_static (RYGEL_TYPE_MEDIA_ITEM, "RygelVisualItem", &g_define_type_info, 0);
		g_once_init_leave (&rygel_visual_item_type_id__volatile, rygel_visual_item_type_id);
	}
	return rygel_visual_item_type_id__volatile;
}


RygelSubtitle* rygel_subtitle_construct (GType object_type) {
	RygelSubtitle * self = NULL;
#line 520 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelSubtitle*) g_object_new (object_type, NULL);
#line 520 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self;
#line 5483 "rygel-http-post-test.c"
}


RygelSubtitle* rygel_subtitle_new (void) {
#line 520 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return rygel_subtitle_construct (RYGEL_TYPE_SUBTITLE);
#line 5490 "rygel-http-post-test.c"
}


static void rygel_subtitle_class_init (RygelSubtitleClass * klass) {
#line 520 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_subtitle_parent_class = g_type_class_peek_parent (klass);
#line 520 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->finalize = rygel_subtitle_finalize;
#line 5499 "rygel-http-post-test.c"
}


static void rygel_subtitle_instance_init (RygelSubtitle * self) {
}


static void rygel_subtitle_finalize (GObject* obj) {
	RygelSubtitle * self;
#line 520 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_SUBTITLE, RygelSubtitle);
#line 521 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_free0 (self->caption_type);
#line 520 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (rygel_subtitle_parent_class)->finalize (obj);
#line 5515 "rygel-http-post-test.c"
}


GType rygel_subtitle_get_type (void) {
	static volatile gsize rygel_subtitle_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_subtitle_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelSubtitleClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_subtitle_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelSubtitle), 0, (GInstanceInitFunc) rygel_subtitle_instance_init, NULL };
		GType rygel_subtitle_type_id;
		rygel_subtitle_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelSubtitle", &g_define_type_info, 0);
		g_once_init_leave (&rygel_subtitle_type_id__volatile, rygel_subtitle_type_id);
	}
	return rygel_subtitle_type_id__volatile;
}


RygelVideoItem* rygel_video_item_construct (GType object_type) {
	RygelVideoItem * self = NULL;
#line 524 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelVideoItem*) rygel_visual_item_construct (object_type);
#line 524 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self;
#line 5537 "rygel-http-post-test.c"
}


RygelVideoItem* rygel_video_item_new (void) {
#line 524 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return rygel_video_item_construct (RYGEL_TYPE_VIDEO_ITEM);
#line 5544 "rygel-http-post-test.c"
}


static void rygel_video_item_class_init (RygelVideoItemClass * klass) {
#line 524 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_video_item_parent_class = g_type_class_peek_parent (klass);
#line 524 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->finalize = rygel_video_item_finalize;
#line 5553 "rygel-http-post-test.c"
}


static void rygel_video_item_instance_init (RygelVideoItem * self) {
	GeeArrayList* _tmp0_;
#line 525 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = gee_array_list_new (RYGEL_TYPE_SUBTITLE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL);
#line 525 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->subtitles = _tmp0_;
#line 5563 "rygel-http-post-test.c"
}


static void rygel_video_item_finalize (GObject* obj) {
	RygelVideoItem * self;
#line 524 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_VIDEO_ITEM, RygelVideoItem);
#line 525 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->subtitles);
#line 524 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (rygel_video_item_parent_class)->finalize (obj);
#line 5575 "rygel-http-post-test.c"
}


GType rygel_video_item_get_type (void) {
	static volatile gsize rygel_video_item_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_video_item_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelVideoItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_video_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelVideoItem), 0, (GInstanceInitFunc) rygel_video_item_instance_init, NULL };
		GType rygel_video_item_type_id;
		rygel_video_item_type_id = g_type_register_static (RYGEL_TYPE_VISUAL_ITEM, "RygelVideoItem", &g_define_type_info, 0);
		g_once_init_leave (&rygel_video_item_type_id__volatile, rygel_video_item_type_id);
	}
	return rygel_video_item_type_id__volatile;
}


RygelMusicItem* rygel_music_item_construct (GType object_type, const gchar* id, RygelMediaContainer* parent) {
	RygelMusicItem * self = NULL;
	const gchar* _tmp0_;
	RygelMediaContainer* _tmp1_;
#line 531 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (id != NULL, NULL);
#line 531 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (parent != NULL, NULL);
#line 532 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = id;
#line 532 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = parent;
#line 532 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelMusicItem*) rygel_media_item_construct (object_type, _tmp0_, _tmp1_);
#line 531 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self;
#line 5607 "rygel-http-post-test.c"
}


RygelMusicItem* rygel_music_item_new (const gchar* id, RygelMediaContainer* parent) {
#line 531 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return rygel_music_item_construct (RYGEL_TYPE_MUSIC_ITEM, id, parent);
#line 5614 "rygel-http-post-test.c"
}


static void rygel_music_item_class_init (RygelMusicItemClass * klass) {
#line 528 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_music_item_parent_class = g_type_class_peek_parent (klass);
#line 528 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->finalize = rygel_music_item_finalize;
#line 5623 "rygel-http-post-test.c"
}


static void rygel_music_item_instance_init (RygelMusicItem * self) {
}


static void rygel_music_item_finalize (GObject* obj) {
	RygelMusicItem * self;
#line 528 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_MUSIC_ITEM, RygelMusicItem);
#line 529 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_object_unref0 (self->album_art);
#line 528 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (rygel_music_item_parent_class)->finalize (obj);
#line 5639 "rygel-http-post-test.c"
}


GType rygel_music_item_get_type (void) {
	static volatile gsize rygel_music_item_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_music_item_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelMusicItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_music_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelMusicItem), 0, (GInstanceInitFunc) rygel_music_item_instance_init, NULL };
		GType rygel_music_item_type_id;
		rygel_music_item_type_id = g_type_register_static (RYGEL_TYPE_MEDIA_ITEM, "RygelMusicItem", &g_define_type_info, 0);
		g_once_init_leave (&rygel_music_item_type_id__volatile, rygel_music_item_type_id);
	}
	return rygel_music_item_type_id__volatile;
}


GQuark rygel_content_directory_error_quark (void) {
	return g_quark_from_static_string ("rygel_content_directory_error-quark");
}


RygelTranscoder* rygel_transcoder_construct (GType object_type, const gchar* extension) {
	RygelTranscoder * self = NULL;
	const gchar* _tmp0_;
#line 543 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (extension != NULL, NULL);
#line 543 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = (RygelTranscoder*) g_object_new (object_type, NULL);
#line 544 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = extension;
#line 544 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_transcoder_set_extension (self, _tmp0_);
#line 543 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return self;
#line 5673 "rygel-http-post-test.c"
}


RygelTranscoder* rygel_transcoder_new (const gchar* extension) {
#line 543 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return rygel_transcoder_construct (RYGEL_TYPE_TRANSCODER, extension);
#line 5680 "rygel-http-post-test.c"
}


const gchar* rygel_transcoder_get_extension (RygelTranscoder* self) {
	const gchar* result;
	const gchar* _tmp0_;
#line 541 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 541 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = self->priv->_extension;
#line 541 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	result = _tmp0_;
#line 541 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	return result;
#line 5695 "rygel-http-post-test.c"
}


void rygel_transcoder_set_extension (RygelTranscoder* self, const gchar* value) {
	const gchar* _tmp0_;
	gchar* _tmp1_;
#line 541 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_return_if_fail (self != NULL);
#line 541 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp0_ = value;
#line 541 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 541 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_free0 (self->priv->_extension);
#line 541 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->priv->_extension = _tmp1_;
#line 541 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_object_notify ((GObject *) self, "extension");
#line 5714 "rygel-http-post-test.c"
}


static void rygel_transcoder_class_init (RygelTranscoderClass * klass) {
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	rygel_transcoder_parent_class = g_type_class_peek_parent (klass);
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_type_class_add_private (klass, sizeof (RygelTranscoderPrivate));
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_rygel_transcoder_get_property;
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_rygel_transcoder_set_property;
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (klass)->finalize = rygel_transcoder_finalize;
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), RYGEL_TRANSCODER_EXTENSION, g_param_spec_string ("extension", "extension", "extension", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 5731 "rygel-http-post-test.c"
}


static void rygel_transcoder_instance_init (RygelTranscoder * self) {
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self->priv = RYGEL_TRANSCODER_GET_PRIVATE (self);
#line 5738 "rygel-http-post-test.c"
}


static void rygel_transcoder_finalize (GObject* obj) {
	RygelTranscoder * self;
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_TRANSCODER, RygelTranscoder);
#line 541 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	_g_free0 (self->priv->_extension);
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	G_OBJECT_CLASS (rygel_transcoder_parent_class)->finalize (obj);
#line 5750 "rygel-http-post-test.c"
}


GType rygel_transcoder_get_type (void) {
	static volatile gsize rygel_transcoder_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_transcoder_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RygelTranscoderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_transcoder_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelTranscoder), 0, (GInstanceInitFunc) rygel_transcoder_instance_init, NULL };
		GType rygel_transcoder_type_id;
		rygel_transcoder_type_id = g_type_register_static (G_TYPE_OBJECT, "RygelTranscoder", &g_define_type_info, 0);
		g_once_init_leave (&rygel_transcoder_type_id__volatile, rygel_transcoder_type_id);
	}
	return rygel_transcoder_type_id__volatile;
}


static void _vala_rygel_transcoder_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	RygelTranscoder * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, RYGEL_TYPE_TRANSCODER, RygelTranscoder);
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	switch (property_id) {
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case RYGEL_TRANSCODER_EXTENSION:
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		g_value_set_string (value, rygel_transcoder_get_extension (self));
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		break;
#line 5777 "rygel-http-post-test.c"
		default:
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		break;
#line 5783 "rygel-http-post-test.c"
	}
}


static void _vala_rygel_transcoder_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	RygelTranscoder * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, RYGEL_TYPE_TRANSCODER, RygelTranscoder);
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
	switch (property_id) {
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		case RYGEL_TRANSCODER_EXTENSION:
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		rygel_transcoder_set_extension (self, g_value_get_string (value));
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		break;
#line 5799 "rygel-http-post-test.c"
		default:
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 540 "/home/jens/Source/rygel/tests/rygel-http-post-test.vala"
		break;
#line 5805 "rygel-http-post-test.c"
	}
}



