/* Generated file (by src-generator) */

/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 * Copyright (C) 2015 William Yu <williamyu@gnome.org>
 *
 * This library is free software: you can redistribute it and/or modify it
 * under the terms of version 2.1. of the GNU Lesser General Public License
 * as published by the Free Software Foundation.
 *
 * This library 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 library. If not, see <http://www.gnu.org/licenses/>.
 */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <libical-glib/i-cal-comp-iter.h>

G_DEFINE_TYPE (ICalCompIter, i_cal_comp_iter, I_CAL_TYPE_OBJECT)

static void
i_cal_comp_iter_class_init (ICalCompIterClass *klass)
{	
	g_type_class_add_private (klass, sizeof (ICalCompIter));
}

static void
i_cal_comp_iter_init (ICalCompIter *self)
{
}

/**
 * i_cal_comp_iter_new_full: (skip)
 * @native: The native libical object.
 *
 * Create a new libical-glib object from the native libical object and the owner.
 * 
 * Returns: (transfer full): The newly create libical-glib object.
 *
 * Since: 1.0
 **/
ICalCompIter *
i_cal_comp_iter_new_full (struct icalcompiter native)
{
	ICalCompIter *object;
	struct icalcompiter *clone;
	object = g_object_new (I_CAL_COMP_ITER_TYPE, NULL);
	clone = g_new (struct icalcompiter, 1);
	*clone = native;
	i_cal_object_construct ((ICalObject *)object,
		        	(gpointer) clone,
		        	(GDestroyNotify) g_free,
		        	FALSE,
		        	NULL);
    							
	return object;
}

/**
 * i_cal_comp_iter_new_default:
 *
 * Returns: (transfer none): The newly created default native icalcompiter
 *
 * Since: 1.0
 *
 **/
struct icalcompiter
i_cal_comp_iter_new_default (void)
{
	icalcompiter compiter;
	compiter.kind = ICAL_NO_COMPONENT;
	return compiter;
}
