/* gitg-diff-view-request.c generated by valac 0.27.1.26-9b1a5-dirty, the Vala compiler
 * generated from gitg-diff-view-request.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2012 - Jesse van den Kieboom
 *
 * gitg is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * gitg 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with gitg. If not, see <http://www.gnu.org/licenses/>.
 */

#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <webkit2/webkit2.h>
#include <libsoup/soup.h>
#include <json-glib/json-glib.h>
#include <gobject/gvaluecollector.h>


#define GITG_TYPE_DIFF_VIEW_REQUEST (gitg_diff_view_request_get_type ())
#define GITG_DIFF_VIEW_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW_REQUEST, GitgDiffViewRequest))
#define GITG_DIFF_VIEW_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_VIEW_REQUEST, GitgDiffViewRequestClass))
#define GITG_IS_DIFF_VIEW_REQUEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW_REQUEST))
#define GITG_IS_DIFF_VIEW_REQUEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_VIEW_REQUEST))
#define GITG_DIFF_VIEW_REQUEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_VIEW_REQUEST, GitgDiffViewRequestClass))

typedef struct _GitgDiffViewRequest GitgDiffViewRequest;
typedef struct _GitgDiffViewRequestClass GitgDiffViewRequestClass;
typedef struct _GitgDiffViewRequestPrivate GitgDiffViewRequestPrivate;

#define GITG_TYPE_DIFF_VIEW (gitg_diff_view_get_type ())
#define GITG_DIFF_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW, GitgDiffView))
#define GITG_DIFF_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_VIEW, GitgDiffViewClass))
#define GITG_IS_DIFF_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW))
#define GITG_IS_DIFF_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_VIEW))
#define GITG_DIFF_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_VIEW, GitgDiffViewClass))

