/* rygel-search-expression.c generated by valac 0.17.4.16-52707, the Vala compiler
 * generated from rygel-search-expression.vala, do not modify */

/*
 * Copyright (C) 2009 Nokia Corporation.
 *
 * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
 *
 * This file is part of Rygel.
 *
 * 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 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 program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <gobject/gvaluecollector.h>


#define RYGEL_TYPE_SEARCH_EXPRESSION (rygel_search_expression_get_type ())
#define RYGEL_SEARCH_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_SEARCH_EXPRESSION, RygelSearchExpression))
#define RYGEL_SEARCH_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_SEARCH_EXPRESSION, RygelSearchExpressionClass))
#define RYGEL_IS_SEARCH_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_SEARCH_EXPRESSION))
#define RYGEL_IS_SEARCH_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_SEARCH_EXPRESSION))
#define RYGEL_SEARCH_EXPRESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_SEARCH_EXPRESSION, RygelSearchExpressionClass))

typedef struct _RygelSearchExpression RygelSearchExpression;
typedef struct _RygelSearchExpressionClass RygelSearchExpressionClass;
typedef struct _RygelSearchExpressionPrivate RygelSearchExpressionPrivate;

#define RYGEL_TYPE_MEDIA_OBJECT (rygel_media_object_get_type ())
#define RYGEL_MEDIA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RYGEL_TYPE_MEDIA_OBJECT, RygelMediaObject))
#define RYGEL_MEDIA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RYGEL_TYPE_MEDIA_OBJECT, RygelMediaObjectClass))
#define RYGEL_IS_MEDIA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RYGEL_TYPE_MEDIA_OBJECT))
#define RYGEL_IS_MEDIA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RYGEL_TYPE_MEDIA_OBJECT))
#define RYGEL_MEDIA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RYGEL_TYPE_MEDIA_OBJECT, RygelMediaObjectClass))

typedef struct _RygelMediaObject RygelMediaObject;
typedef struct _RygelMediaObjectClass RygelMediaObjectClass;
typedef struct _RygelParamSpecSearchExpression RygelParamSpecSearchExpression;

struct _RygelSearchExpression {
	GTypeInstance parent_instance;
	volatile int ref_count;
	RygelSearchExpressionPrivate * priv;
	gpointer op;
	gpointer operand1;
	gpointer operand2;
};

struct _RygelSearchExpressionClass {
	GTypeClass parent_class;
	void (*finalize) (RygelSearchExpression *self);
	gboolean (*satisfied_by) (RygelSearchExpression* self, RygelMediaObject* media_object);
	gchar* (*to_string) (RygelSearchExpression* self);
};

struct _RygelSearchExpressionPrivate {
	GType g_type;
	GBoxedCopyFunc g_dup_func;
	GDestroyNotify g_destroy_func;
	GType h_type;
	GBoxedCopyFunc h_dup_func;
	GDestroyNotify h_destroy_func;
	GType i_type;
	GBoxedCopyFunc i_dup_func;
	GDestroyNotify i_destroy_func;
};

struct _RygelParamSpecSearchExpression {
	GParamSpec parent_instance;
};


static gpointer rygel_search_expression_parent_class = NULL;

gpointer rygel_search_expression_ref (gpointer instance);
void rygel_search_expression_unref (gpointer instance);
GParamSpec* rygel_param_spec_search_expression (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void rygel_value_set_search_expression (GValue* value, gpointer v_object);
void rygel_value_take_search_expression (GValue* value, gpointer v_object);
gpointer rygel_value_get_search_expression (const GValue* value);
GType rygel_search_expression_get_type (void) G_GNUC_CONST;
GType rygel_media_object_get_type (void) G_GNUC_CONST;
#define RYGEL_SEARCH_EXPRESSION_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), RYGEL_TYPE_SEARCH_EXPRESSION, RygelSearchExpressionPrivate))
enum  {
	RYGEL_SEARCH_EXPRESSION_DUMMY_PROPERTY
};
gboolean rygel_search_expression_satisfied_by (RygelSearchExpression* self, RygelMediaObject* media_object);
static gboolean rygel_search_expression_real_satisfied_by (RygelSearchExpression* self, RygelMediaObject* media_object);
gchar* rygel_search_expression_to_string (RygelSearchExpression* self);
static gchar* rygel_search_expression_real_to_string (RygelSearchExpression* self);
RygelSearchExpression* rygel_search_expression_construct (GType object_type, GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, GType h_type, GBoxedCopyFunc h_dup_func, GDestroyNotify h_destroy_func, GType i_type, GBoxedCopyFunc i_dup_func, GDestroyNotify i_destroy_func);
static void rygel_search_expression_finalize (RygelSearchExpression* obj);


static gboolean rygel_search_expression_real_satisfied_by (RygelSearchExpression* self, RygelMediaObject* media_object) {
#line 32 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	g_critical ("Type `%s' does not implement abstract method `rygel_search_expression_satisfied_by'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 32 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	return FALSE;
#line 116 "rygel-search-expression.c"
}


gboolean rygel_search_expression_satisfied_by (RygelSearchExpression* self, RygelMediaObject* media_object) {
#line 32 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 32 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	return RYGEL_SEARCH_EXPRESSION_GET_CLASS (self)->satisfied_by (self, media_object);
#line 125 "rygel-search-expression.c"
}


static gchar* rygel_search_expression_real_to_string (RygelSearchExpression* self) {
#line 34 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	g_critical ("Type `%s' does not implement abstract method `rygel_search_expression_to_string'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 34 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	return NULL;
#line 134 "rygel-search-expression.c"
}


gchar* rygel_search_expression_to_string (RygelSearchExpression* self) {
#line 34 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 34 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	return RYGEL_SEARCH_EXPRESSION_GET_CLASS (self)->to_string (self);
#line 143 "rygel-search-expression.c"
}


RygelSearchExpression* rygel_search_expression_construct (GType object_type, GType g_type, GBoxedCopyFunc g_dup_func, GDestroyNotify g_destroy_func, GType h_type, GBoxedCopyFunc h_dup_func, GDestroyNotify h_destroy_func, GType i_type, GBoxedCopyFunc i_dup_func, GDestroyNotify i_destroy_func) {
	RygelSearchExpression* self = NULL;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	self = (RygelSearchExpression*) g_type_create_instance (object_type);
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	self->priv->g_type = g_type;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	self->priv->g_dup_func = g_dup_func;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	self->priv->g_destroy_func = g_destroy_func;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	self->priv->h_type = h_type;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	self->priv->h_dup_func = h_dup_func;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	self->priv->h_destroy_func = h_destroy_func;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	self->priv->i_type = i_type;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	self->priv->i_dup_func = i_dup_func;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	self->priv->i_destroy_func = i_destroy_func;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	return self;
#line 171 "rygel-search-expression.c"
}


static void rygel_value_search_expression_init (GValue* value) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	value->data[0].v_pointer = NULL;
#line 178 "rygel-search-expression.c"
}


static void rygel_value_search_expression_free_value (GValue* value) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	if (value->data[0].v_pointer) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		rygel_search_expression_unref (value->data[0].v_pointer);
#line 187 "rygel-search-expression.c"
	}
}


static void rygel_value_search_expression_copy_value (const GValue* src_value, GValue* dest_value) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	if (src_value->data[0].v_pointer) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		dest_value->data[0].v_pointer = rygel_search_expression_ref (src_value->data[0].v_pointer);
#line 197 "rygel-search-expression.c"
	} else {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		dest_value->data[0].v_pointer = NULL;
#line 201 "rygel-search-expression.c"
	}
}


static gpointer rygel_value_search_expression_peek_pointer (const GValue* value) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	return value->data[0].v_pointer;
#line 209 "rygel-search-expression.c"
}


static gchar* rygel_value_search_expression_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	if (collect_values[0].v_pointer) {
#line 216 "rygel-search-expression.c"
		RygelSearchExpression* object;
		object = collect_values[0].v_pointer;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		if (object->parent_instance.g_class == NULL) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 223 "rygel-search-expression.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 227 "rygel-search-expression.c"
		}
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		value->data[0].v_pointer = rygel_search_expression_ref (object);
#line 231 "rygel-search-expression.c"
	} else {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		value->data[0].v_pointer = NULL;
#line 235 "rygel-search-expression.c"
	}
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	return NULL;
#line 239 "rygel-search-expression.c"
}


static gchar* rygel_value_search_expression_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	RygelSearchExpression** object_p;
	object_p = collect_values[0].v_pointer;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	if (!object_p) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 250 "rygel-search-expression.c"
	}
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	if (!value->data[0].v_pointer) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		*object_p = NULL;
#line 256 "rygel-search-expression.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		*object_p = value->data[0].v_pointer;
#line 260 "rygel-search-expression.c"
	} else {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		*object_p = rygel_search_expression_ref (value->data[0].v_pointer);
#line 264 "rygel-search-expression.c"
	}
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	return NULL;
#line 268 "rygel-search-expression.c"
}


GParamSpec* rygel_param_spec_search_expression (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	RygelParamSpecSearchExpression* spec;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	g_return_val_if_fail (g_type_is_a (object_type, RYGEL_TYPE_SEARCH_EXPRESSION), NULL);
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	return G_PARAM_SPEC (spec);
#line 282 "rygel-search-expression.c"
}


gpointer rygel_value_get_search_expression (const GValue* value) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, RYGEL_TYPE_SEARCH_EXPRESSION), NULL);
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	return value->data[0].v_pointer;
#line 291 "rygel-search-expression.c"
}


void rygel_value_set_search_expression (GValue* value, gpointer v_object) {
	RygelSearchExpression* old;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, RYGEL_TYPE_SEARCH_EXPRESSION));
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	old = value->data[0].v_pointer;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	if (v_object) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, RYGEL_TYPE_SEARCH_EXPRESSION));
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		value->data[0].v_pointer = v_object;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		rygel_search_expression_ref (value->data[0].v_pointer);
#line 311 "rygel-search-expression.c"
	} else {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		value->data[0].v_pointer = NULL;
#line 315 "rygel-search-expression.c"
	}
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	if (old) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		rygel_search_expression_unref (old);
#line 321 "rygel-search-expression.c"
	}
}


void rygel_value_take_search_expression (GValue* value, gpointer v_object) {
	RygelSearchExpression* old;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, RYGEL_TYPE_SEARCH_EXPRESSION));
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	old = value->data[0].v_pointer;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	if (v_object) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, RYGEL_TYPE_SEARCH_EXPRESSION));
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		value->data[0].v_pointer = v_object;
#line 340 "rygel-search-expression.c"
	} else {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		value->data[0].v_pointer = NULL;
#line 344 "rygel-search-expression.c"
	}
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	if (old) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		rygel_search_expression_unref (old);
#line 350 "rygel-search-expression.c"
	}
}


static void rygel_search_expression_class_init (RygelSearchExpressionClass * klass) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	rygel_search_expression_parent_class = g_type_class_peek_parent (klass);
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	RYGEL_SEARCH_EXPRESSION_CLASS (klass)->finalize = rygel_search_expression_finalize;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	g_type_class_add_private (klass, sizeof (RygelSearchExpressionPrivate));
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	RYGEL_SEARCH_EXPRESSION_CLASS (klass)->satisfied_by = rygel_search_expression_real_satisfied_by;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	RYGEL_SEARCH_EXPRESSION_CLASS (klass)->to_string = rygel_search_expression_real_to_string;
#line 366 "rygel-search-expression.c"
}


static void rygel_search_expression_instance_init (RygelSearchExpression * self) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	self->priv = RYGEL_SEARCH_EXPRESSION_GET_PRIVATE (self);
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	self->ref_count = 1;
#line 375 "rygel-search-expression.c"
}


static void rygel_search_expression_finalize (RygelSearchExpression* obj) {
	RygelSearchExpression * self;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, RYGEL_TYPE_SEARCH_EXPRESSION, RygelSearchExpression);
#line 27 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	((self->op == NULL) || (self->priv->g_destroy_func == NULL)) ? NULL : (self->op = (self->priv->g_destroy_func (self->op), NULL));
#line 29 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	((self->operand1 == NULL) || (self->priv->h_destroy_func == NULL)) ? NULL : (self->operand1 = (self->priv->h_destroy_func (self->operand1), NULL));
#line 30 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	((self->operand2 == NULL) || (self->priv->i_destroy_func == NULL)) ? NULL : (self->operand2 = (self->priv->i_destroy_func (self->operand2), NULL));
#line 389 "rygel-search-expression.c"
}


/**
 * Represents a SearchExpression tree.
 */
