/* rygel-trackable-item.c generated by valac 0.56.1, the Vala compiler
 * generated from rygel-trackable-item.vala, do not modify */

/*
 * Copyright (C) 2012 Intel Corporation.
 *
 * Author: Jens Georg <jensg@openismus.come
 *
 * Rygel is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * Rygel is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

#include "rygel-server.h"
#include <glib.h>
#include <string.h>

static GType rygel_trackable_item_get_type_once (void);
static inline gpointer _vala_memdup2 (gconstpointer mem,
                        gsize byte_size);

void
rygel_trackable_item_changed (RygelTrackableItem* self)
{
	RygelMediaContainer* _tmp0_;
	RygelMediaContainer* _tmp1_;
	_tmp0_ = rygel_media_object_get_parent ((RygelMediaObject*) self);
	_tmp1_ = _tmp0_;
	if (_tmp1_ != NULL) {
		RygelMediaContainer* _tmp2_;
		RygelMediaContainer* _tmp3_;
		_tmp2_ = rygel_media_object_get_parent ((RygelMediaObject*) self);
		_tmp3_ = _tmp2_;
		rygel_media_container_updated (_tmp3_, (RygelMediaObject*) self, RYGEL_OBJECT_EVENT_TYPE_MODIFIED, FALSE);
	}
}

static void
rygel_trackable_item_default_init (RygelTrackableItemIface * iface,
                                   gpointer iface_data)
{
}

static GType
rygel_trackable_item_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (RygelTrackableItemIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_trackable_item_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType rygel_trackable_item_type_id;
	rygel_trackable_item_type_id = g_type_register_static (G_TYPE_INTERFACE, "RygelTrackableItem", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (rygel_trackable_item_type_id, RYGEL_TYPE_MEDIA_ITEM);
	return rygel_trackable_item_type_id;
}

GType
rygel_trackable_item_get_type (void)
{
	static volatile gsize rygel_trackable_item_type_id__once = 0;
	if (g_once_init_enter (&rygel_trackable_item_type_id__once)) {
		GType rygel_trackable_item_type_id;
		rygel_trackable_item_type_id = rygel_trackable_item_get_type_once ();
		g_once_init_leave (&rygel_trackable_item_type_id__once, rygel_trackable_item_type_id);
	}
	return rygel_trackable_item_type_id__once;
}

static inline gpointer
_vala_memdup2 (gconstpointer mem,
               gsize byte_size)
{
	gpointer new_mem;
	if (mem && byte_size != 0) {
		new_mem = g_malloc (byte_size);
		memcpy (new_mem, mem, byte_size);
	} else {
		new_mem = NULL;
	}
	return new_mem;
}