typedef struct _GitgDiffView GitgDiffView;
typedef struct _GitgDiffViewClass GitgDiffViewClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define __vala_SoupURI_free0(var) ((var == NULL) ? NULL : (var = (_vala_SoupURI_free (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
#define _gitg_diff_view_request_unref0(var) ((var == NULL) ? NULL : (var = (gitg_diff_view_request_unref (var), NULL)))
typedef struct _Block6Data Block6Data;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_thread_unref0(var) ((var == NULL) ? NULL : (var = (g_thread_unref (var), NULL)))
typedef struct _GitgDiffViewRequestRunImplData GitgDiffViewRequestRunImplData;
#define __vala_JsonNode_free0(var) ((var == NULL) ? NULL : (var = (_vala_JsonNode_free (var), NULL)))
typedef struct _Block7Data Block7Data;
typedef struct _GitgParamSpecDiffViewRequest GitgParamSpecDiffViewRequest;

struct _GitgDiffViewRequest {
	GTypeInstance parent_instance;
	volatile int ref_count;
	GitgDiffViewRequestPrivate * priv;
	GitgDiffView* d_view;
	SoupURI* d_uri;
	gchar* d_mimetype;
	gint64 d_size;
	WebKitURISchemeRequest* d_request;
	gboolean d_hasView;
};

struct _GitgDiffViewRequestClass {
	GTypeClass parent_class;
	void (*finalize) (GitgDiffViewRequest *self);
	GInputStream* (*run_async) (GitgDiffViewRequest* self, GCancellable* cancellable, GError** error);
	gint64 (*get_content_length) (GitgDiffViewRequest* self);
	gchar* (*get_content_type) (GitgDiffViewRequest* self);
};

struct _GitgDiffViewRequestPrivate {
	GHashTable* d_form;
};

struct _Block6Data {
	int _ref_count_;
	GitgDiffViewRequest* self;
	GSourceFunc callback;
	gpointer callback_target;
	GDestroyNotify callback_target_destroy_notify;
	GInputStream* ret;
	GError* err;
	GCancellable* cancellable;
	gpointer _async_data_;
};

struct _GitgDiffViewRequestRunImplData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GitgDiffViewRequest* self;
	GCancellable* cancellable;
	GInputStream* result;
	Block6Data* _data6_;
	GCancellable* _tmp0_;
	GThread* _tmp1_;
	GThread* _tmp2_;
	GError* _tmp3_;
	GError* _tmp4_;
	GError* _tmp5_;
	GInputStream* _tmp6_;
	GInputStream* _tmp7_;
	GError * _inner_error_;
};

struct _Block7Data {
	int _ref_count_;
	GitgDiffViewRequest* self;
	GCancellable* cancellable;
};

struct _GitgParamSpecDiffViewRequest {
	GParamSpec parent_instance;
};


static gpointer gitg_diff_view_request_parent_class = NULL;

gpointer gitg_diff_view_request_ref (gpointer instance);
void gitg_diff_view_request_unref (gpointer instance);
GParamSpec* gitg_param_spec_diff_view_request (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void gitg_value_set_diff_view_request (GValue* value, gpointer v_object);
void gitg_value_take_diff_view_request (GValue* value, gpointer v_object);
gpointer gitg_value_get_diff_view_request (const GValue* value);
GType gitg_diff_view_request_get_type (void) G_GNUC_CONST;
GType gitg_diff_view_get_type (void) G_GNUC_CONST;
#define GITG_DIFF_VIEW_REQUEST_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_DIFF_VIEW_REQUEST, GitgDiffViewRequestPrivate))
enum  {
	GITG_DIFF_VIEW_REQUEST_DUMMY_PROPERTY
};
static void _vala_SoupURI_free (SoupURI* self);
GitgDiffViewRequest* gitg_diff_view_request_new (GitgDiffView* view, WebKitURISchemeRequest* request, SoupURI* uri);
GitgDiffViewRequest* gitg_diff_view_request_construct (GType object_type, GitgDiffView* view, WebKitURISchemeRequest* request, SoupURI* uri);
static SoupURI* _vala_SoupURI_copy (SoupURI* self);
void gitg_diff_view_request_finish_empty (GitgDiffViewRequest* self);
gint64 gitg_diff_view_request_get_content_length (GitgDiffViewRequest* self);
gchar* gitg_diff_view_request_get_content_type (GitgDiffViewRequest* self);
gchar* gitg_diff_view_request_parameter (GitgDiffViewRequest* self, const gchar* v);
static void _g_free0_ (gpointer var);
GInputStream* gitg_diff_view_request_run_async (GitgDiffViewRequest* self, GCancellable* cancellable, GError** error);
static GInputStream* gitg_diff_view_request_real_run_async (GitgDiffViewRequest* self, GCancellable* cancellable, GError** error);
static void gitg_diff_view_request_run_impl_data_free (gpointer _data);
static void gitg_diff_view_request_run_impl (GitgDiffViewRequest* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static GInputStream* gitg_diff_view_request_run_impl_finish (GitgDiffViewRequest* self, GAsyncResult* _res_, GError** error);
static gboolean gitg_diff_view_request_run_impl_co (GitgDiffViewRequestRunImplData* _data_);
static Block6Data* block6_data_ref (Block6Data* _data6_);
static void block6_data_unref (void * _userdata_);
static gboolean _gitg_diff_view_request_run_impl_co_gsource_func (gpointer self);
static void* __lambda48_ (Block6Data* _data6_);
static gpointer ___lambda48__gthread_func (gpointer self);
GInputStream* gitg_diff_view_request_json_to_stream (GitgDiffViewRequest* self, JsonBuilder* builder, GCancellable* cancellable, gint64* size, GError** error);
static void _vala_JsonNode_free (JsonNode* self);
static void* _g_realloc_grealloc_func (void* data, gsize size);
static void _g_free_gdestroy_notify (void* data);
static guint8* _vala_array_dup9 (guint8* self, int length);
static guint8* _vala_array_dup10 (guint8* self, int length);
void gitg_diff_view_request_run (GitgDiffViewRequest* self, GCancellable* cancellable);
static Block7Data* block7_data_ref (Block7Data* _data7_);
static void block7_data_unref (void * _userdata_);
static void __lambda49_ (Block7Data* _data7_, GObject* obj, GAsyncResult* res);
static void ___lambda49__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static gint64 gitg_diff_view_request_real_get_content_length (GitgDiffViewRequest* self);
static gchar* gitg_diff_view_request_real_get_content_type (GitgDiffViewRequest* self);
SoupURI* gitg_diff_view_request_get_uri (GitgDiffViewRequest* self);
gboolean gitg_diff_view_request_get_has_view (GitgDiffViewRequest* self);
GitgDiffView* gitg_diff_view_request_get_view (GitgDiffViewRequest* self);
static void gitg_diff_view_request_finalize (GitgDiffViewRequest* obj);


static void _vala_SoupURI_free (SoupURI* self) {
#line 25 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_boxed_free (soup_uri_get_type (), self);
#line 191 "gitg-diff-view-request.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 34 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return self ? g_object_ref (self) : NULL;
#line 198 "gitg-diff-view-request.c"
}


static SoupURI* _vala_SoupURI_copy (SoupURI* self) {
#line 36 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return g_boxed_copy (soup_uri_get_type (), self);
#line 205 "gitg-diff-view-request.c"
}


static gpointer __vala_SoupURI_copy0 (gpointer self) {
#line 36 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return self ? _vala_SoupURI_copy (self) : NULL;
#line 212 "gitg-diff-view-request.c"
}


GitgDiffViewRequest* gitg_diff_view_request_construct (GType object_type, GitgDiffView* view, WebKitURISchemeRequest* request, SoupURI* uri) {
	GitgDiffViewRequest* self = NULL;
	GitgDiffView* _tmp0_ = NULL;
	GitgDiffView* _tmp1_ = NULL;
	WebKitURISchemeRequest* _tmp2_ = NULL;
	WebKitURISchemeRequest* _tmp3_ = NULL;
	SoupURI* _tmp4_ = NULL;
	SoupURI* _tmp5_ = NULL;
	GitgDiffView* _tmp6_ = NULL;
#line 32 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_return_val_if_fail (request != NULL, NULL);
#line 32 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_return_val_if_fail (uri != NULL, NULL);
#line 32 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	self = (GitgDiffViewRequest*) g_type_create_instance (object_type);
#line 34 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp0_ = view;
#line 34 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 34 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_g_object_unref0 (self->d_view);
#line 34 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	self->d_view = _tmp1_;
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp2_ = request;
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_g_object_unref0 (self->d_request);
#line 35 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	self->d_request = _tmp3_;
#line 36 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp4_ = uri;
#line 36 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp5_ = __vala_SoupURI_copy0 (_tmp4_);
#line 36 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	__vala_SoupURI_free0 (self->d_uri);
#line 36 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	self->d_uri = _tmp5_;
#line 37 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	self->d_size = (gint64) (-1);
#line 38 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_g_free0 (self->d_mimetype);
#line 38 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	self->d_mimetype = NULL;
#line 39 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_g_hash_table_unref0 (self->priv->d_form);
#line 39 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	self->priv->d_form = NULL;
#line 40 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp6_ = view;
#line 40 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	self->d_hasView = _tmp6_ != NULL;
#line 32 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return self;
#line 271 "gitg-diff-view-request.c"
}


GitgDiffViewRequest* gitg_diff_view_request_new (GitgDiffView* view, WebKitURISchemeRequest* request, SoupURI* uri) {
#line 32 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return gitg_diff_view_request_construct (GITG_TYPE_DIFF_VIEW_REQUEST, view, request, uri);
#line 278 "gitg-diff-view-request.c"
}


void gitg_diff_view_request_finish_empty (GitgDiffViewRequest* self) {
	WebKitURISchemeRequest* _tmp0_ = NULL;
	GMemoryInputStream* _tmp1_ = NULL;
	GMemoryInputStream* _tmp2_ = NULL;
	gint64 _tmp3_ = 0LL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
#line 53 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_return_if_fail (self != NULL);
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp0_ = self->d_request;
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp1_ = (GMemoryInputStream*) g_memory_input_stream_new ();
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp2_ = _tmp1_;
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp3_ = gitg_diff_view_request_get_content_length (self);
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp4_ = gitg_diff_view_request_get_content_type (self);
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp5_ = _tmp4_;
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	webkit_uri_scheme_request_finish (_tmp0_, (GInputStream*) _tmp2_, _tmp3_, _tmp5_);
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_g_free0 (_tmp5_);
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_g_object_unref0 (_tmp2_);
#line 309 "gitg-diff-view-request.c"
}


static void _g_free0_ (gpointer var) {
#line 72 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	var = (g_free (var), NULL);
#line 316 "gitg-diff-view-request.c"
}


gchar* gitg_diff_view_request_parameter (GitgDiffViewRequest* self, const gchar* v) {
	gchar* result = NULL;
	GHashTable* _tmp0_ = NULL;
	GHashTable* _tmp10_ = NULL;
	const gchar* _tmp11_ = NULL;
	gconstpointer _tmp12_ = NULL;
	gchar* _tmp13_ = NULL;
#line 60 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 60 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_return_val_if_fail (v != NULL, NULL);
#line 62 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp0_ = self->priv->d_form;
#line 62 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (_tmp0_ == NULL) {
#line 335 "gitg-diff-view-request.c"
		gchar* q = NULL;
		SoupURI* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
		gchar* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
#line 64 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp1_ = self->d_uri;
#line 64 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp2_ = soup_uri_get_query (_tmp1_);
#line 64 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp3_ = g_strdup (_tmp2_);
#line 64 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		q = _tmp3_;
#line 66 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp4_ = q;
#line 66 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		if (_tmp4_ != NULL) {
#line 353 "gitg-diff-view-request.c"
			const gchar* _tmp5_ = NULL;
			GHashTable* _tmp6_ = NULL;
#line 68 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_tmp5_ = q;
#line 68 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_tmp6_ = soup_form_decode (_tmp5_);
#line 68 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_g_hash_table_unref0 (self->priv->d_form);
#line 68 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			self->priv->d_form = _tmp6_;
#line 364 "gitg-diff-view-request.c"
		} else {
			GHashFunc _tmp7_ = NULL;
			GEqualFunc _tmp8_ = NULL;
			GHashTable* _tmp9_ = NULL;
#line 72 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_tmp7_ = g_str_hash;
#line 72 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_tmp8_ = g_str_equal;
#line 72 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_tmp9_ = g_hash_table_new_full (_tmp7_, _tmp8_, _g_free0_, _g_free0_);
#line 72 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_g_hash_table_unref0 (self->priv->d_form);
#line 72 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			self->priv->d_form = _tmp9_;
#line 379 "gitg-diff-view-request.c"
		}
#line 62 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_free0 (q);
#line 383 "gitg-diff-view-request.c"
	}
#line 76 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp10_ = self->priv->d_form;
#line 76 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp11_ = v;
#line 76 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp12_ = g_hash_table_lookup (_tmp10_, _tmp11_);
#line 76 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp13_ = g_strdup ((const gchar*) _tmp12_);
#line 76 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	result = _tmp13_;
#line 76 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return result;
#line 397 "gitg-diff-view-request.c"
}


static GInputStream* gitg_diff_view_request_real_run_async (GitgDiffViewRequest* self, GCancellable* cancellable, GError** error) {
	GInputStream* result = NULL;
#line 86 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	result = NULL;
#line 86 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return result;
#line 407 "gitg-diff-view-request.c"
}


GInputStream* gitg_diff_view_request_run_async (GitgDiffViewRequest* self, GCancellable* cancellable, GError** error) {
#line 84 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 84 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return GITG_DIFF_VIEW_REQUEST_GET_CLASS (self)->run_async (self, cancellable, error);
#line 416 "gitg-diff-view-request.c"
}


static void gitg_diff_view_request_run_impl_data_free (gpointer _data) {
	GitgDiffViewRequestRunImplData* _data_;
	_data_ = _data;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_g_object_unref0 (_data_->result);
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_gitg_diff_view_request_unref0 (_data_->self);
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_slice_free (GitgDiffViewRequestRunImplData, _data_);
#line 429 "gitg-diff-view-request.c"
}


static gpointer _gitg_diff_view_request_ref0 (gpointer self) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return self ? gitg_diff_view_request_ref (self) : NULL;
#line 436 "gitg-diff-view-request.c"
}


static void gitg_diff_view_request_run_impl (GitgDiffViewRequest* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GitgDiffViewRequestRunImplData* _data_;
	GitgDiffViewRequest* _tmp0_ = NULL;
	GCancellable* _tmp1_ = NULL;
	GCancellable* _tmp2_ = NULL;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_ = g_slice_new0 (GitgDiffViewRequestRunImplData);
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_async_result = g_simple_async_result_new (NULL, _callback_, _user_data_, gitg_diff_view_request_run_impl);
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gitg_diff_view_request_run_impl_data_free);
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp0_ = _gitg_diff_view_request_ref0 (self);
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->self = _tmp0_;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp1_ = cancellable;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_g_object_unref0 (_data_->cancellable);
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->cancellable = _tmp2_;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	gitg_diff_view_request_run_impl_co (_data_);
#line 465 "gitg-diff-view-request.c"
}


static GInputStream* gitg_diff_view_request_run_impl_finish (GitgDiffViewRequest* self, GAsyncResult* _res_, GError** error) {
	GInputStream* result;
	GitgDiffViewRequestRunImplData* _data_;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		return NULL;
#line 476 "gitg-diff-view-request.c"
	}
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	result = _data_->result;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->result = NULL;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return result;
#line 486 "gitg-diff-view-request.c"
}


