/* plugin-account.c generated by valac 0.56.3, the Vala compiler
 * generated from plugin-account.vala, do not modify */

/*
 * Copyright © 2020 Michael Gratton <mike@vee.net>
 *
 * This software is licensed under the GNU Lesser General Public License
 * (version 2.1 or later). See the COPYING file in this distribution.
 */

#include "geary-client-43.0.h"
#include <glib.h>

static GType plugin_account_get_type_once (void);

const gchar*
plugin_account_get_display_name (PluginAccount* self)
{
	PluginAccountIface* _iface_;
	g_return_val_if_fail (PLUGIN_IS_ACCOUNT (self), NULL);
	_iface_ = PLUGIN_ACCOUNT_GET_INTERFACE (self);
	if (_iface_->get_display_name) {
		return _iface_->get_display_name (self);
	}
	return NULL;
}

static void
plugin_account_default_init (PluginAccountIface * iface,
                             gpointer iface_data)
{
	/** Returns the human-readable name of this account. */
	g_object_interface_install_property (iface, g_param_spec_string ("display-name", "display-name", "display-name", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
}

/**
 * An object representing an account for use by plugins.
 *
 * Instances of these may be obtained from their respective {@link
 * Folder} objects.
 */
static GType
plugin_account_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (PluginAccountIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) plugin_account_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType plugin_account_type_id;
	plugin_account_type_id = g_type_register_static (G_TYPE_INTERFACE, "PluginAccount", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (plugin_account_type_id, GEARY_TYPE_BASE_OBJECT);
	return plugin_account_type_id;
}

GType
plugin_account_get_type (void)
{
	static volatile gsize plugin_account_type_id__once = 0;
	if (g_once_init_enter (&plugin_account_type_id__once)) {
		GType plugin_account_type_id;
		plugin_account_type_id = plugin_account_get_type_once ();
		g_once_init_leave (&plugin_account_type_id__once, plugin_account_type_id);
	}
	return plugin_account_type_id__once;
}

