/* gitg-diff-view-file-renderer.c generated by valac 0.34.7, the Vala compiler
 * generated from gitg-diff-view-file-renderer.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2016 - 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 <gtk/gtk.h>
#include <libgit2-glib/ggit.h>
#include <gee.h>


#define GITG_TYPE_DIFF_VIEW_FILE_RENDERER (gitg_diff_view_file_renderer_get_type ())
#define GITG_DIFF_VIEW_FILE_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER, GitgDiffViewFileRenderer))
#define GITG_IS_DIFF_VIEW_FILE_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER))
#define GITG_DIFF_VIEW_FILE_RENDERER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER, GitgDiffViewFileRendererIface))

typedef struct _GitgDiffViewFileRenderer GitgDiffViewFileRenderer;
typedef struct _GitgDiffViewFileRendererIface GitgDiffViewFileRendererIface;

struct _GitgDiffViewFileRendererIface {
	GTypeInterface parent_iface;
	void (*add_hunk) (GitgDiffViewFileRenderer* self, GgitDiffHunk* hunk, GeeArrayList* lines);
};



GType gitg_diff_view_file_renderer_get_type (void) G_GNUC_CONST;
void gitg_diff_view_file_renderer_add_hunk (GitgDiffViewFileRenderer* self, GgitDiffHunk* hunk, GeeArrayList* lines);


void gitg_diff_view_file_renderer_add_hunk (GitgDiffViewFileRenderer* self, GgitDiffHunk* hunk, GeeArrayList* lines) {
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer.vala"
	g_return_if_fail (self != NULL);
#line 22 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer.vala"
	GITG_DIFF_VIEW_FILE_RENDERER_GET_INTERFACE (self)->add_hunk (self, hunk, lines);
#line 55 "gitg-diff-view-file-renderer.c"
}


static void gitg_diff_view_file_renderer_base_init (GitgDiffViewFileRendererIface * iface) {
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer.vala"
	static gboolean initialized = FALSE;
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer.vala"
	if (!initialized) {
#line 20 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer.vala"
		initialized = TRUE;
#line 66 "gitg-diff-view-file-renderer.c"
	}
}


GType gitg_diff_view_file_renderer_get_type (void) {
	static volatile gsize gitg_diff_view_file_renderer_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_diff_view_file_renderer_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgDiffViewFileRendererIface), (GBaseInitFunc) gitg_diff_view_file_renderer_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType gitg_diff_view_file_renderer_type_id;
		gitg_diff_view_file_renderer_type_id = g_type_register_static (G_TYPE_INTERFACE, "GitgDiffViewFileRenderer", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (gitg_diff_view_file_renderer_type_id, gtk_widget_get_type ());
		g_once_init_leave (&gitg_diff_view_file_renderer_type_id__volatile, gitg_diff_view_file_renderer_type_id);
	}
	return gitg_diff_view_file_renderer_type_id__volatile;
}



