/* gitg-ext-notifications.c generated by valac 0.32.1, the Vala compiler
 * generated from gitg-ext-notifications.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2014 - 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>


#define GITG_EXT_TYPE_NOTIFICATIONS (gitg_ext_notifications_get_type ())
#define GITG_EXT_NOTIFICATIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_EXT_TYPE_NOTIFICATIONS, GitgExtNotifications))
#define GITG_EXT_IS_NOTIFICATIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_EXT_TYPE_NOTIFICATIONS))
#define GITG_EXT_NOTIFICATIONS_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GITG_EXT_TYPE_NOTIFICATIONS, GitgExtNotificationsIface))

typedef struct _GitgExtNotifications GitgExtNotifications;
typedef struct _GitgExtNotificationsIface GitgExtNotificationsIface;

#define GITG_EXT_TYPE_NOTIFICATION (gitg_ext_notification_get_type ())
#define GITG_EXT_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_EXT_TYPE_NOTIFICATION, GitgExtNotification))
#define GITG_EXT_IS_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_EXT_TYPE_NOTIFICATION))
#define GITG_EXT_NOTIFICATION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GITG_EXT_TYPE_NOTIFICATION, GitgExtNotificationIface))

typedef struct _GitgExtNotification GitgExtNotification;
typedef struct _GitgExtNotificationIface GitgExtNotificationIface;

struct _GitgExtNotificationIface {
	GTypeInterface parent_iface;
	GtkWidget* (*get_widget) (GitgExtNotification* self);
};

struct _GitgExtNotificationsIface {
	GTypeInterface parent_iface;
	void (*add) (GitgExtNotifications* self, GitgExtNotification* notification);
	void (*remove) (GitgExtNotifications* self, GitgExtNotification* notification, guint delay);
};



GType gitg_ext_notification_get_type (void) G_GNUC_CONST;
GType gitg_ext_notifications_get_type (void) G_GNUC_CONST;
void gitg_ext_notifications_add (GitgExtNotifications* self, GitgExtNotification* notification);
void gitg_ext_notifications_remove (GitgExtNotifications* self, GitgExtNotification* notification, guint delay);


void gitg_ext_notifications_add (GitgExtNotifications* self, GitgExtNotification* notification) {
#line 25 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-notifications.vala"
	g_return_if_fail (self != NULL);
#line 25 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-notifications.vala"
	GITG_EXT_NOTIFICATIONS_GET_INTERFACE (self)->add (self, notification);
#line 69 "gitg-ext-notifications.c"
}


void gitg_ext_notifications_remove (GitgExtNotifications* self, GitgExtNotification* notification, guint delay) {
#line 26 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-notifications.vala"
	g_return_if_fail (self != NULL);
#line 26 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-notifications.vala"
	GITG_EXT_NOTIFICATIONS_GET_INTERFACE (self)->remove (self, notification, delay);
#line 78 "gitg-ext-notifications.c"
}


static void gitg_ext_notifications_base_init (GitgExtNotificationsIface * iface) {
#line 23 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-notifications.vala"
	static gboolean initialized = FALSE;
#line 23 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-notifications.vala"
	if (!initialized) {
#line 23 "/home/jesse/dev/gitg/libgitg-ext/gitg-ext-notifications.vala"
		initialized = TRUE;
#line 89 "gitg-ext-notifications.c"
	}
}


GType gitg_ext_notifications_get_type (void) {
	static volatile gsize gitg_ext_notifications_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_ext_notifications_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgExtNotificationsIface), (GBaseInitFunc) gitg_ext_notifications_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType gitg_ext_notifications_type_id;
		gitg_ext_notifications_type_id = g_type_register_static (G_TYPE_INTERFACE, "GitgExtNotifications", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (gitg_ext_notifications_type_id, G_TYPE_OBJECT);
		g_once_init_leave (&gitg_ext_notifications_type_id__volatile, gitg_ext_notifications_type_id);
	}
	return gitg_ext_notifications_type_id__volatile;
}