static Block6Data* block6_data_ref (Block6Data* _data6_) {
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_atomic_int_inc (&_data6_->_ref_count_);
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return _data6_;
#line 495 "gitg-diff-view-request.c"
}


static void block6_data_unref (void * _userdata_) {
	Block6Data* _data6_;
	_data6_ = (Block6Data*) _userdata_;
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (g_atomic_int_dec_and_test (&_data6_->_ref_count_)) {
#line 504 "gitg-diff-view-request.c"
		GitgDiffViewRequest* self;
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		self = _data6_->self;
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_error_free0 (_data6_->err);
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_object_unref0 (_data6_->ret);
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		(_data6_->callback_target_destroy_notify == NULL) ? NULL : (_data6_->callback_target_destroy_notify (_data6_->callback_target), NULL);
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_data6_->callback = NULL;
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_data6_->callback_target = NULL;
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_data6_->callback_target_destroy_notify = NULL;
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_object_unref0 (_data6_->cancellable);
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_gitg_diff_view_request_unref0 (self);
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_slice_free (Block6Data, _data6_);
#line 526 "gitg-diff-view-request.c"
	}
}


static gboolean _gitg_diff_view_request_run_impl_co_gsource_func (gpointer self) {
	gboolean result;
	result = gitg_diff_view_request_run_impl_co (self);
#line 91 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return result;
#line 536 "gitg-diff-view-request.c"
}


static gpointer _g_error_copy0 (gpointer self) {
#line 103 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return self ? g_error_copy (self) : NULL;
#line 543 "gitg-diff-view-request.c"
}


