/* BackgroundManager.c generated by valac 0.56.18-dirty, the Vala compiler
 * generated from BackgroundManager.vala, do not modify */

/*
 * SPDX-License-Identifier: GPL-3.0-or-later
 * SPDX-FileCopyrightText: 2024 elementary, Inc. (https://elementary.io)
 */

#include "gala.h"
#include <glib.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif

static GType gala_background_manager_interface_get_type_once (void);

MetaBackgroundActor*
gala_background_manager_interface_get_newest_background_actor (GalaBackgroundManagerInterface* self)
{
	GalaBackgroundManagerInterfaceIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = GALA_BACKGROUND_MANAGER_INTERFACE_GET_INTERFACE (self);
	if (_iface_->get_newest_background_actor) {
		return _iface_->get_newest_background_actor (self);
	}
	return NULL;
}

static void
gala_background_manager_interface_default_init (GalaBackgroundManagerInterfaceIface * iface,
                                                gpointer iface_data)
{
	g_object_interface_install_property (iface, g_param_spec_object ("newest-background-actor", "newest-background-actor", "newest-background-actor", meta_background_actor_get_type (), G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
}

 G_GNUC_NO_INLINE static GType
gala_background_manager_interface_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (GalaBackgroundManagerInterfaceIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gala_background_manager_interface_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType gala_background_manager_interface_type_id;
	gala_background_manager_interface_type_id = g_type_register_static (G_TYPE_INTERFACE, "GalaBackgroundManagerInterface", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (gala_background_manager_interface_type_id, meta_background_group_get_type ());
	return gala_background_manager_interface_type_id;
}

GType
gala_background_manager_interface_get_type (void)
{
	static gsize gala_background_manager_interface_type_id__once = 0;
	if (g_once_init_enter (&gala_background_manager_interface_type_id__once)) {
		GType gala_background_manager_interface_type_id;
		gala_background_manager_interface_type_id = gala_background_manager_interface_get_type_once ();
		g_once_init_leave (&gala_background_manager_interface_type_id__once, gala_background_manager_interface_type_id);
	}
	return gala_background_manager_interface_type_id__once;
}