GType rygel_search_expression_get_type (void) {
	static volatile gsize rygel_search_expression_type_id__volatile = 0;
	if (g_once_init_enter (&rygel_search_expression_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { rygel_value_search_expression_init, rygel_value_search_expression_free_value, rygel_value_search_expression_copy_value, rygel_value_search_expression_peek_pointer, "p", rygel_value_search_expression_collect_value, "p", rygel_value_search_expression_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (RygelSearchExpressionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rygel_search_expression_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RygelSearchExpression), 0, (GInstanceInitFunc) rygel_search_expression_instance_init, &g_define_type_value_table };
		static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
		GType rygel_search_expression_type_id;
		rygel_search_expression_type_id = g_type_register_fundamental (g_type_fundamental_next (), "RygelSearchExpression", &g_define_type_info, &g_define_type_fundamental_info, G_TYPE_FLAG_ABSTRACT);
		g_once_init_leave (&rygel_search_expression_type_id__volatile, rygel_search_expression_type_id);
	}
	return rygel_search_expression_type_id__volatile;
}


gpointer rygel_search_expression_ref (gpointer instance) {
	RygelSearchExpression* self;
	self = instance;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	g_atomic_int_inc (&self->ref_count);
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	return instance;
#line 417 "rygel-search-expression.c"
}


void rygel_search_expression_unref (gpointer instance) {
	RygelSearchExpression* self;
	self = instance;
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		RYGEL_SEARCH_EXPRESSION_GET_CLASS (self)->finalize (self);
#line 26 "/home/jens/Source/rygel/tests/rygel-search-expression.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 430 "rygel-search-expression.c"
	}
}