static void* __lambda48_ (Block6Data* _data6_) {
	GitgDiffViewRequest* self;
	void* result = NULL;
	GSourceFunc _tmp6_ = NULL;
	void* _tmp6__target = NULL;
	GDestroyNotify _tmp6__target_destroy_notify = NULL;
	GError * _inner_error_ = NULL;
#line 95 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	self = _data6_->self;
#line 556 "gitg-diff-view-request.c"
	{
		GInputStream* _tmp0_ = NULL;
		GCancellable* _tmp1_ = NULL;
		GInputStream* _tmp2_ = NULL;
		GInputStream* _tmp3_ = NULL;
#line 99 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp1_ = _data6_->cancellable;
#line 99 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp2_ = gitg_diff_view_request_run_async (self, _tmp1_, &_inner_error_);
#line 99 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp0_ = _tmp2_;
#line 99 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 570 "gitg-diff-view-request.c"
			goto __catch35_g_error;
		}
#line 99 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp3_ = _tmp0_;
#line 99 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp0_ = NULL;
#line 99 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_object_unref0 (_data6_->ret);
#line 99 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_data6_->ret = _tmp3_;
#line 97 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_object_unref0 (_tmp0_);
#line 583 "gitg-diff-view-request.c"
	}
	goto __finally35;
	__catch35_g_error:
	{
		GError* e = NULL;
		GError* _tmp4_ = NULL;
		GError* _tmp5_ = NULL;
#line 97 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		e = _inner_error_;
#line 97 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_inner_error_ = NULL;
#line 103 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp4_ = e;
#line 103 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp5_ = _g_error_copy0 (_tmp4_);
#line 103 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_error_free0 (_data6_->err);
#line 103 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_data6_->err = _tmp5_;
#line 97 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_error_free0 (e);
#line 605 "gitg-diff-view-request.c"
	}
	__finally35:
#line 97 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 97 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.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 97 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_clear_error (&_inner_error_);
#line 97 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		return NULL;
#line 616 "gitg-diff-view-request.c"
	}
#line 107 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp6_ = _data6_->callback;
#line 107 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp6__target = _data6_->callback_target;
#line 107 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp6__target_destroy_notify = _data6_->callback_target_destroy_notify;
#line 107 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data6_->callback_target_destroy_notify = NULL;
#line 107 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _tmp6_, _tmp6__target, _tmp6__target_destroy_notify);
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	result = NULL;
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return result;
#line 632 "gitg-diff-view-request.c"
}


static gpointer ___lambda48__gthread_func (gpointer self) {
	gpointer result;
	result = __lambda48_ (self);
#line 95 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	block6_data_unref (self);
#line 95 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return result;
#line 643 "gitg-diff-view-request.c"
}


static gboolean gitg_diff_view_request_run_impl_co (GitgDiffViewRequestRunImplData* _data_) {
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	switch (_data_->_state_) {
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		case 0:
#line 652 "gitg-diff-view-request.c"
		goto _state_0;
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		case 1:
#line 656 "gitg-diff-view-request.c"
		goto _state_1;
		default:
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_assert_not_reached ();
#line 661 "gitg-diff-view-request.c"
	}
	_state_0:
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_data6_ = g_slice_new0 (Block6Data);
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_data6_->_ref_count_ = 1;
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_data6_->self = gitg_diff_view_request_ref (_data_->self);
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_tmp0_ = NULL;
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_tmp0_ = _data_->cancellable;
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_g_object_unref0 (_data_->_data6_->cancellable);
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_data6_->cancellable = _data_->_tmp0_;
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_data6_->_async_data_ = _data_;
#line 91 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_data6_->callback = _gitg_diff_view_request_run_impl_co_gsource_func;
#line 91 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_data6_->callback_target = _data_;
#line 91 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_data6_->callback_target_destroy_notify = NULL;
#line 92 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_data6_->ret = NULL;
#line 93 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_data6_->err = NULL;
#line 95 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_tmp1_ = NULL;
#line 95 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_tmp1_ = g_thread_new ("gitg-gtk-diff-view", ___lambda48__gthread_func, block6_data_ref (_data_->_data6_));
#line 95 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_tmp2_ = NULL;
#line 95 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_tmp2_ = _data_->_tmp1_;
#line 95 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_g_thread_unref0 (_data_->_tmp2_);
#line 112 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_state_ = 1;
#line 112 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return FALSE;
#line 704 "gitg-diff-view-request.c"
	_state_1:
	;
#line 114 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_tmp3_ = NULL;
#line 114 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_tmp3_ = _data_->_data6_->err;
#line 114 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (_data_->_tmp3_ != NULL) {
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_data_->_tmp4_ = NULL;
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_data_->_tmp4_ = _data_->_data6_->err;
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_data_->_tmp5_ = NULL;
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_data_->_tmp5_ = _g_error_copy0 (_data_->_tmp4_);
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_data_->_inner_error_ = _data_->_tmp5_;
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_error_free (_data_->_inner_error_);
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		block6_data_unref (_data_->_data6_);
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_data_->_data6_ = NULL;
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		if (_data_->_state_ == 0) {
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 735 "gitg-diff-view-request.c"
		} else {
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 739 "gitg-diff-view-request.c"
		}
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_object_unref (_data_->_async_result);
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		return FALSE;
#line 745 "gitg-diff-view-request.c"
	}
#line 120 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_tmp6_ = NULL;
#line 120 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_tmp6_ = _data_->_data6_->ret;
#line 120 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_tmp7_ = NULL;
#line 120 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_tmp7_ = _g_object_ref0 (_data_->_tmp6_);
#line 120 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->result = _data_->_tmp7_;
#line 120 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	block6_data_unref (_data_->_data6_);
#line 120 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_data6_ = NULL;
#line 120 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (_data_->_state_ == 0) {
#line 120 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 765 "gitg-diff-view-request.c"
	} else {
#line 120 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 769 "gitg-diff-view-request.c"
	}
#line 120 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_object_unref (_data_->_async_result);
#line 120 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return FALSE;
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	block6_data_unref (_data_->_data6_);
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_->_data6_ = NULL;
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (_data_->_state_ == 0) {
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 783 "gitg-diff-view-request.c"
	} else {
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 787 "gitg-diff-view-request.c"
	}
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_object_unref (_data_->_async_result);
#line 89 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return FALSE;
#line 793 "gitg-diff-view-request.c"
}


static void _vala_JsonNode_free (JsonNode* self) {
#line 126 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_boxed_free (json_node_get_type (), self);
#line 800 "gitg-diff-view-request.c"
}


static void* _g_realloc_grealloc_func (void* data, gsize size) {
	void* result;
	result = g_realloc (data, size);
#line 128 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return result;
#line 809 "gitg-diff-view-request.c"
}


static void _g_free_gdestroy_notify (void* data) {
#line 128 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_free (data);
#line 816 "gitg-diff-view-request.c"
}


static guint8* _vala_array_dup9 (guint8* self, int length) {
#line 141 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return g_memdup (self, length * sizeof (guint8));
#line 823 "gitg-diff-view-request.c"
}


static guint8* _vala_array_dup10 (guint8* self, int length) {
#line 143 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return g_memdup (self, length * sizeof (guint8));
#line 830 "gitg-diff-view-request.c"
}


