/* tracker-dbus.c generated by valac 0.14.0, 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 <stdlib.h>
#include <string.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;

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 (void);
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);
TrackerResources* tracker_resources_construct (GType object_type, GDBusConnection* connection);
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_;
	GError * _inner_error_ = NULL;
#line 38 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_val_if_fail (name != NULL, FALSE);
#line 39 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = name;
#line 39 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	g_message ("Registering D-Bus service...\n  Name:'%s'", _tmp0_);
#line 206 "tracker-dbus.c"
	{
		GDBusConnection* _tmp1_;
		const gchar* _tmp2_;
		GVariant* _tmp3_;
		GVariant* _tmp4_;
		GVariant* _tmp5_ = NULL;
		GVariant* _tmp6_;
		GVariant* reply;
		guint _result_ = 0U;
		GVariant* _tmp7_;
		guint _tmp8_;
#line 42 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp1_ = tracker_dbus_connection;
#line 42 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp2_ = name;
#line 42 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp3_ = g_variant_new ("(su)", _tmp2_, 1 << 2, NULL);
#line 42 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp4_ = g_variant_ref_sink (_tmp3_);
#line 42 "/home/martyn/Source/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 42 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp6_ = _tmp5_;
#line 42 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_g_variant_unref0 (_tmp4_);
#line 42 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		reply = _tmp6_;
#line 42 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		if (_inner_error_ != NULL) {
#line 236 "tracker-dbus.c"
			goto __catch2_g_error;
		}
#line 50 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp7_ = reply;
#line 50 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		g_variant_get (_tmp7_, "(u)", &_result_, NULL);
#line 51 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp8_ = _result_;
#line 51 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		if (_tmp8_ != ((guint) 1)) {
#line 247 "tracker-dbus.c"
			const gchar* _tmp9_;
#line 52 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			_tmp9_ = name;
#line 52 "/home/martyn/Source/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 55 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			result = FALSE;
#line 55 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			_g_variant_unref0 (reply);
#line 55 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			return result;
#line 259 "tracker-dbus.c"
		}
#line 58 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		result = TRUE;
#line 58 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_g_variant_unref0 (reply);
#line 58 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 267 "tracker-dbus.c"
	}
	goto __finally2;
	__catch2_g_error:
	{
		GError* e = NULL;
		const gchar* _tmp10_;
		GError* _tmp11_;
		const gchar* _tmp12_;
#line 41 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		e = _inner_error_;
#line 41 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_inner_error_ = NULL;
#line 60 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp10_ = name;
#line 60 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp11_ = e;
#line 60 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp12_ = _tmp11_->message;
#line 60 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		g_critical ("Could not aquire name:'%s', %s", _tmp10_, _tmp12_);
#line 61 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		result = FALSE;
#line 61 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_g_error_free0 (e);
#line 61 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 294 "tracker-dbus.c"
	}
	__finally2:
#line 41 "/home/martyn/Source/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 41 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	g_clear_error (&_inner_error_);
#line 41 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	return FALSE;
#line 303 "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 71 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	func = g_type_get_qdata (type, g_quark_from_static_string ("vala-dbus-register-object"));
#line 71 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (!func) {
#line 71 "/home/martyn/Source/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 71 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return 0;
#line 317 "tracker-dbus.c"
	}
#line 71 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	return ((guint (*) (void *, GDBusConnection *, const gchar *, GError **)) func) (object, connection, path, error);
#line 321 "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_;
	const gchar* _tmp1_ = NULL;
	GError * _inner_error_ = NULL;
#line 65 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_val_if_fail (lconnection != NULL, 0U);
#line 65 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_val_if_fail (path != NULL, 0U);
#line 66 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	g_message ("Registering D-Bus object...");
#line 67 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = path;
#line 67 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	g_message ("  Path:'%s'", _tmp0_);
#line 68 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp1_ = g_type_name (t_type);
#line 68 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	g_message ("  Type:'%s'", _tmp1_);
#line 344 "tracker-dbus.c"
	{
		GDBusConnection* _tmp2_;
		const gchar* _tmp3_;
		gconstpointer _tmp4_;
		guint _tmp5_ = 0U;
		guint id;
#line 71 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp2_ = lconnection;
#line 71 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp3_ = path;
#line 71 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp4_ = object;
#line 71 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp5_ = _vala_g_dbus_connection_register_object (t_type, _tmp4_, _tmp2_, _tmp3_, &_inner_error_);
#line 71 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		id = _tmp5_;
#line 71 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		if (_inner_error_ != NULL) {
#line 363 "tracker-dbus.c"
			goto __catch3_g_error;
		}
#line 72 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		result = id;
#line 72 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 370 "tracker-dbus.c"
	}
	goto __finally3;
	__catch3_g_error:
	{
		GError* e = NULL;
		GError* _tmp6_;
		const gchar* _tmp7_;
#line 70 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		e = _inner_error_;
#line 70 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_inner_error_ = NULL;
#line 74 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp6_ = e;
#line 74 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp7_ = _tmp6_->message;
#line 74 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		g_critical ("Could not register D-Bus object: %s", _tmp7_);
#line 75 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		result = (guint) 0;
#line 75 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_g_error_free0 (e);
#line 75 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 394 "tracker-dbus.c"
	}
	__finally3:
#line 70 "/home/martyn/Source/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 70 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	g_clear_error (&_inner_error_);
#line 70 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	return 0U;
#line 403 "tracker-dbus.c"
}


gboolean tracker_dbus_register_names (void) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
#line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = tracker_dbus_dbus_register_service (TRACKER_DBUS_SERVICE);
#line 81 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (!_tmp0_) {
#line 82 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		result = FALSE;
#line 82 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 418 "tracker-dbus.c"
	}
#line 85 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	result = TRUE;
#line 85 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	return result;
#line 424 "tracker-dbus.c"
}


gboolean tracker_dbus_init (void) {
	gboolean result = FALSE;
	GDBusConnection* _tmp0_;
	GError * _inner_error_ = NULL;
#line 90 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = tracker_dbus_connection;
#line 90 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp0_ != NULL) {
#line 91 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		result = TRUE;
#line 91 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 440 "tracker-dbus.c"
	}
	{
		GDBusConnection* _tmp1_ = NULL;
		GDBusConnection* _tmp2_;
#line 95 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp1_ = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &_inner_error_);
#line 95 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp2_ = _tmp1_;
#line 95 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		if (_inner_error_ != NULL) {
#line 451 "tracker-dbus.c"
			goto __catch4_g_error;
		}
#line 95 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_g_object_unref0 (tracker_dbus_connection);
#line 95 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_connection = _tmp2_;
#line 458 "tracker-dbus.c"
	}
	goto __finally4;
	__catch4_g_error:
	{
		GError* e = NULL;
		GError* _tmp3_;
		const gchar* _tmp4_;
#line 94 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		e = _inner_error_;
#line 94 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_inner_error_ = NULL;
#line 97 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp3_ = e;
#line 97 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp4_ = _tmp3_->message;
#line 97 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		g_critical ("Could not connect to the D-Bus session bus, %s", _tmp4_);
#line 98 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		result = FALSE;
#line 98 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_g_error_free0 (e);
#line 98 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 482 "tracker-dbus.c"
	}
	__finally4:
#line 94 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (_inner_error_ != NULL) {
#line 94 "/home/martyn/Source/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 94 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		g_clear_error (&_inner_error_);
#line 94 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return FALSE;
#line 493 "tracker-dbus.c"
	}
#line 101 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	result = TRUE;
#line 101 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	return result;
#line 499 "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_;
	gboolean _tmp1_ = FALSE;
	const gchar* _tmp2_;
	gboolean _tmp4_;
#line 104 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_if_fail (connection != NULL);
#line 104 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_if_fail (sender_name != NULL);
#line 104 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_if_fail (object_path != NULL);
#line 104 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_if_fail (interface_name != NULL);
#line 104 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_if_fail (signal_name != NULL);
#line 104 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_if_fail (parameters != NULL);
#line 107 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = parameters;
#line 107 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	g_variant_get (_tmp0_, "(&s&s&s)", &name, &old_owner, &new_owner, NULL);
#line 109 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp2_ = old_owner;
#line 109 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (g_strcmp0 (_tmp2_, "") != 0) {
#line 531 "tracker-dbus.c"
		const gchar* _tmp3_;
#line 109 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp3_ = new_owner;
#line 109 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp1_ = g_strcmp0 (_tmp3_, "") == 0;
#line 537 "tracker-dbus.c"
	} else {
#line 109 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp1_ = FALSE;
#line 541 "tracker-dbus.c"
	}
#line 109 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp4_ = _tmp1_;
#line 109 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp4_) {
#line 547 "tracker-dbus.c"
		TrackerResources* _tmp5_;
		const gchar* _tmp6_;
#line 111 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp5_ = tracker_dbus_resources;
#line 111 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp6_ = old_owner;
#line 111 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_resources_unreg_batches (_tmp5_, _tmp6_);
#line 556 "tracker-dbus.c"
	}
}


static void tracker_dbus_set_available (gboolean available) {
	gboolean _tmp0_;
#line 116 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = available;
#line 116 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp0_) {
#line 567 "tracker-dbus.c"
		guint _tmp1_;
#line 117 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp1_ = tracker_dbus_resources_id;
#line 117 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		if (_tmp1_ == ((guint) 0)) {
#line 118 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			tracker_dbus_register_objects ();
#line 575 "tracker-dbus.c"
		}
	} else {
		guint _tmp2_;
#line 121 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp2_ = tracker_dbus_resources_id;
#line 121 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		if (_tmp2_ != ((guint) 0)) {
#line 583 "tracker-dbus.c"
			GDBusConnection* _tmp3_;
			guint _tmp4_;
			GDBusConnection* _tmp5_;
			guint _tmp6_;
			GDBusConnection* _tmp7_;
			guint _tmp8_;
#line 122 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			_tmp3_ = tracker_dbus_connection;
#line 122 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			_tmp4_ = tracker_dbus_name_owner_changed_id;
#line 122 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			g_dbus_connection_signal_unsubscribe (_tmp3_, _tmp4_);
#line 123 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			tracker_dbus_name_owner_changed_id = (guint) 0;
#line 125 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			_tmp5_ = tracker_dbus_connection;
#line 125 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			_tmp6_ = tracker_dbus_resources_id;
#line 125 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			g_dbus_connection_unregister_object (_tmp5_, _tmp6_);
#line 126 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			_g_object_unref0 (tracker_dbus_resources);
#line 126 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			tracker_dbus_resources = NULL;
#line 127 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			tracker_dbus_resources_id = (guint) 0;
#line 129 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			_tmp7_ = tracker_dbus_connection;
#line 129 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			_tmp8_ = tracker_dbus_steroids_id;
#line 129 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			g_dbus_connection_unregister_object (_tmp7_, _tmp8_);
#line 130 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			_g_object_unref0 (tracker_dbus_steroids);
#line 130 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			tracker_dbus_steroids = NULL;
#line 131 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			tracker_dbus_steroids_id = (guint) 0;
#line 622 "tracker-dbus.c"
		}
	}
}


void tracker_dbus_shutdown (void) {
	TrackerBackup* _tmp0_;
	TrackerStatus* _tmp3_;
#line 137 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_set_available (FALSE);
#line 139 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = tracker_dbus_backup;
#line 139 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp0_ != NULL) {
#line 637 "tracker-dbus.c"
		GDBusConnection* _tmp1_;
		guint _tmp2_;
#line 140 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp1_ = tracker_dbus_connection;
#line 140 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp2_ = tracker_dbus_backup_id;
#line 140 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		g_dbus_connection_unregister_object (_tmp1_, _tmp2_);
#line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_g_object_unref0 (tracker_dbus_backup);
#line 141 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_backup = NULL;
#line 142 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_backup_id = (guint) 0;
#line 652 "tracker-dbus.c"
	}
#line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp3_ = tracker_dbus_notifier;
#line 145 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp3_ != NULL) {
#line 658 "tracker-dbus.c"
		GDBusConnection* _tmp4_;
		guint _tmp5_;
#line 146 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp4_ = tracker_dbus_connection;
#line 146 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp5_ = tracker_dbus_notifier_id;
#line 146 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		g_dbus_connection_unregister_object (_tmp4_, _tmp5_);
#line 147 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_g_object_unref0 (tracker_dbus_notifier);
#line 147 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_notifier = NULL;
#line 148 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_notifier_id = (guint) 0;
#line 673 "tracker-dbus.c"
	}
#line 151 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_g_object_unref0 (tracker_dbus_connection);
#line 151 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_connection = NULL;
#line 679 "tracker-dbus.c"
}


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


TrackerStatus* tracker_dbus_register_notifier (void) {
	TrackerStatus* result = NULL;
	GDBusConnection* _tmp0_;
	TrackerStatus* _tmp1_;
	TrackerStatus* _tmp2_;
	GDBusConnection* _tmp3_;
	TrackerStatus* _tmp4_;
	guint _tmp5_ = 0U;
	TrackerStatus* _tmp6_;
	TrackerStatus* _tmp7_;
#line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = tracker_dbus_connection;
#line 155 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp0_ == NULL) {
#line 156 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		g_critical ("D-Bus support must be initialized before registering objects!");
#line 157 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		result = NULL;
#line 157 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 710 "tracker-dbus.c"
	}
#line 161 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp1_ = tracker_status_new ();
#line 161 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_g_object_unref0 (tracker_dbus_notifier);
#line 161 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_notifier = _tmp1_;
#line 162 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp2_ = tracker_dbus_notifier;
#line 162 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp2_ == NULL) {
#line 163 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		g_critical ("Could not create TrackerStatus object to register");
#line 164 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		result = NULL;
#line 164 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 728 "tracker-dbus.c"
	}
#line 167 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp3_ = tracker_dbus_connection;
#line 167 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp4_ = tracker_dbus_notifier;
#line 167 "/home/martyn/Source/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 167 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_notifier_id = _tmp5_;
#line 169 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp6_ = tracker_dbus_notifier;
#line 169 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp7_ = _g_object_ref0 (_tmp6_);
#line 169 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	result = _tmp7_;
#line 169 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	return result;
#line 746 "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 196 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_name_owner_changed_cb (connection, sender_name, object_path, interface_name, signal_name, parameters);
#line 753 "tracker-dbus.c"
}


gboolean tracker_dbus_register_objects (void) {
	gboolean result = FALSE;
	GDBusConnection* _tmp0_;
	TrackerStatistics* _tmp1_;
	TrackerStatistics* _tmp2_;
	GDBusConnection* _tmp3_;
	TrackerStatistics* _tmp4_;
	guint _tmp5_ = 0U;
	GDBusConnection* _tmp6_;
	TrackerResources* _tmp7_;
	TrackerResources* _tmp8_;
	GDBusConnection* _tmp9_;
	guint _tmp10_ = 0U;
	GDBusConnection* _tmp11_;
	TrackerResources* _tmp12_;
	guint _tmp13_ = 0U;
	TrackerSteroids* _tmp14_;
	TrackerSteroids* _tmp15_;
	GDBusConnection* _tmp16_;
	TrackerSteroids* _tmp17_;
	guint _tmp18_ = 0U;
	TrackerBackup* _tmp19_;
#line 175 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = tracker_dbus_connection;
#line 175 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp0_ == NULL) {
#line 176 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		g_critical ("D-Bus support must be initialized before registering objects!");
#line 177 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		result = FALSE;
#line 177 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 789 "tracker-dbus.c"
	}
#line 181 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp1_ = tracker_statistics_new ();
#line 181 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_g_object_unref0 (tracker_dbus_statistics);
#line 181 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_statistics = _tmp1_;
#line 182 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp2_ = tracker_dbus_statistics;
#line 182 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp2_ == NULL) {
#line 183 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		g_critical ("Could not create TrackerStatistics object to register");
#line 184 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		result = FALSE;
#line 184 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 807 "tracker-dbus.c"
	}
#line 187 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp3_ = tracker_dbus_connection;
#line 187 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp4_ = tracker_dbus_statistics;
#line 187 "/home/martyn/Source/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 187 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_statistics_id = _tmp5_;
#line 190 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp6_ = tracker_dbus_connection;
#line 190 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp7_ = tracker_resources_new (_tmp6_);
#line 190 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_g_object_unref0 (tracker_dbus_resources);
#line 190 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_resources = _tmp7_;
#line 191 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp8_ = tracker_dbus_resources;
#line 191 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp8_ == NULL) {
#line 192 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		g_critical ("Could not create TrackerResources object to register");
#line 193 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		result = FALSE;
#line 193 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 835 "tracker-dbus.c"
	}
#line 196 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp9_ = tracker_dbus_connection;
#line 196 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp10_ = g_dbus_connection_signal_subscribe (_tmp9_, "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 196 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_name_owner_changed_id = _tmp10_;
#line 203 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp11_ = tracker_dbus_connection;
#line 203 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp12_ = tracker_dbus_resources;
#line 203 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp13_ = tracker_dbus_register_object (TRACKER_TYPE_RESOURCES, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp11_, _tmp12_, TRACKER_RESOURCES_PATH);
#line 203 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_resources_id = _tmp13_;
#line 206 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp14_ = tracker_steroids_new ();
#line 206 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_g_object_unref0 (tracker_dbus_steroids);
#line 206 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_steroids = _tmp14_;
#line 207 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp15_ = tracker_dbus_steroids;
#line 207 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp15_ == NULL) {
#line 208 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		g_critical ("Could not create TrackerSteroids object to register");
#line 209 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		result = FALSE;
#line 209 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 867 "tracker-dbus.c"
	}
#line 212 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp16_ = tracker_dbus_connection;
#line 212 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp17_ = tracker_dbus_steroids;
#line 212 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp18_ = tracker_dbus_register_object (TRACKER_TYPE_STEROIDS, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp16_, _tmp17_, TRACKER_STEROIDS_PATH);
#line 212 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_dbus_steroids_id = _tmp18_;
#line 214 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp19_ = tracker_dbus_backup;
#line 214 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp19_ == NULL) {
#line 881 "tracker-dbus.c"
		TrackerBackup* _tmp20_;
		TrackerBackup* _tmp21_;
		GDBusConnection* _tmp22_;
		TrackerBackup* _tmp23_;
		guint _tmp24_ = 0U;
#line 216 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp20_ = tracker_backup_new ();
#line 216 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_g_object_unref0 (tracker_dbus_backup);
#line 216 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_backup = _tmp20_;
#line 217 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp21_ = tracker_dbus_backup;
#line 217 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		if (_tmp21_ == NULL) {
#line 218 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			g_critical ("Could not create TrackerBackup object to register");
#line 219 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			result = FALSE;
#line 219 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			return result;
#line 903 "tracker-dbus.c"
		}
#line 222 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp22_ = tracker_dbus_connection;
#line 222 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp23_ = tracker_dbus_backup;
#line 222 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp24_ = tracker_dbus_register_object (TRACKER_TYPE_BACKUP, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp22_, _tmp23_, TRACKER_BACKUP_PATH);
#line 222 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_backup_id = _tmp24_;
#line 913 "tracker-dbus.c"
	}
#line 225 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	result = TRUE;
#line 225 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	return result;
#line 919 "tracker-dbus.c"
}


gboolean tracker_dbus_register_prepare_class_signal (void) {
	gboolean result = FALSE;
	TrackerResources* _tmp0_;
	TrackerResources* _tmp1_;
#line 229 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = tracker_dbus_resources;
#line 229 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp0_ == NULL) {
#line 230 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		g_message ("Error during initialization, Resources DBus object not available");
#line 231 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		result = FALSE;
#line 231 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 937 "tracker-dbus.c"
	}
#line 234 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp1_ = tracker_dbus_resources;
#line 234 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	tracker_resources_enable_signals (_tmp1_);
#line 236 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	result = TRUE;
#line 236 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	return result;
#line 947 "tracker-dbus.c"
}


GObject* tracker_dbus_get_object (GType type) {
	GObject* result = NULL;
	GType _tmp0_;
	GType _tmp3_;
	GType _tmp6_;
	GType _tmp9_;
#line 240 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp0_ = type;
#line 240 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp0_ == TRACKER_TYPE_RESOURCES) {
#line 961 "tracker-dbus.c"
		TrackerResources* _tmp1_;
		GObject* _tmp2_;
#line 241 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp1_ = tracker_dbus_resources;
#line 241 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp2_ = _g_object_ref0 ((GObject*) _tmp1_);
#line 241 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		result = _tmp2_;
#line 241 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 972 "tracker-dbus.c"
	}
#line 244 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp3_ = type;
#line 244 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp3_ == TRACKER_TYPE_STEROIDS) {
#line 978 "tracker-dbus.c"
		TrackerSteroids* _tmp4_;
		GObject* _tmp5_;
#line 245 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp4_ = tracker_dbus_steroids;
#line 245 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp5_ = _g_object_ref0 ((GObject*) _tmp4_);
#line 245 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		result = _tmp5_;
#line 245 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 989 "tracker-dbus.c"
	}
#line 248 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp6_ = type;
#line 248 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp6_ == TRACKER_TYPE_STATUS) {
#line 995 "tracker-dbus.c"
		TrackerStatus* _tmp7_;
		GObject* _tmp8_;
#line 249 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp7_ = tracker_dbus_notifier;
#line 249 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp8_ = _g_object_ref0 ((GObject*) _tmp7_);
#line 249 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		result = _tmp8_;
#line 249 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 1006 "tracker-dbus.c"
	}
#line 252 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	_tmp9_ = type;
#line 252 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (_tmp9_ == TRACKER_TYPE_BACKUP) {
#line 1012 "tracker-dbus.c"
		TrackerBackup* _tmp10_;
		GObject* _tmp11_;
#line 253 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp10_ = tracker_dbus_backup;
#line 253 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		_tmp11_ = _g_object_ref0 ((GObject*) _tmp10_);
#line 253 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		result = _tmp11_;
#line 253 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return result;
#line 1023 "tracker-dbus.c"
	}
#line 256 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	result = NULL;
#line 256 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	return result;
#line 1029 "tracker-dbus.c"
}


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


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


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


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


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


static gpointer tracker_value_dbus_peek_pointer (const GValue* value) {
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	return value->data[0].v_pointer;
#line 1084 "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/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (collect_values[0].v_pointer) {
#line 1091 "tracker-dbus.c"
		TrackerDBus* object;
		object = collect_values[0].v_pointer;
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		if (object->parent_instance.g_class == NULL) {
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 1098 "tracker-dbus.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 21 "/home/martyn/Source/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 1102 "tracker-dbus.c"
		}
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		value->data[0].v_pointer = tracker_dbus_ref (object);
#line 1106 "tracker-dbus.c"
	} else {
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		value->data[0].v_pointer = NULL;
#line 1110 "tracker-dbus.c"
	}
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	return NULL;
#line 1114 "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/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (!object_p) {
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 1125 "tracker-dbus.c"
	}
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (!value->data[0].v_pointer) {
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		*object_p = NULL;
#line 1131 "tracker-dbus.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		*object_p = value->data[0].v_pointer;
#line 1135 "tracker-dbus.c"
	} else {
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		*object_p = tracker_dbus_ref (value->data[0].v_pointer);
#line 1139 "tracker-dbus.c"
	}
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	return NULL;
#line 1143 "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/martyn/Source/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/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	return G_PARAM_SPEC (spec);
#line 1157 "tracker-dbus.c"
}


gpointer tracker_value_get_dbus (const GValue* value) {
#line 21 "/home/martyn/Source/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/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	return value->data[0].v_pointer;
#line 1166 "tracker-dbus.c"
}


void tracker_value_set_dbus (GValue* value, gpointer v_object) {
	TrackerDBus* old;
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_TYPE_DBUS));
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	old = value->data[0].v_pointer;
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (v_object) {
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TRACKER_TYPE_DBUS));
#line 21 "/home/martyn/Source/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/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		value->data[0].v_pointer = v_object;
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_ref (value->data[0].v_pointer);
#line 1186 "tracker-dbus.c"
	} else {
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		value->data[0].v_pointer = NULL;
#line 1190 "tracker-dbus.c"
	}
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (old) {
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_unref (old);
#line 1196 "tracker-dbus.c"
	}
}


void tracker_value_take_dbus (GValue* value, gpointer v_object) {
	TrackerDBus* old;
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TRACKER_TYPE_DBUS));
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	old = value->data[0].v_pointer;
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (v_object) {
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TRACKER_TYPE_DBUS));
#line 21 "/home/martyn/Source/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/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		value->data[0].v_pointer = v_object;
#line 1215 "tracker-dbus.c"
	} else {
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		value->data[0].v_pointer = NULL;
#line 1219 "tracker-dbus.c"
	}
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	if (old) {
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
		tracker_dbus_unref (old);
#line 1225 "tracker-dbus.c"
	}
}


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


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


static void tracker_dbus_finalize (TrackerDBus* obj) {
	TrackerDBus * self;
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	self = TRACKER_DBUS (obj);
#line 1250 "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/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	g_atomic_int_inc (&self->ref_count);
#line 21 "/home/martyn/Source/tracker/src/tracker-store/tracker-dbus.vala"
	return instance;
#line 1275 "tracker-dbus.c"
}


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



