/* DefaultMatch.c generated by valac 0.56.19, the Vala compiler
 * generated from DefaultMatch.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-object.h>
#include <stdlib.h>
#include <string.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

enum  {
	SYNAPSE_DEFAULT_MATCH_0_PROPERTY,
	SYNAPSE_DEFAULT_MATCH_NUM_PROPERTIES
};
static GParamSpec* synapse_default_match_properties[SYNAPSE_DEFAULT_MATCH_NUM_PROPERTIES];

static gpointer synapse_default_match_parent_class = NULL;
static GType synapse_default_match_type_id = 0;

SynapseDefaultMatch*
synapse_default_match_construct (GType object_type,
                                 const gchar* query_string)
{
	SynapseDefaultMatch * self = NULL;
	g_return_val_if_fail (query_string != NULL, NULL);
	self = (SynapseDefaultMatch*) g_object_new (object_type, "title", query_string, NULL);
	return self;
}

SynapseDefaultMatch*
synapse_default_match_new (const gchar* query_string)
{
	return synapse_default_match_construct (SYNAPSE_TYPE_DEFAULT_MATCH, query_string);
}

static void
synapse_default_match_class_init (SynapseDefaultMatchClass * klass,
                                  gpointer klass_data)
{
	synapse_default_match_parent_class = g_type_class_peek_parent (klass);
}

static void
synapse_default_match_instance_init (SynapseDefaultMatch * self,
                                     gpointer klass)
{
}

GType
synapse_default_match_get_type (void)
{
	return synapse_default_match_type_id;
}

GType
synapse_default_match_register_type (GTypeModule * module)
{
	static const GTypeInfo g_define_type_info = { sizeof (SynapseDefaultMatchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) synapse_default_match_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SynapseDefaultMatch), 0, (GInstanceInitFunc) synapse_default_match_instance_init, NULL };
	synapse_default_match_type_id = g_type_module_register_type (module, SYNAPSE_TYPE_MATCH, "SynapseDefaultMatch", &g_define_type_info, 0);
	return synapse_default_match_type_id;
}