GInputStream* gitg_diff_view_request_json_to_stream (GitgDiffViewRequest* self, JsonBuilder* builder, GCancellable* cancellable, gint64* size, GError** error) {
	gint64 _vala_size = 0LL;
	GInputStream* result = NULL;
	JsonGenerator* gen = NULL;
	JsonGenerator* _tmp0_ = NULL;
	JsonGenerator* _tmp1_ = NULL;
	JsonBuilder* _tmp2_ = NULL;
	JsonNode* _tmp3_ = NULL;
	JsonNode* _tmp4_ = NULL;
	GMemoryOutputStream* stream = NULL;
	GMemoryOutputStream* _tmp5_ = NULL;
	JsonGenerator* _tmp6_ = NULL;
	GMemoryOutputStream* _tmp7_ = NULL;
	GCancellable* _tmp8_ = NULL;
	gboolean _tmp9_ = FALSE;
	GCancellable* _tmp10_ = NULL;
	GMemoryOutputStream* _tmp14_ = NULL;
	guint8* data = NULL;
	GMemoryOutputStream* _tmp15_ = NULL;
	guint8* _tmp16_ = NULL;
	gint data_length1 = 0;
	gint _data_size_ = 0;
	GMemoryOutputStream* _tmp17_ = NULL;
	gsize _tmp18_ = 0UL;
	guint8* _tmp19_ = NULL;
	gint _tmp19__length1 = 0;
	gint64 _tmp20_ = 0LL;
	guint8* _tmp21_ = NULL;
	gint _tmp21__length1 = 0;
	guint8* _tmp22_ = NULL;
	gint _tmp22__length1 = 0;
	guint8* _tmp23_ = NULL;
	gint _tmp23__length1 = 0;
	GMemoryOutputStream* _tmp24_ = NULL;
	GDestroyNotify _tmp25_ = NULL;
	GDestroyNotify _tmp26_ = NULL;
	GMemoryInputStream* _tmp27_ = NULL;
	GError * _inner_error_ = NULL;
#line 123 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 123 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_return_val_if_fail (builder != NULL, NULL);
#line 125 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp0_ = json_generator_new ();
#line 125 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	gen = _tmp0_;
#line 126 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp1_ = gen;
#line 126 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp2_ = builder;
#line 126 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp3_ = json_builder_get_root (_tmp2_);
#line 126 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp4_ = _tmp3_;
#line 126 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	json_generator_set_root (_tmp1_, _tmp4_);
#line 126 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	__vala_JsonNode_free0 (_tmp4_);
#line 128 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp5_ = (GMemoryOutputStream*) g_memory_output_stream_new (NULL, 0, _g_realloc_grealloc_func, _g_free_gdestroy_notify);
#line 128 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	stream = _tmp5_;
#line 129 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp6_ = gen;
#line 129 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp7_ = stream;
#line 129 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp8_ = cancellable;
#line 129 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	json_generator_to_stream (_tmp6_, (GOutputStream*) _tmp7_, _tmp8_, &_inner_error_);
#line 129 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 129 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_propagate_error (error, _inner_error_);
#line 129 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_object_unref0 (stream);
#line 129 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_object_unref0 (gen);
#line 129 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		return NULL;
#line 914 "gitg-diff-view-request.c"
	}
#line 131 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp10_ = cancellable;
#line 131 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (_tmp10_ != NULL) {
#line 920 "gitg-diff-view-request.c"
		GCancellable* _tmp11_ = NULL;
		gboolean _tmp12_ = FALSE;
#line 131 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp11_ = cancellable;
#line 131 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp12_ = g_cancellable_is_cancelled (_tmp11_);
#line 131 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp9_ = _tmp12_;
#line 929 "gitg-diff-view-request.c"
	} else {
#line 131 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp9_ = FALSE;
#line 933 "gitg-diff-view-request.c"
	}
#line 131 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (_tmp9_) {
#line 937 "gitg-diff-view-request.c"
		GError* _tmp13_ = NULL;
#line 133 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp13_ = g_error_new_literal (G_IO_ERROR, G_IO_ERROR_CANCELLED, "Cancelled");
#line 133 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_inner_error_ = _tmp13_;
#line 133 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_propagate_error (error, _inner_error_);
#line 133 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_object_unref0 (stream);
#line 133 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_object_unref0 (gen);
#line 133 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		return NULL;
#line 951 "gitg-diff-view-request.c"
	}
#line 136 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp14_ = stream;
#line 136 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_output_stream_close ((GOutputStream*) _tmp14_, NULL, &_inner_error_);
#line 136 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 136 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_propagate_error (error, _inner_error_);
#line 136 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_object_unref0 (stream);
#line 136 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_object_unref0 (gen);
#line 136 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		return NULL;
#line 967 "gitg-diff-view-request.c"
	}
#line 138 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp15_ = stream;
#line 138 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp16_ = g_memory_output_stream_steal_data (_tmp15_);
#line 138 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	data = _tmp16_;
#line 138 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	data_length1 = -1;
#line 138 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_size_ = data_length1;
#line 139 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp17_ = stream;
#line 139 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp18_ = g_memory_output_stream_get_data_size (_tmp17_);
#line 139 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_vala_size = (gint64) _tmp18_;
#line 141 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp19_ = data;
#line 141 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp19__length1 = data_length1;
#line 141 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp20_ = _vala_size;
#line 141 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp21_ = ((_tmp19_ + 0) != NULL) ? _vala_array_dup9 (_tmp19_ + 0, ((gint) _tmp20_) - 0) : ((gpointer) (_tmp19_ + 0));
#line 141 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp21__length1 = ((gint) _tmp20_) - 0;
#line 141 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	data = (g_free (data), NULL);
#line 141 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	data = _tmp21_;
#line 141 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	data_length1 = _tmp21__length1;
#line 141 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data_size_ = data_length1;
#line 143 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp22_ = data;
#line 143 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp22__length1 = data_length1;
#line 143 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp23_ = (_tmp22_ != NULL) ? _vala_array_dup10 (_tmp22_, _tmp22__length1) : ((gpointer) _tmp22_);
#line 143 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp23__length1 = _tmp22__length1;
#line 143 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp24_ = stream;
#line 143 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_object_get (_tmp24_, "destroy-function", &_tmp25_, NULL);
#line 143 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp26_ = _tmp25_;
#line 143 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp27_ = (GMemoryInputStream*) g_memory_input_stream_new_from_data (_tmp23_, _tmp23__length1, _tmp26_);
#line 143 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	result = (GInputStream*) _tmp27_;
#line 143 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	data = (g_free (data), NULL);
#line 143 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_g_object_unref0 (stream);
#line 143 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_g_object_unref0 (gen);
#line 143 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (size) {
#line 143 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		*size = _vala_size;
#line 1031 "gitg-diff-view-request.c"
	}
#line 143 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return result;
#line 1035 "gitg-diff-view-request.c"
}


static Block7Data* block7_data_ref (Block7Data* _data7_) {
#line 146 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_atomic_int_inc (&_data7_->_ref_count_);
#line 146 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return _data7_;
#line 1044 "gitg-diff-view-request.c"
}


