/* UriMatch.c generated by valac 0.56.19, the Vala compiler
 * generated from UriMatch.vala, do not modify */

/*
* Copyright (c) 2010 Michal Hruby <michal.mhr@gmail.com>
*               2017 elementary LLC.
*
* This program 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.
*
* This program 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 this program; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*
* Authored by: Michal Hruby <michal.mhr@gmail.com>
*              Alberto Aldegheri <albyrock87+dev@gmail.com>
*/

#include "slingshot.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 synapse_uri_match_type_id = 0;

const gchar*
synapse_uri_match_get_uri (SynapseUriMatch* self)
{
	SynapseUriMatchIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = SYNAPSE_URI_MATCH_GET_INTERFACE (self);
	if (_iface_->get_uri) {
		return _iface_->get_uri (self);
	}
	return NULL;
}

void
synapse_uri_match_set_uri (SynapseUriMatch* self,
                           const gchar* value)
{
	SynapseUriMatchIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = SYNAPSE_URI_MATCH_GET_INTERFACE (self);
	if (_iface_->set_uri) {
		_iface_->set_uri (self, value);
	}
}

SynapseQueryFlags
synapse_uri_match_get_file_type (SynapseUriMatch* self)
{
	SynapseUriMatchIface* _iface_;
	g_return_val_if_fail (self != NULL, 0U);
	_iface_ = SYNAPSE_URI_MATCH_GET_INTERFACE (self);
	if (_iface_->get_file_type) {
		return _iface_->get_file_type (self);
	}
	return 0U;
}

void
synapse_uri_match_set_file_type (SynapseUriMatch* self,
                                 SynapseQueryFlags value)
{
	SynapseUriMatchIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = SYNAPSE_URI_MATCH_GET_INTERFACE (self);
	if (_iface_->set_file_type) {
		_iface_->set_file_type (self, value);
	}
}

const gchar*
synapse_uri_match_get_mime_type (SynapseUriMatch* self)
{
	SynapseUriMatchIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = SYNAPSE_URI_MATCH_GET_INTERFACE (self);
	if (_iface_->get_mime_type) {
		return _iface_->get_mime_type (self);
	}
	return NULL;
}

void
synapse_uri_match_set_mime_type (SynapseUriMatch* self,
                                 const gchar* value)
{
	SynapseUriMatchIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = SYNAPSE_URI_MATCH_GET_INTERFACE (self);
	if (_iface_->set_mime_type) {
		_iface_->set_mime_type (self, value);
	}
}

static void
synapse_uri_match_default_init (SynapseUriMatchIface * iface,
                                gpointer iface_data)
{
	g_object_interface_install_property (iface, g_param_spec_string ("uri", "uri", "uri", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_interface_install_property (iface, g_param_spec_flags ("file-type", "file-type", "file-type", SYNAPSE_TYPE_QUERY_FLAGS, 0U, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_interface_install_property (iface, g_param_spec_string ("mime-type", "mime-type", "mime-type", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

GType
synapse_uri_match_get_type (void)
{
	return synapse_uri_match_type_id;
}

GType
synapse_uri_match_register_type (GTypeModule * module)
{
	static const GTypeInfo g_define_type_info = { sizeof (SynapseUriMatchIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) synapse_uri_match_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	synapse_uri_match_type_id = g_type_module_register_type (module, G_TYPE_INTERFACE, "SynapseUriMatch", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (synapse_uri_match_type_id, SYNAPSE_TYPE_MATCH);
	return synapse_uri_match_type_id;
}

