/* tracker-dbus.c generated by valac 0.26.1, the Vala compiler
 * generated from tracker-dbus.vala, do not modify */

/*
 * Copyright (C) 2006, Jamie McCracken <jamiemcc@gnome.org>
 * Copyright (C) 2008-2011, Nokia <ivan.frade@nokia.com>
 *
 * This library 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 library 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 library; 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 <gio/gio.h>
#include "tracker-store/tracker-config.h"
#include <stdlib.h>
#include <string.h>
#include "libtracker-common/tracker-common.h"
#include <gobject/gvaluecollector.h>


#define TRACKER_TYPE_DBUS (tracker_dbus_get_type ())
#define TRACKER_DBUS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_TYPE_DBUS, TrackerDBus))
#define TRACKER_DBUS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_DBUS, TrackerDBusClass))
#define TRACKER_IS_DBUS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_TYPE_DBUS))
#define TRACKER_IS_DBUS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_DBUS))
#define TRACKER_DBUS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_DBUS, TrackerDBusClass))

typedef struct _TrackerDBus TrackerDBus;
typedef struct _TrackerDBusClass TrackerDBusClass;
typedef struct _TrackerDBusPrivate TrackerDBusPrivate;

#define TRACKER_TYPE_STATISTICS (tracker_statistics_get_type ())
#define TRACKER_STATISTICS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_TYPE_STATISTICS, TrackerStatistics))
#define TRACKER_STATISTICS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_STATISTICS, TrackerStatisticsClass))
#define TRACKER_IS_STATISTICS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_TYPE_STATISTICS))
#define TRACKER_IS_STATISTICS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_STATISTICS))
#define TRACKER_STATISTICS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_STATISTICS, TrackerStatisticsClass))

typedef struct _TrackerStatistics TrackerStatistics;
typedef struct _TrackerStatisticsClass TrackerStatisticsClass;

#define TRACKER_TYPE_RESOURCES (tracker_resources_get_type ())
#define TRACKER_RESOURCES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_TYPE_RESOURCES, TrackerResources))
#define TRACKER_RESOURCES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_RESOURCES, TrackerResourcesClass))
#define TRACKER_IS_RESOURCES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_TYPE_RESOURCES))
#define TRACKER_IS_RESOURCES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_RESOURCES))
#define TRACKER_RESOURCES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_RESOURCES, TrackerResourcesClass))

typedef struct _TrackerResources TrackerResources;
typedef struct _TrackerResourcesClass TrackerResourcesClass;

#define TRACKER_TYPE_STEROIDS (tracker_steroids_get_type ())
#define TRACKER_STEROIDS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_TYPE_STEROIDS, TrackerSteroids))
#define TRACKER_STEROIDS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_STEROIDS, TrackerSteroidsClass))
#define TRACKER_IS_STEROIDS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_TYPE_STEROIDS))
#define TRACKER_IS_STEROIDS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_STEROIDS))
#define TRACKER_STEROIDS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_STEROIDS, TrackerSteroidsClass))

typedef struct _TrackerSteroids TrackerSteroids;
typedef struct _TrackerSteroidsClass TrackerSteroidsClass;

#define TRACKER_TYPE_STATUS (tracker_status_get_type ())
#define TRACKER_STATUS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_TYPE_STATUS, TrackerStatus))
#define TRACKER_STATUS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_STATUS, TrackerStatusClass))
#define TRACKER_IS_STATUS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_TYPE_STATUS))
#define TRACKER_IS_STATUS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_STATUS))
#define TRACKER_STATUS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_STATUS, TrackerStatusClass))

typedef struct _TrackerStatus TrackerStatus;
typedef struct _TrackerStatusClass TrackerStatusClass;

#define TRACKER_TYPE_BACKUP (tracker_backup_get_type ())
#define TRACKER_BACKUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRACKER_TYPE_BACKUP, TrackerBackup))
#define TRACKER_BACKUP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRACKER_TYPE_BACKUP, TrackerBackupClass))
#define TRACKER_IS_BACKUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRACKER_TYPE_BACKUP))
#define TRACKER_IS_BACKUP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRACKER_TYPE_BACKUP))
#define TRACKER_BACKUP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_BACKUP, TrackerBackupClass))

typedef struct _TrackerBackup TrackerBackup;
typedef struct _TrackerBackupClass TrackerBackupClass;
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _TrackerParamSpecDBus TrackerParamSpecDBus;

struct _TrackerDBus {
	GTypeInstance parent_instance;
	volatile int ref_count;
	TrackerDBusPrivate * priv;
};

struct _TrackerDBusClass {
	GTypeClass parent_class;
	void (*finalize) (TrackerDBus *self);
};

struct _TrackerParamSpecDBus {
	GParamSpec parent_instance;
};


static gpointer tracker_dbus_parent_class = NULL;
static GDBusConnection* tracker_dbus_connection;
static GDBusConnection* tracker_dbus_connection = NULL;
static guint tracker_dbus_name_owner_changed_id;
static guint tracker_dbus_name_owner_changed_id = 0U;
static TrackerStatistics* tracker_dbus_statistics;
static TrackerStatistics* tracker_dbus_statistics = NULL;
static guint tracker_dbus_statistics_id;
static guint tracker_dbus_statistics_id = 0U;
static TrackerResources* tracker_dbus_resources;
static TrackerResources* tracker_dbus_resources = NULL;
static guint tracker_dbus_resources_id;
static guint tracker_dbus_resources_id = 0U;
static TrackerSteroids* tracker_dbus_steroids;
static TrackerSteroids* tracker_dbus_steroids = NULL;
static guint tracker_dbus_steroids_id;
static guint tracker_dbus_steroids_id = 0U;
static TrackerStatus* tracker_dbus_notifier;
static TrackerStatus* tracker_dbus_notifier = NULL;
static guint tracker_dbus_notifier_id;
static guint tracker_dbus_notifier_id = 0U;
static TrackerBackup* tracker_dbus_backup;
static TrackerBackup* tracker_dbus_backup = NULL;
static guint tracker_dbus_backup_id;
static guint tracker_dbus_backup_id = 0U;
static TrackerConfig* tracker_dbus_config;
static TrackerConfig* tracker_dbus_config = NULL;

gpointer tracker_dbus_ref (gpointer instance);
void tracker_dbus_unref (gpointer instance);
GParamSpec* tracker_param_spec_dbus (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void tracker_value_set_dbus (GValue* value, gpointer v_object);
void tracker_value_take_dbus (GValue* value, gpointer v_object);
gpointer tracker_value_get_dbus (const GValue* value);
GType tracker_dbus_get_type (void) G_GNUC_CONST;
enum  {
	TRACKER_DBUS_DUMMY_PROPERTY
};
GType tracker_statistics_get_type (void) G_GNUC_CONST;
guint tracker_statistics_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
GType tracker_resources_get_type (void) G_GNUC_CONST;
guint tracker_resources_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
GType tracker_steroids_get_type (void) G_GNUC_CONST;
guint tracker_steroids_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
GType tracker_status_get_type (void) G_GNUC_CONST;
guint tracker_status_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
GType tracker_backup_get_type (void) G_GNUC_CONST;
guint tracker_backup_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
#define TRACKER_DBUS_SERVICE "org.freedesktop.Tracker1"
static gboolean tracker_dbus_dbus_register_service (const gchar* name);
static guint tracker_dbus_register_object (GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, GDBusConnection* lconnection, gconstpointer object, const gchar* path);
static guint _vala_g_dbus_connection_register_object (GType type, void* object, GDBusConnection* connection, const gchar* path, GError** error);
gboolean tracker_dbus_register_names (void);
gboolean tracker_dbus_init (TrackerConfig* config_p);
static void tracker_dbus_name_owner_changed_cb (GDBusConnection* connection, const gchar* sender_name, const gchar* object_path, const gchar* interface_name, const gchar* signal_name, GVariant* parameters);
void tracker_resources_unreg_batches (TrackerResources* self, const gchar* old_owner);
static void tracker_dbus_set_available (gboolean available);
gboolean tracker_dbus_register_objects (void);
void tracker_dbus_shutdown (void);
TrackerStatus* tracker_dbus_register_notifier (void);
TrackerStatus* tracker_status_new (void);
TrackerStatus* tracker_status_construct (GType object_type);
#define TRACKER_STATUS_PATH "/org/freedesktop/Tracker1/Status"
TrackerStatistics* tracker_statistics_new (void);
TrackerStatistics* tracker_statistics_construct (GType object_type);
#define TRACKER_STATISTICS_PATH "/org/freedesktop/Tracker1/Statistics"
TrackerResources* tracker_resources_new (GDBusConnection* connection, TrackerConfig* config_p);
TrackerResources* tracker_resources_construct (GType object_type, GDBusConnection* connection, TrackerConfig* config_p);
static void _tracker_dbus_name_owner_changed_cb_gd_bus_signal_callback (GDBusConnection* connection, const gchar* sender_name, const gchar* object_path, const gchar* interface_name, const gchar* signal_name, GVariant* parameters, gpointer self);
#define TRACKER_RESOURCES_PATH "/org/freedesktop/Tracker1/Resources"
TrackerSteroids* tracker_steroids_new (void);
TrackerSteroids* tracker_steroids_construct (GType object_type);
#define TRACKER_STEROIDS_PATH "/org/freedesktop/Tracker1/Steroids"
TrackerBackup* tracker_backup_new (void);
TrackerBackup* tracker_backup_construct (GType object_type);
#define TRACKER_BACKUP_PATH "/org/freedesktop/Tracker1/Backup"
gboolean tracker_dbus_register_prepare_class_signal (void);
void tracker_resources_enable_signals (TrackerResources* self);
GObject* tracker_dbus_get_object (GType type);
TrackerDBus* tracker_dbus_new (void);
TrackerDBus* tracker_dbus_construct (GType object_type);
static void tracker_dbus_finalize (TrackerDBus* obj);


static gboolean tracker_dbus_dbus_register_service (const gchar* name) {
	gboolean result = FALSE;
	const gchar* _tmp0_ = NULL;
	GError * _inner_error_ = NULL;
#line 39 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_val_if_fail (name != NULL, FALSE);
#line 40 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = name;
#line 40 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_message ("Registering D-Bus service...\n  Name:'%s'", _tmp0_);
#line 210 "tracker-dbus.c"
	{
		GVariant* reply = NULL;
		GDBusConnection* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
		GVariant* _tmp3_ = NULL;
		GVariant* _tmp4_ = NULL;
		GVariant* _tmp5_ = NULL;
		GVariant* _tmp6_ = NULL;
		guint _result_ = 0U;
		GVariant* _tmp7_ = NULL;
		guint _tmp8_ = 0U;
#line 43 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp1_ = tracker_dbus_connection;
#line 43 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp2_ = name;
#line 43 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp3_ = g_variant_new ("(su)", _tmp2_, 1 << 2, NULL);
#line 43 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_variant_ref_sink (_tmp3_);
#line 43 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp4_ = _tmp3_;
#line 43 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp5_ = g_dbus_connection_call_sync (_tmp1_, "org.freedesktop.DBus", "/org/freedesktop/DBus", "org.freedesktop.DBus", "RequestName", _tmp4_, (const GVariantType*) "(u)", 0, -1, NULL, &_inner_error_);
#line 43 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp6_ = _tmp5_;
#line 43 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_g_variant_unref0 (_tmp4_);
#line 43 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		reply = _tmp6_;
#line 43 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 242 "tracker-dbus.c"
			goto __catch2_g_error;
		}
#line 51 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp7_ = reply;
#line 51 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_variant_get (_tmp7_, "(u)", &_result_, NULL);
#line 52 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp8_ = _result_;
#line 52 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		if (_tmp8_ != ((guint) 1)) {
#line 253 "tracker-dbus.c"
			const gchar* _tmp9_ = NULL;
#line 53 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			_tmp9_ = name;
#line 53 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			g_critical ("D-Bus service name:'%s' is already taken, " "perhaps the daemon is already running?", _tmp9_);
#line 56 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			result = FALSE;
#line 56 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			_g_variant_unref0 (reply);
#line 56 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			return result;
#line 265 "tracker-dbus.c"
		}
#line 59 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		result = TRUE;
#line 59 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_g_variant_unref0 (reply);
#line 59 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 273 "tracker-dbus.c"
	}
	goto __finally2;
	__catch2_g_error:
	{
		GError* e = NULL;
		const gchar* _tmp10_ = NULL;
		GError* _tmp11_ = NULL;
		const gchar* _tmp12_ = NULL;
#line 42 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		e = _inner_error_;
#line 42 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_inner_error_ = NULL;
#line 61 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp10_ = name;
#line 61 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp11_ = e;
#line 61 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp12_ = _tmp11_->message;
#line 61 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_critical ("Could not aquire name:'%s', %s", _tmp10_, _tmp12_);
#line 62 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		result = FALSE;
#line 62 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_g_error_free0 (e);
#line 62 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 300 "tracker-dbus.c"
	}
	__finally2:
#line 42 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 42 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_clear_error (&_inner_error_);
#line 42 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	return FALSE;
#line 309 "tracker-dbus.c"
}


static guint _vala_g_dbus_connection_register_object (GType type, void* object, GDBusConnection* connection, const gchar* path, GError** error) {
	void *func;
#line 72 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	func = g_type_get_qdata (type, g_quark_from_static_string ("vala-dbus-register-object"));
#line 72 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (!func) {
#line 72 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED, "The specified type does not support D-Bus registration");
#line 72 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return 0;
#line 323 "tracker-dbus.c"
	}
#line 72 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	return ((guint (*) (void *, GDBusConnection *, const gchar *, GError **)) func) (object, connection, path, error);
#line 327 "tracker-dbus.c"
}


static guint tracker_dbus_register_object (GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, GDBusConnection* lconnection, gconstpointer object, const gchar* path) {
	guint result = 0U;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	GError * _inner_error_ = NULL;
#line 66 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_val_if_fail (lconnection != NULL, 0U);
#line 66 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_val_if_fail (path != NULL, 0U);
#line 67 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_message ("Registering D-Bus object...");
#line 68 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = path;
#line 68 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_message ("  Path:'%s'", _tmp0_);
#line 69 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp1_ = g_type_name (t_type);
#line 69 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_message ("  Type:'%s'", _tmp1_);
#line 350 "tracker-dbus.c"
	{
		guint id = 0U;
		GDBusConnection* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		gconstpointer _tmp4_ = NULL;
		guint _tmp5_ = 0U;
#line 72 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp2_ = lconnection;
#line 72 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp3_ = path;
#line 72 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp4_ = object;
#line 72 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp5_ = _vala_g_dbus_connection_register_object (t_type, _tmp4_, _tmp2_, _tmp3_, &_inner_error_);
#line 72 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		id = _tmp5_;
#line 72 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 369 "tracker-dbus.c"
			goto __catch3_g_error;
		}
#line 73 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		result = id;
#line 73 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 376 "tracker-dbus.c"
	}
	goto __finally3;
	__catch3_g_error:
	{
		GError* e = NULL;
		GError* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
#line 71 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		e = _inner_error_;
#line 71 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_inner_error_ = NULL;
#line 75 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp6_ = e;
#line 75 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp7_ = _tmp6_->message;
#line 75 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_critical ("Could not register D-Bus object: %s", _tmp7_);
#line 76 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		result = (guint) 0;
#line 76 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_g_error_free0 (e);
#line 76 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 400 "tracker-dbus.c"
	}
	__finally3:
#line 71 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 71 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_clear_error (&_inner_error_);
#line 71 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	return 0U;
#line 409 "tracker-dbus.c"
}


gboolean tracker_dbus_register_names (void) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
#line 82 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = tracker_dbus_dbus_register_service (TRACKER_DBUS_SERVICE);
#line 82 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (!_tmp0_) {
#line 83 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		result = FALSE;
#line 83 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 424 "tracker-dbus.c"
	}
#line 86 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	result = TRUE;
#line 86 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	return result;
#line 430 "tracker-dbus.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 91 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	return self ? g_object_ref (self) : NULL;
#line 437 "tracker-dbus.c"
}


gboolean tracker_dbus_init (TrackerConfig* config_p) {
	gboolean result = FALSE;
	TrackerConfig* _tmp0_ = NULL;
	TrackerConfig* _tmp1_ = NULL;
	GDBusConnection* _tmp2_ = NULL;
	GError * _inner_error_ = NULL;
#line 89 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_val_if_fail (config_p != NULL, FALSE);
#line 91 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = config_p;
#line 91 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 91 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_g_object_unref0 (tracker_dbus_config);
#line 91 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_config = _tmp1_;
#line 92 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp2_ = tracker_dbus_connection;
#line 92 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp2_ != NULL) {
#line 93 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		result = TRUE;
#line 93 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 465 "tracker-dbus.c"
	}
	{
		GDBusConnection* _tmp3_ = NULL;
		GBusType _tmp4_ = 0;
		GDBusConnection* _tmp5_ = NULL;
		GDBusConnection* _tmp6_ = NULL;
#line 97 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp4_ = tracker_ipc_bus ();
#line 97 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp5_ = g_bus_get_sync (_tmp4_, NULL, &_inner_error_);
#line 97 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp3_ = _tmp5_;
#line 97 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 480 "tracker-dbus.c"
			goto __catch4_g_error;
		}
#line 97 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp6_ = _tmp3_;
#line 97 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp3_ = NULL;
#line 97 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_g_object_unref0 (tracker_dbus_connection);
#line 97 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_connection = _tmp6_;
#line 96 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_g_object_unref0 (_tmp3_);
#line 493 "tracker-dbus.c"
	}
	goto __finally4;
	__catch4_g_error:
	{
		GError* e = NULL;
		GError* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
#line 96 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		e = _inner_error_;
#line 96 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_inner_error_ = NULL;
#line 99 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp7_ = e;
#line 99 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp8_ = _tmp7_->message;
#line 99 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_critical ("Could not connect to the D-Bus session bus, %s", _tmp8_);
#line 100 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		result = FALSE;
#line 100 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_g_error_free0 (e);
#line 100 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 517 "tracker-dbus.c"
	}
	__finally4:
#line 96 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 96 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 96 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_clear_error (&_inner_error_);
#line 96 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return FALSE;
#line 528 "tracker-dbus.c"
	}
#line 103 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	result = TRUE;
#line 103 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	return result;
#line 534 "tracker-dbus.c"
}


static void tracker_dbus_name_owner_changed_cb (GDBusConnection* connection, const gchar* sender_name, const gchar* object_path, const gchar* interface_name, const gchar* signal_name, GVariant* parameters) {
	const gchar* name = NULL;
	const gchar* old_owner = NULL;
	const gchar* new_owner = NULL;
	GVariant* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	const gchar* _tmp2_ = NULL;
#line 106 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_if_fail (connection != NULL);
#line 106 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_if_fail (sender_name != NULL);
#line 106 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_if_fail (object_path != NULL);
#line 106 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_if_fail (interface_name != NULL);
#line 106 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_if_fail (signal_name != NULL);
#line 106 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_if_fail (parameters != NULL);
#line 109 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = parameters;
#line 109 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_variant_get (_tmp0_, "(&s&s&s)", &name, &old_owner, &new_owner, NULL);
#line 111 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp2_ = old_owner;
#line 111 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (g_strcmp0 (_tmp2_, "") != 0) {
#line 565 "tracker-dbus.c"
		const gchar* _tmp3_ = NULL;
#line 111 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp3_ = new_owner;
#line 111 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp1_ = g_strcmp0 (_tmp3_, "") == 0;
#line 571 "tracker-dbus.c"
	} else {
#line 111 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp1_ = FALSE;
#line 575 "tracker-dbus.c"
	}
#line 111 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp1_) {
#line 579 "tracker-dbus.c"
		TrackerResources* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
#line 113 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp4_ = tracker_dbus_resources;
#line 113 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp5_ = old_owner;
#line 113 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_resources_unreg_batches (_tmp4_, _tmp5_);
#line 588 "tracker-dbus.c"
	}
}


static void tracker_dbus_set_available (gboolean available) {
	gboolean _tmp0_ = FALSE;
#line 118 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = available;
#line 118 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp0_) {
#line 599 "tracker-dbus.c"
		guint _tmp1_ = 0U;
#line 119 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp1_ = tracker_dbus_resources_id;
#line 119 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		if (_tmp1_ == ((guint) 0)) {
#line 120 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			tracker_dbus_register_objects ();
#line 607 "tracker-dbus.c"
		}
	} else {
		guint _tmp2_ = 0U;
#line 123 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp2_ = tracker_dbus_resources_id;
#line 123 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		if (_tmp2_ != ((guint) 0)) {
#line 615 "tracker-dbus.c"
			GDBusConnection* _tmp3_ = NULL;
			guint _tmp4_ = 0U;
			GDBusConnection* _tmp5_ = NULL;
			guint _tmp6_ = 0U;
			GDBusConnection* _tmp7_ = NULL;
			guint _tmp8_ = 0U;
#line 124 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			_tmp3_ = tracker_dbus_connection;
#line 124 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			_tmp4_ = tracker_dbus_name_owner_changed_id;
#line 124 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			g_dbus_connection_signal_unsubscribe (_tmp3_, _tmp4_);
#line 125 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			tracker_dbus_name_owner_changed_id = (guint) 0;
#line 127 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			_tmp5_ = tracker_dbus_connection;
#line 127 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			_tmp6_ = tracker_dbus_resources_id;
#line 127 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			g_dbus_connection_unregister_object (_tmp5_, _tmp6_);
#line 128 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			_g_object_unref0 (tracker_dbus_resources);
#line 128 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			tracker_dbus_resources = NULL;
#line 129 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			tracker_dbus_resources_id = (guint) 0;
#line 131 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			_tmp7_ = tracker_dbus_connection;
#line 131 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			_tmp8_ = tracker_dbus_steroids_id;
#line 131 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			g_dbus_connection_unregister_object (_tmp7_, _tmp8_);
#line 132 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			_g_object_unref0 (tracker_dbus_steroids);
#line 132 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			tracker_dbus_steroids = NULL;
#line 133 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			tracker_dbus_steroids_id = (guint) 0;
#line 654 "tracker-dbus.c"
		}
	}
}


void tracker_dbus_shutdown (void) {
	TrackerBackup* _tmp0_ = NULL;
	TrackerStatus* _tmp3_ = NULL;
#line 139 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_set_available (FALSE);
#line 141 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = tracker_dbus_backup;
#line 141 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp0_ != NULL) {
#line 669 "tracker-dbus.c"
		GDBusConnection* _tmp1_ = NULL;
		guint _tmp2_ = 0U;
#line 142 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp1_ = tracker_dbus_connection;
#line 142 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp2_ = tracker_dbus_backup_id;
#line 142 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_dbus_connection_unregister_object (_tmp1_, _tmp2_);
#line 143 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_g_object_unref0 (tracker_dbus_backup);
#line 143 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_backup = NULL;
#line 144 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_backup_id = (guint) 0;
#line 684 "tracker-dbus.c"
	}
#line 147 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp3_ = tracker_dbus_notifier;
#line 147 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp3_ != NULL) {
#line 690 "tracker-dbus.c"
		GDBusConnection* _tmp4_ = NULL;
		guint _tmp5_ = 0U;
#line 148 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp4_ = tracker_dbus_connection;
#line 148 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp5_ = tracker_dbus_notifier_id;
#line 148 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_dbus_connection_unregister_object (_tmp4_, _tmp5_);
#line 149 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_g_object_unref0 (tracker_dbus_notifier);
#line 149 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_notifier = NULL;
#line 150 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_notifier_id = (guint) 0;
#line 705 "tracker-dbus.c"
	}
#line 153 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_g_object_unref0 (tracker_dbus_connection);
#line 153 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_connection = NULL;
#line 711 "tracker-dbus.c"
}


TrackerStatus* tracker_dbus_register_notifier (void) {
	TrackerStatus* result = NULL;
	GDBusConnection* _tmp0_ = NULL;
	TrackerStatus* _tmp1_ = NULL;
	TrackerStatus* _tmp2_ = NULL;
	GDBusConnection* _tmp3_ = NULL;
	TrackerStatus* _tmp4_ = NULL;
	guint _tmp5_ = 0U;
	TrackerStatus* _tmp6_ = NULL;
	TrackerStatus* _tmp7_ = NULL;
#line 157 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = tracker_dbus_connection;
#line 157 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp0_ == NULL) {
#line 158 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_critical ("D-Bus support must be initialized before registering objects!");
#line 159 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		result = NULL;
#line 159 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 735 "tracker-dbus.c"
	}
#line 163 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp1_ = tracker_status_new ();
#line 163 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_g_object_unref0 (tracker_dbus_notifier);
#line 163 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_notifier = _tmp1_;
#line 164 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp2_ = tracker_dbus_notifier;
#line 164 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp2_ == NULL) {
#line 165 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_critical ("Could not create TrackerStatus object to register");
#line 166 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		result = NULL;
#line 166 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 753 "tracker-dbus.c"
	}
#line 169 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp3_ = tracker_dbus_connection;
#line 169 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp4_ = tracker_dbus_notifier;
#line 169 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp5_ = tracker_dbus_register_object (TRACKER_TYPE_STATUS, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp3_, _tmp4_, TRACKER_STATUS_PATH);
#line 169 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_notifier_id = _tmp5_;
#line 171 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp6_ = tracker_dbus_notifier;
#line 171 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp7_ = _g_object_ref0 (_tmp6_);
#line 171 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	result = _tmp7_;
#line 171 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	return result;
#line 771 "tracker-dbus.c"
}


static void _tracker_dbus_name_owner_changed_cb_gd_bus_signal_callback (GDBusConnection* connection, const gchar* sender_name, const gchar* object_path, const gchar* interface_name, const gchar* signal_name, GVariant* parameters, gpointer self) {
#line 198 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_name_owner_changed_cb (connection, sender_name, object_path, interface_name, signal_name, parameters);
#line 778 "tracker-dbus.c"
}


gboolean tracker_dbus_register_objects (void) {
	gboolean result = FALSE;
	GDBusConnection* _tmp0_ = NULL;
	TrackerStatistics* _tmp1_ = NULL;
	TrackerStatistics* _tmp2_ = NULL;
	GDBusConnection* _tmp3_ = NULL;
	TrackerStatistics* _tmp4_ = NULL;
	guint _tmp5_ = 0U;
	GDBusConnection* _tmp6_ = NULL;
	TrackerConfig* _tmp7_ = NULL;
	TrackerResources* _tmp8_ = NULL;
	TrackerResources* _tmp9_ = NULL;
	GDBusConnection* _tmp10_ = NULL;
	guint _tmp11_ = 0U;
	GDBusConnection* _tmp12_ = NULL;
	TrackerResources* _tmp13_ = NULL;
	guint _tmp14_ = 0U;
	TrackerSteroids* _tmp15_ = NULL;
	TrackerSteroids* _tmp16_ = NULL;
	GDBusConnection* _tmp17_ = NULL;
	TrackerSteroids* _tmp18_ = NULL;
	guint _tmp19_ = 0U;
	TrackerBackup* _tmp20_ = NULL;
#line 177 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = tracker_dbus_connection;
#line 177 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp0_ == NULL) {
#line 178 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_critical ("D-Bus support must be initialized before registering objects!");
#line 179 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		result = FALSE;
#line 179 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 815 "tracker-dbus.c"
	}
#line 183 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp1_ = tracker_statistics_new ();
#line 183 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_g_object_unref0 (tracker_dbus_statistics);
#line 183 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_statistics = _tmp1_;
#line 184 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp2_ = tracker_dbus_statistics;
#line 184 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp2_ == NULL) {
#line 185 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_critical ("Could not create TrackerStatistics object to register");
#line 186 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		result = FALSE;
#line 186 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 833 "tracker-dbus.c"
	}
#line 189 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp3_ = tracker_dbus_connection;
#line 189 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp4_ = tracker_dbus_statistics;
#line 189 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp5_ = tracker_dbus_register_object (TRACKER_TYPE_STATISTICS, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp3_, _tmp4_, TRACKER_STATISTICS_PATH);
#line 189 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_statistics_id = _tmp5_;
#line 192 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp6_ = tracker_dbus_connection;
#line 192 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp7_ = tracker_dbus_config;
#line 192 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp8_ = tracker_resources_new (_tmp6_, _tmp7_);
#line 192 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_g_object_unref0 (tracker_dbus_resources);
#line 192 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_resources = _tmp8_;
#line 193 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp9_ = tracker_dbus_resources;
#line 193 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp9_ == NULL) {
#line 194 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_critical ("Could not create TrackerResources object to register");
#line 195 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		result = FALSE;
#line 195 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 863 "tracker-dbus.c"
	}
#line 198 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp10_ = tracker_dbus_connection;
#line 198 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp11_ = g_dbus_connection_signal_subscribe (_tmp10_, "org.freedesktop.DBus", "org.freedesktop.DBus", "NameOwnerChanged", "/org/freedesktop/DBus", NULL, 0, _tracker_dbus_name_owner_changed_cb_gd_bus_signal_callback, NULL, NULL);
#line 198 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_name_owner_changed_id = _tmp11_;
#line 205 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp12_ = tracker_dbus_connection;
#line 205 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp13_ = tracker_dbus_resources;
#line 205 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp14_ = tracker_dbus_register_object (TRACKER_TYPE_RESOURCES, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp12_, _tmp13_, TRACKER_RESOURCES_PATH);
#line 205 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_resources_id = _tmp14_;
#line 208 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp15_ = tracker_steroids_new ();
#line 208 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_g_object_unref0 (tracker_dbus_steroids);
#line 208 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_steroids = _tmp15_;
#line 209 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp16_ = tracker_dbus_steroids;
#line 209 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp16_ == NULL) {
#line 210 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_critical ("Could not create TrackerSteroids object to register");
#line 211 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		result = FALSE;
#line 211 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 895 "tracker-dbus.c"
	}
#line 214 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp17_ = tracker_dbus_connection;
#line 214 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp18_ = tracker_dbus_steroids;
#line 214 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp19_ = tracker_dbus_register_object (TRACKER_TYPE_STEROIDS, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp17_, _tmp18_, TRACKER_STEROIDS_PATH);
#line 214 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_steroids_id = _tmp19_;
#line 216 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp20_ = tracker_dbus_backup;
#line 216 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp20_ == NULL) {
#line 909 "tracker-dbus.c"
		TrackerBackup* _tmp21_ = NULL;
		TrackerBackup* _tmp22_ = NULL;
		GDBusConnection* _tmp23_ = NULL;
		TrackerBackup* _tmp24_ = NULL;
		guint _tmp25_ = 0U;
#line 218 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp21_ = tracker_backup_new ();
#line 218 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_g_object_unref0 (tracker_dbus_backup);
#line 218 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_backup = _tmp21_;
#line 219 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp22_ = tracker_dbus_backup;
#line 219 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		if (_tmp22_ == NULL) {
#line 220 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			g_critical ("Could not create TrackerBackup object to register");
#line 221 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			result = FALSE;
#line 221 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			return result;
#line 931 "tracker-dbus.c"
		}
#line 224 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp23_ = tracker_dbus_connection;
#line 224 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp24_ = tracker_dbus_backup;
#line 224 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp25_ = tracker_dbus_register_object (TRACKER_TYPE_BACKUP, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp23_, _tmp24_, TRACKER_BACKUP_PATH);
#line 224 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_backup_id = _tmp25_;
#line 941 "tracker-dbus.c"
	}
#line 227 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	result = TRUE;
#line 227 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	return result;
#line 947 "tracker-dbus.c"
}


gboolean tracker_dbus_register_prepare_class_signal (void) {
	gboolean result = FALSE;
	TrackerResources* _tmp0_ = NULL;
	TrackerResources* _tmp1_ = NULL;
#line 231 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = tracker_dbus_resources;
#line 231 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp0_ == NULL) {
#line 232 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_message ("Error during initialization, Resources DBus object not available");
#line 233 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		result = FALSE;
#line 233 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 965 "tracker-dbus.c"
	}
#line 236 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp1_ = tracker_dbus_resources;
#line 236 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_resources_enable_signals (_tmp1_);
#line 238 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	result = TRUE;
#line 238 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	return result;
#line 975 "tracker-dbus.c"
}


GObject* tracker_dbus_get_object (GType type) {
	GObject* result = NULL;
	GType _tmp0_ = 0UL;
	GType _tmp3_ = 0UL;
	GType _tmp6_ = 0UL;
	GType _tmp9_ = 0UL;
#line 242 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = type;
#line 242 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp0_ == TRACKER_TYPE_RESOURCES) {
#line 989 "tracker-dbus.c"
		TrackerResources* _tmp1_ = NULL;
		GObject* _tmp2_ = NULL;
#line 243 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp1_ = tracker_dbus_resources;
#line 243 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp2_ = _g_object_ref0 ((GObject*) _tmp1_);
#line 243 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		result = _tmp2_;
#line 243 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 1000 "tracker-dbus.c"
	}
#line 246 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp3_ = type;
#line 246 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp3_ == TRACKER_TYPE_STEROIDS) {
#line 1006 "tracker-dbus.c"
		TrackerSteroids* _tmp4_ = NULL;
		GObject* _tmp5_ = NULL;
#line 247 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp4_ = tracker_dbus_steroids;
#line 247 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp5_ = _g_object_ref0 ((GObject*) _tmp4_);
#line 247 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		result = _tmp5_;
#line 247 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 1017 "tracker-dbus.c"
	}
#line 250 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp6_ = type;
#line 250 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp6_ == TRACKER_TYPE_STATUS) {
#line 1023 "tracker-dbus.c"
		TrackerStatus* _tmp7_ = NULL;
		GObject* _tmp8_ = NULL;
#line 251 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp7_ = tracker_dbus_notifier;
#line 251 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp8_ = _g_object_ref0 ((GObject*) _tmp7_);
#line 251 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		result = _tmp8_;
#line 251 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 1034 "tracker-dbus.c"
	}
#line 254 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp9_ = type;
#line 254 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp9_ == TRACKER_TYPE_BACKUP) {
#line 1040 "tracker-dbus.c"
		TrackerBackup* _tmp10_ = NULL;
		GObject* _tmp11_ = NULL;
#line 255 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp10_ = tracker_dbus_backup;
#line 255 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp11_ = _g_object_ref0 ((GObject*) _tmp10_);
#line 255 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		result = _tmp11_;
#line 255 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 1051 "tracker-dbus.c"
	}
#line 258 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	result = NULL;
#line 258 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	return result;
#line 1057 "tracker-dbus.c"
}


TrackerDBus* tracker_dbus_construct (GType object_type) {
	TrackerDBus* self = NULL;
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	self = (TrackerDBus*) g_type_create_instance (object_type);
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	return self;
#line 1067 "tracker-dbus.c"
}


TrackerDBus* tracker_dbus_new (void) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	return tracker_dbus_construct (TRACKER_TYPE_DBUS);
#line 1074 "tracker-dbus.c"
}


static void tracker_value_dbus_init (GValue* value) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	value->data[0].v_pointer = NULL;
#line 1081 "tracker-dbus.c"
}


static void tracker_value_dbus_free_value (GValue* value) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (value->data[0].v_pointer) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_unref (value->data[0].v_pointer);
#line 1090 "tracker-dbus.c"
	}
}


static void tracker_value_dbus_copy_value (const GValue* src_value, GValue* dest_value) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (src_value->data[0].v_pointer) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		dest_value->data[0].v_pointer = tracker_dbus_ref (src_value->data[0].v_pointer);
#line 1100 "tracker-dbus.c"
	} else {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		dest_value->data[0].v_pointer = NULL;
#line 1104 "tracker-dbus.c"
	}
}


static gpointer tracker_value_dbus_peek_pointer (const GValue* value) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	return value->data[0].v_pointer;
#line 1112 "tracker-dbus.c"
}


static gchar* tracker_value_dbus_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (collect_values[0].v_pointer) {
#line 1119 "tracker-dbus.c"
		TrackerDBus* object;
		object = collect_values[0].v_pointer;
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		if (object->parent_instance.g_class == NULL) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 1126 "tracker-dbus.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.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 1130 "tracker-dbus.c"
		}
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		value->data[0].v_pointer = tracker_dbus_ref (object);
#line 1134 "tracker-dbus.c"
	} else {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		value->data[0].v_pointer = NULL;
#line 1138 "tracker-dbus.c"
	}
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	return NULL;
#line 1142 "tracker-dbus.c"
}


static gchar* tracker_value_dbus_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	TrackerDBus** object_p;
	object_p = collect_values[0].v_pointer;
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (!object_p) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 1153 "tracker-dbus.c"
	}
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (!value->data[0].v_pointer) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		*object_p = NULL;
#line 1159 "tracker-dbus.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		*object_p = value->data[0].v_pointer;
#line 1163 "tracker-dbus.c"
	} else {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		*object_p = tracker_dbus_ref (value->data[0].v_pointer);
#line 1167 "tracker-dbus.c"
	}
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	return NULL;
#line 1171 "tracker-dbus.c"
}


GParamSpec* tracker_param_spec_dbus (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	TrackerParamSpecDBus* spec;
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_val_if_fail (g_type_is_a (object_type, TRACKER_TYPE_DBUS), NULL);
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	return G_PARAM_SPEC (spec);
#line 1185 "tracker-dbus.c"
}


gpointer tracker_value_get_dbus (const GValue* value) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_TYPE_DBUS), NULL);
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	return value->data[0].v_pointer;
#line 1194 "tracker-dbus.c"
}


void tracker_value_set_dbus (GValue* value, gpointer v_object) {
	TrackerDBus* old;
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_TYPE_DBUS));
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	old = value->data[0].v_pointer;
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (v_object) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TRACKER_TYPE_DBUS));
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		value->data[0].v_pointer = v_object;
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_ref (value->data[0].v_pointer);
#line 1214 "tracker-dbus.c"
	} else {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		value->data[0].v_pointer = NULL;
#line 1218 "tracker-dbus.c"
	}
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (old) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_unref (old);
#line 1224 "tracker-dbus.c"
	}
}


void tracker_value_take_dbus (GValue* value, gpointer v_object) {
	TrackerDBus* old;
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_TYPE_DBUS));
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	old = value->data[0].v_pointer;
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (v_object) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TRACKER_TYPE_DBUS));
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		value->data[0].v_pointer = v_object;
#line 1243 "tracker-dbus.c"
	} else {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		value->data[0].v_pointer = NULL;
#line 1247 "tracker-dbus.c"
	}
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (old) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_unref (old);
#line 1253 "tracker-dbus.c"
	}
}


static void tracker_dbus_class_init (TrackerDBusClass * klass) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_parent_class = g_type_class_peek_parent (klass);
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	((TrackerDBusClass *) klass)->finalize = tracker_dbus_finalize;
#line 1263 "tracker-dbus.c"
}


static void tracker_dbus_instance_init (TrackerDBus * self) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	self->ref_count = 1;
#line 1270 "tracker-dbus.c"
}


static void tracker_dbus_finalize (TrackerDBus* obj) {
	TrackerDBus * self;
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRACKER_TYPE_DBUS, TrackerDBus);
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_signal_handlers_destroy (self);
#line 1280 "tracker-dbus.c"
}


GType tracker_dbus_get_type (void) {
	static volatile gsize tracker_dbus_type_id__volatile = 0;
	if (g_once_init_enter (&tracker_dbus_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { tracker_value_dbus_init, tracker_value_dbus_free_value, tracker_value_dbus_copy_value, tracker_value_dbus_peek_pointer, "p", tracker_value_dbus_collect_value, "p", tracker_value_dbus_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (TrackerDBusClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tracker_dbus_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TrackerDBus), 0, (GInstanceInitFunc) tracker_dbus_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 tracker_dbus_type_id;
		tracker_dbus_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TrackerDBus", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&tracker_dbus_type_id__volatile, tracker_dbus_type_id);
	}
	return tracker_dbus_type_id__volatile;
}


gpointer tracker_dbus_ref (gpointer instance) {
	TrackerDBus* self;
	self = instance;
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	g_atomic_int_inc (&self->ref_count);
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	return instance;
#line 1305 "tracker-dbus.c"
}


void tracker_dbus_unref (gpointer instance) {
	TrackerDBus* self;
	self = instance;
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		TRACKER_DBUS_GET_CLASS (self)->finalize (self);
#line 21 "/home/carlos/Source/gnome/tracker/src/tracker-store/tracker-dbus.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 1318 "tracker-dbus.c"
	}
}