static void block7_data_unref (void * _userdata_) {
	Block7Data* _data7_;
	_data7_ = (Block7Data*) _userdata_;
#line 146 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (g_atomic_int_dec_and_test (&_data7_->_ref_count_)) {
#line 1053 "gitg-diff-view-request.c"
		GitgDiffViewRequest* self;
#line 146 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		self = _data7_->self;
#line 146 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_object_unref0 (_data7_->cancellable);
#line 146 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_gitg_diff_view_request_unref0 (self);
#line 146 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_slice_free (Block7Data, _data7_);
#line 1063 "gitg-diff-view-request.c"
	}
}


static void __lambda49_ (Block7Data* _data7_, GObject* obj, GAsyncResult* res) {
	GitgDiffViewRequest* self;
	GInputStream* stream = NULL;
	GInputStream* _tmp27_ = NULL;
	WebKitURISchemeRequest* _tmp29_ = NULL;
	GInputStream* _tmp30_ = NULL;
	gint64 _tmp31_ = 0LL;
	gchar* _tmp32_ = NULL;
	gchar* _tmp33_ = NULL;
	GError * _inner_error_ = NULL;
#line 148 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	self = _data7_->self;
#line 148 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_return_if_fail (res != NULL);
#line 149 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	stream = NULL;
#line 1084 "gitg-diff-view-request.c"
	{
		GInputStream* _tmp0_ = NULL;
		GAsyncResult* _tmp1_ = NULL;
		GInputStream* _tmp2_ = NULL;
		GInputStream* _tmp3_ = NULL;
#line 153 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp1_ = res;
#line 153 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp2_ = gitg_diff_view_request_run_impl_finish (self, _tmp1_, &_inner_error_);
#line 153 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp0_ = _tmp2_;
#line 153 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1098 "gitg-diff-view-request.c"
			goto __catch36_g_error;
		}
#line 153 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp3_ = _tmp0_;
#line 153 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp0_ = NULL;
#line 153 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_object_unref0 (stream);
#line 153 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		stream = _tmp3_;
#line 151 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_object_unref0 (_tmp0_);
#line 1111 "gitg-diff-view-request.c"
	}
	goto __finally36;
	__catch36_g_error:
	{
		GError* e = NULL;
		gboolean _tmp4_ = FALSE;
		const gchar* _tmp5_ = NULL;
#line 151 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		e = _inner_error_;
#line 151 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_inner_error_ = NULL;
#line 157 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp5_ = self->d_mimetype;
#line 157 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		if (_tmp5_ != NULL) {
#line 1127 "gitg-diff-view-request.c"
			const gchar* _tmp6_ = NULL;
#line 157 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_tmp6_ = self->d_mimetype;
#line 157 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_tmp4_ = g_strcmp0 (_tmp6_, "application/json") == 0;
#line 1133 "gitg-diff-view-request.c"
		} else {
#line 157 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_tmp4_ = FALSE;
#line 1137 "gitg-diff-view-request.c"
		}
#line 157 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		if (_tmp4_) {
#line 1141 "gitg-diff-view-request.c"
			JsonBuilder* builder = NULL;
			JsonBuilder* _tmp7_ = NULL;
			JsonBuilder* _tmp8_ = NULL;
			JsonBuilder* _tmp9_ = NULL;
			JsonBuilder* _tmp10_ = NULL;
			GError* _tmp11_ = NULL;
			const gchar* _tmp12_ = NULL;
			JsonBuilder* _tmp13_ = NULL;
#line 159 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_tmp7_ = json_builder_new ();
#line 159 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			builder = _tmp7_;
#line 161 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_tmp8_ = builder;
#line 161 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			json_builder_begin_object (_tmp8_);
#line 162 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_tmp9_ = builder;
#line 162 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_tmp10_ = json_builder_set_member_name (_tmp9_, "error");
#line 162 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_tmp11_ = e;
#line 162 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_tmp12_ = _tmp11_->message;
#line 162 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			json_builder_add_string_value (_tmp10_, _tmp12_);
#line 163 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_tmp13_ = builder;
#line 163 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			json_builder_end_object (_tmp13_);
#line 1172 "gitg-diff-view-request.c"
			{
				gint64 size = 0LL;
				GInputStream* _tmp14_ = NULL;
				JsonBuilder* _tmp15_ = NULL;
				GCancellable* _tmp16_ = NULL;
				gint64 _tmp17_ = 0LL;
				GInputStream* _tmp18_ = NULL;
				GInputStream* _tmp19_ = NULL;
				WebKitURISchemeRequest* _tmp20_ = NULL;
				GInputStream* _tmp21_ = NULL;
				gint64 _tmp22_ = 0LL;
#line 169 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_tmp15_ = builder;
#line 169 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_tmp16_ = _data7_->cancellable;
#line 169 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_tmp18_ = gitg_diff_view_request_json_to_stream (self, _tmp15_, _tmp16_, &_tmp17_, &_inner_error_);
#line 169 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				size = _tmp17_;
#line 169 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_tmp14_ = _tmp18_;
#line 169 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1196 "gitg-diff-view-request.c"
					goto __catch37_g_error;
				}
#line 169 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_tmp19_ = _tmp14_;
#line 169 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_tmp14_ = NULL;
#line 169 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_g_object_unref0 (stream);
#line 169 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				stream = _tmp19_;
#line 170 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_tmp20_ = self->d_request;
#line 170 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_tmp21_ = stream;
#line 170 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_tmp22_ = size;
#line 170 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				webkit_uri_scheme_request_finish (_tmp20_, _tmp21_, _tmp22_, "application/json");
#line 165 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_g_object_unref0 (_tmp14_);
#line 1217 "gitg-diff-view-request.c"
			}
			goto __finally37;
			__catch37_g_error:
			{
				GError* jerror = NULL;
				WebKitURISchemeRequest* _tmp23_ = NULL;
				GError* _tmp24_ = NULL;
#line 165 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				jerror = _inner_error_;
#line 165 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_inner_error_ = NULL;
#line 174 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_tmp23_ = self->d_request;
#line 174 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_tmp24_ = e;
#line 174 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				webkit_uri_scheme_request_finish_error (_tmp23_, _tmp24_);
#line 165 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_g_error_free0 (jerror);
#line 1237 "gitg-diff-view-request.c"
			}
			__finally37:
#line 165 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 165 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_g_object_unref0 (builder);
#line 165 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_g_error_free0 (e);
#line 165 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_g_object_unref0 (builder);
#line 165 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_g_error_free0 (e);
#line 165 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				_g_object_unref0 (stream);
#line 165 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 165 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				g_clear_error (&_inner_error_);
#line 165 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
				return;
#line 1258 "gitg-diff-view-request.c"
			}
#line 157 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_g_object_unref0 (builder);
#line 1262 "gitg-diff-view-request.c"
		} else {
			WebKitURISchemeRequest* _tmp25_ = NULL;
			GError* _tmp26_ = NULL;
#line 179 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_tmp25_ = self->d_request;
#line 179 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			_tmp26_ = e;
#line 179 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			webkit_uri_scheme_request_finish_error (_tmp25_, _tmp26_);
#line 1272 "gitg-diff-view-request.c"
		}
#line 182 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_error_free0 (e);
#line 182 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_object_unref0 (stream);
#line 182 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		return;
#line 1280 "gitg-diff-view-request.c"
	}
	__finally36:
#line 151 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 151 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_object_unref0 (stream);
#line 151 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.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 151 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_clear_error (&_inner_error_);
#line 151 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		return;
#line 1293 "gitg-diff-view-request.c"
	}
#line 185 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp27_ = stream;
#line 185 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (_tmp27_ == NULL) {
#line 1299 "gitg-diff-view-request.c"
		GMemoryInputStream* _tmp28_ = NULL;
#line 187 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp28_ = (GMemoryInputStream*) g_memory_input_stream_new ();
#line 187 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_g_object_unref0 (stream);
#line 187 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		stream = (GInputStream*) _tmp28_;
#line 1307 "gitg-diff-view-request.c"
	}
#line 190 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp29_ = self->d_request;
#line 190 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp30_ = stream;
#line 190 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp31_ = gitg_diff_view_request_get_content_length (self);
#line 190 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp32_ = gitg_diff_view_request_get_content_type (self);
#line 190 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp33_ = _tmp32_;
#line 190 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	webkit_uri_scheme_request_finish (_tmp29_, _tmp30_, _tmp31_, _tmp33_);
#line 190 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_g_free0 (_tmp33_);
#line 148 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_g_object_unref0 (stream);
#line 1325 "gitg-diff-view-request.c"
}


static void ___lambda49__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 148 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	__lambda49_ (self, source_object, res);
#line 148 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	block7_data_unref (self);
#line 1334 "gitg-diff-view-request.c"
}


void gitg_diff_view_request_run (GitgDiffViewRequest* self, GCancellable* cancellable) {
	Block7Data* _data7_;
	GCancellable* _tmp0_ = NULL;
	GCancellable* _tmp1_ = NULL;
	GCancellable* _tmp2_ = NULL;
#line 146 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_return_if_fail (self != NULL);
#line 146 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data7_ = g_slice_new0 (Block7Data);
#line 146 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data7_->_ref_count_ = 1;
#line 146 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data7_->self = gitg_diff_view_request_ref (self);
#line 146 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp0_ = cancellable;
#line 146 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 146 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_g_object_unref0 (_data7_->cancellable);
#line 146 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data7_->cancellable = _tmp1_;
#line 148 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp2_ = _data7_->cancellable;
#line 148 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	gitg_diff_view_request_run_impl (self, _tmp2_, ___lambda49__gasync_ready_callback, block7_data_ref (_data7_));
#line 146 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	block7_data_unref (_data7_);
#line 146 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_data7_ = NULL;
#line 1367 "gitg-diff-view-request.c"
}


static gint64 gitg_diff_view_request_real_get_content_length (GitgDiffViewRequest* self) {
	gint64 result = 0LL;
	gint64 _tmp0_ = 0LL;
#line 198 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp0_ = self->d_size;
#line 198 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	result = _tmp0_;
#line 198 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return result;
#line 1380 "gitg-diff-view-request.c"
}


gint64 gitg_diff_view_request_get_content_length (GitgDiffViewRequest* self) {
#line 196 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_return_val_if_fail (self != NULL, 0LL);
#line 196 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return GITG_DIFF_VIEW_REQUEST_GET_CLASS (self)->get_content_length (self);
#line 1389 "gitg-diff-view-request.c"
}


static gchar* gitg_diff_view_request_real_get_content_type (GitgDiffViewRequest* self) {
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
#line 203 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp0_ = self->d_mimetype;
#line 203 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (_tmp0_ != NULL) {
#line 1400 "gitg-diff-view-request.c"
		const gchar* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
#line 205 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp1_ = self->d_mimetype;
#line 205 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp2_ = g_strdup (_tmp1_);
#line 205 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		result = _tmp2_;
#line 205 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		return result;
#line 1411 "gitg-diff-view-request.c"
	} else {
		gchar* _tmp3_ = NULL;
#line 209 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		_tmp3_ = g_strdup ("application/octet-stream");
#line 209 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		result = _tmp3_;
#line 209 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		return result;
#line 1420 "gitg-diff-view-request.c"
	}
}


gchar* gitg_diff_view_request_get_content_type (GitgDiffViewRequest* self) {
#line 201 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 201 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return GITG_DIFF_VIEW_REQUEST_GET_CLASS (self)->get_content_type (self);
#line 1430 "gitg-diff-view-request.c"
}


SoupURI* gitg_diff_view_request_get_uri (GitgDiffViewRequest* self) {
	SoupURI* result;
	SoupURI* _tmp0_ = NULL;
#line 45 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 45 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp0_ = self->d_uri;
#line 45 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	result = _tmp0_;
#line 45 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return result;
#line 1445 "gitg-diff-view-request.c"
}


gboolean gitg_diff_view_request_get_has_view (GitgDiffViewRequest* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 50 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 50 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp0_ = self->d_hasView;
#line 50 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	result = _tmp0_;
#line 50 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return result;
#line 1460 "gitg-diff-view-request.c"
}


GitgDiffView* gitg_diff_view_request_get_view (GitgDiffViewRequest* self) {
	GitgDiffView* result;
	GitgDiffView* _tmp0_ = NULL;
#line 81 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 81 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_tmp0_ = self->d_view;
#line 81 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	result = _tmp0_;
#line 81 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return result;
#line 1475 "gitg-diff-view-request.c"
}


static void gitg_value_diff_view_request_init (GValue* value) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	value->data[0].v_pointer = NULL;
#line 1482 "gitg-diff-view-request.c"
}


static void gitg_value_diff_view_request_free_value (GValue* value) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (value->data[0].v_pointer) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		gitg_diff_view_request_unref (value->data[0].v_pointer);
#line 1491 "gitg-diff-view-request.c"
	}
}


static void gitg_value_diff_view_request_copy_value (const GValue* src_value, GValue* dest_value) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (src_value->data[0].v_pointer) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		dest_value->data[0].v_pointer = gitg_diff_view_request_ref (src_value->data[0].v_pointer);
#line 1501 "gitg-diff-view-request.c"
	} else {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		dest_value->data[0].v_pointer = NULL;
#line 1505 "gitg-diff-view-request.c"
	}
}


static gpointer gitg_value_diff_view_request_peek_pointer (const GValue* value) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return value->data[0].v_pointer;
#line 1513 "gitg-diff-view-request.c"
}


static gchar* gitg_value_diff_view_request_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (collect_values[0].v_pointer) {
#line 1520 "gitg-diff-view-request.c"
		GitgDiffViewRequest* object;
		object = collect_values[0].v_pointer;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		if (object->parent_instance.g_class == NULL) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 1527 "gitg-diff-view-request.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.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 1531 "gitg-diff-view-request.c"
		}
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		value->data[0].v_pointer = gitg_diff_view_request_ref (object);
#line 1535 "gitg-diff-view-request.c"
	} else {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		value->data[0].v_pointer = NULL;
#line 1539 "gitg-diff-view-request.c"
	}
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return NULL;
#line 1543 "gitg-diff-view-request.c"
}


static gchar* gitg_value_diff_view_request_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	GitgDiffViewRequest** object_p;
	object_p = collect_values[0].v_pointer;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (!object_p) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 1554 "gitg-diff-view-request.c"
	}
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (!value->data[0].v_pointer) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		*object_p = NULL;
#line 1560 "gitg-diff-view-request.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		*object_p = value->data[0].v_pointer;
#line 1564 "gitg-diff-view-request.c"
	} else {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		*object_p = gitg_diff_view_request_ref (value->data[0].v_pointer);
#line 1568 "gitg-diff-view-request.c"
	}
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return NULL;
#line 1572 "gitg-diff-view-request.c"
}


GParamSpec* gitg_param_spec_diff_view_request (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	GitgParamSpecDiffViewRequest* spec;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_return_val_if_fail (g_type_is_a (object_type, GITG_TYPE_DIFF_VIEW_REQUEST), NULL);
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return G_PARAM_SPEC (spec);
#line 1586 "gitg-diff-view-request.c"
}


gpointer gitg_value_get_diff_view_request (const GValue* value) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_TYPE_DIFF_VIEW_REQUEST), NULL);
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return value->data[0].v_pointer;
#line 1595 "gitg-diff-view-request.c"
}


void gitg_value_set_diff_view_request (GValue* value, gpointer v_object) {
	GitgDiffViewRequest* old;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_TYPE_DIFF_VIEW_REQUEST));
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	old = value->data[0].v_pointer;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (v_object) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GITG_TYPE_DIFF_VIEW_REQUEST));
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		value->data[0].v_pointer = v_object;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		gitg_diff_view_request_ref (value->data[0].v_pointer);
#line 1615 "gitg-diff-view-request.c"
	} else {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		value->data[0].v_pointer = NULL;
#line 1619 "gitg-diff-view-request.c"
	}
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (old) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		gitg_diff_view_request_unref (old);
#line 1625 "gitg-diff-view-request.c"
	}
}


void gitg_value_take_diff_view_request (GValue* value, gpointer v_object) {
	GitgDiffViewRequest* old;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_TYPE_DIFF_VIEW_REQUEST));
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	old = value->data[0].v_pointer;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (v_object) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GITG_TYPE_DIFF_VIEW_REQUEST));
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		value->data[0].v_pointer = v_object;
#line 1644 "gitg-diff-view-request.c"
	} else {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		value->data[0].v_pointer = NULL;
#line 1648 "gitg-diff-view-request.c"
	}
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (old) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		gitg_diff_view_request_unref (old);
#line 1654 "gitg-diff-view-request.c"
	}
}


static void gitg_diff_view_request_class_init (GitgDiffViewRequestClass * klass) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	gitg_diff_view_request_parent_class = g_type_class_peek_parent (klass);
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	((GitgDiffViewRequestClass *) klass)->finalize = gitg_diff_view_request_finalize;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_type_class_add_private (klass, sizeof (GitgDiffViewRequestPrivate));
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	((GitgDiffViewRequestClass *) klass)->run_async = gitg_diff_view_request_real_run_async;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	((GitgDiffViewRequestClass *) klass)->get_content_length = gitg_diff_view_request_real_get_content_length;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	((GitgDiffViewRequestClass *) klass)->get_content_type = gitg_diff_view_request_real_get_content_type;
#line 1672 "gitg-diff-view-request.c"
}


static void gitg_diff_view_request_instance_init (GitgDiffViewRequest * self) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	self->priv = GITG_DIFF_VIEW_REQUEST_GET_PRIVATE (self);
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	self->ref_count = 1;
#line 1681 "gitg-diff-view-request.c"
}


static void gitg_diff_view_request_finalize (GitgDiffViewRequest* obj) {
	GitgDiffViewRequest * self;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_DIFF_VIEW_REQUEST, GitgDiffViewRequest);
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_signal_handlers_destroy (self);
#line 24 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_g_object_unref0 (self->d_view);
#line 25 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	__vala_SoupURI_free0 (self->d_uri);
#line 26 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_g_free0 (self->d_mimetype);
#line 28 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_g_object_unref0 (self->d_request);
#line 29 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	_g_hash_table_unref0 (self->priv->d_form);
#line 1701 "gitg-diff-view-request.c"
}


GType gitg_diff_view_request_get_type (void) {
	static volatile gsize gitg_diff_view_request_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_diff_view_request_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { gitg_value_diff_view_request_init, gitg_value_diff_view_request_free_value, gitg_value_diff_view_request_copy_value, gitg_value_diff_view_request_peek_pointer, "p", gitg_value_diff_view_request_collect_value, "p", gitg_value_diff_view_request_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (GitgDiffViewRequestClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_diff_view_request_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgDiffViewRequest), 0, (GInstanceInitFunc) gitg_diff_view_request_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 gitg_diff_view_request_type_id;
		gitg_diff_view_request_type_id = g_type_register_fundamental (g_type_fundamental_next (), "GitgDiffViewRequest", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&gitg_diff_view_request_type_id__volatile, gitg_diff_view_request_type_id);
	}
	return gitg_diff_view_request_type_id__volatile;
}


gpointer gitg_diff_view_request_ref (gpointer instance) {
	GitgDiffViewRequest* self;
	self = instance;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	g_atomic_int_inc (&self->ref_count);
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	return instance;
#line 1726 "gitg-diff-view-request.c"
}


void gitg_diff_view_request_unref (gpointer instance) {
	GitgDiffViewRequest* self;
	self = instance;
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		GITG_DIFF_VIEW_REQUEST_GET_CLASS (self)->finalize (self);
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-diff-view-request.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 1739 "gitg-diff-view-request.c"
	}
}



