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

/* remote.vala
 *
 * Copyright © 2011-2012 Collabora Ltd.
 *             By Siegfried-Angel Gevatter Pujals <siegfried@gevatter.com>
 * Copyright © 2011 Michal Hruby <michal.mhr@gmail.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 2.1 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#include <glib.h>
#include <glib-object.h>
#include <string.h>
#include <gio/gio.h>
#include <stdlib.h>
#include <float.h>
#include <math.h>


#define ZEITGEIST_TYPE_VERSION_STRUCT (zeitgeist_version_struct_get_type ())
typedef struct _ZeitgeistVersionStruct ZeitgeistVersionStruct;

#define ZEITGEIST_TYPE_REMOTE_LOG (zeitgeist_remote_log_get_type ())
#define ZEITGEIST_REMOTE_LOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZEITGEIST_TYPE_REMOTE_LOG, ZeitgeistRemoteLog))
#define ZEITGEIST_IS_REMOTE_LOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ZEITGEIST_TYPE_REMOTE_LOG))
#define ZEITGEIST_REMOTE_LOG_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ZEITGEIST_TYPE_REMOTE_LOG, ZeitgeistRemoteLogIface))

typedef struct _ZeitgeistRemoteLog ZeitgeistRemoteLog;
typedef struct _ZeitgeistRemoteLogIface ZeitgeistRemoteLogIface;

#define ZEITGEIST_TYPE_REMOTE_LOG_PROXY (zeitgeist_remote_log_proxy_get_type ())
typedef GDBusProxy ZeitgeistRemoteLogProxy;
typedef GDBusProxyClass ZeitgeistRemoteLogProxyClass;
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

#define ZEITGEIST_TYPE_REMOTE_MONITOR (zeitgeist_remote_monitor_get_type ())
#define ZEITGEIST_REMOTE_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZEITGEIST_TYPE_REMOTE_MONITOR, ZeitgeistRemoteMonitor))
#define ZEITGEIST_IS_REMOTE_MONITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ZEITGEIST_TYPE_REMOTE_MONITOR))
#define ZEITGEIST_REMOTE_MONITOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ZEITGEIST_TYPE_REMOTE_MONITOR, ZeitgeistRemoteMonitorIface))

typedef struct _ZeitgeistRemoteMonitor ZeitgeistRemoteMonitor;
typedef struct _ZeitgeistRemoteMonitorIface ZeitgeistRemoteMonitorIface;

#define ZEITGEIST_TYPE_REMOTE_MONITOR_PROXY (zeitgeist_remote_monitor_proxy_get_type ())
typedef GDBusProxy ZeitgeistRemoteMonitorProxy;
typedef GDBusProxyClass ZeitgeistRemoteMonitorProxyClass;

#define ZEITGEIST_TYPE_REMOTE_SIMPLE_INDEXER (zeitgeist_remote_simple_indexer_get_type ())
#define ZEITGEIST_REMOTE_SIMPLE_INDEXER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZEITGEIST_TYPE_REMOTE_SIMPLE_INDEXER, ZeitgeistRemoteSimpleIndexer))
#define ZEITGEIST_IS_REMOTE_SIMPLE_INDEXER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ZEITGEIST_TYPE_REMOTE_SIMPLE_INDEXER))
#define ZEITGEIST_REMOTE_SIMPLE_INDEXER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ZEITGEIST_TYPE_REMOTE_SIMPLE_INDEXER, ZeitgeistRemoteSimpleIndexerIface))

typedef struct _ZeitgeistRemoteSimpleIndexer ZeitgeistRemoteSimpleIndexer;
typedef struct _ZeitgeistRemoteSimpleIndexerIface ZeitgeistRemoteSimpleIndexerIface;

#define ZEITGEIST_TYPE_REMOTE_SIMPLE_INDEXER_PROXY (zeitgeist_remote_simple_indexer_proxy_get_type ())
typedef GDBusProxy ZeitgeistRemoteSimpleIndexerProxy;
typedef GDBusProxyClass ZeitgeistRemoteSimpleIndexerProxyClass;

#define ZEITGEIST_TYPE_NETWORK_MANAGER_DBUS (zeitgeist_network_manager_dbus_get_type ())
#define ZEITGEIST_NETWORK_MANAGER_DBUS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZEITGEIST_TYPE_NETWORK_MANAGER_DBUS, ZeitgeistNetworkManagerDBus))
#define ZEITGEIST_IS_NETWORK_MANAGER_DBUS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ZEITGEIST_TYPE_NETWORK_MANAGER_DBUS))
#define ZEITGEIST_NETWORK_MANAGER_DBUS_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ZEITGEIST_TYPE_NETWORK_MANAGER_DBUS, ZeitgeistNetworkManagerDBusIface))

typedef struct _ZeitgeistNetworkManagerDBus ZeitgeistNetworkManagerDBus;
typedef struct _ZeitgeistNetworkManagerDBusIface ZeitgeistNetworkManagerDBusIface;

#define ZEITGEIST_TYPE_NETWORK_MANAGER_DBUS_PROXY (zeitgeist_network_manager_dbus_proxy_get_type ())
typedef GDBusProxy ZeitgeistNetworkManagerDBusProxy;
typedef GDBusProxyClass ZeitgeistNetworkManagerDBusProxyClass;

#define ZEITGEIST_TYPE_CONNMAN_MANAGER_DBUS (zeitgeist_connman_manager_dbus_get_type ())
#define ZEITGEIST_CONNMAN_MANAGER_DBUS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZEITGEIST_TYPE_CONNMAN_MANAGER_DBUS, ZeitgeistConnmanManagerDBus))
#define ZEITGEIST_IS_CONNMAN_MANAGER_DBUS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ZEITGEIST_TYPE_CONNMAN_MANAGER_DBUS))
#define ZEITGEIST_CONNMAN_MANAGER_DBUS_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ZEITGEIST_TYPE_CONNMAN_MANAGER_DBUS, ZeitgeistConnmanManagerDBusIface))

typedef struct _ZeitgeistConnmanManagerDBus ZeitgeistConnmanManagerDBus;
typedef struct _ZeitgeistConnmanManagerDBusIface ZeitgeistConnmanManagerDBusIface;

#define ZEITGEIST_TYPE_CONNMAN_MANAGER_DBUS_PROXY (zeitgeist_connman_manager_dbus_proxy_get_type ())
typedef GDBusProxy ZeitgeistConnmanManagerDBusProxy;
typedef GDBusProxyClass ZeitgeistConnmanManagerDBusProxyClass;

struct _ZeitgeistVersionStruct {
	gint major;
	gint minor;
	gint micro;
};

struct _ZeitgeistRemoteLogIface {
	GTypeInterface parent_iface;
	void (*delete_events) (ZeitgeistRemoteLog* self, guint32* event_ids, int event_ids_length1, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_);
	GVariant* (*delete_events_finish) (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error);
	void (*find_event_ids) (ZeitgeistRemoteLog* self, GVariant* time_range, GVariant* event_templates, guint storage_state, guint num_events, guint result_type, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_);
	guint32* (*find_event_ids_finish) (ZeitgeistRemoteLog* self, GAsyncResult* _res_, int* result_length1, GError** error);
	void (*find_events) (ZeitgeistRemoteLog* self, GVariant* time_range, GVariant* event_templates, guint storage_state, guint num_events, guint result_type, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_);
	GVariant* (*find_events_finish) (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error);
	void (*find_related_uris) (ZeitgeistRemoteLog* self, GVariant* time_range, GVariant* event_templates, GVariant* result_event_templates, guint storage_state, guint num_events, guint result_type, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gchar** (*find_related_uris_finish) (ZeitgeistRemoteLog* self, GAsyncResult* _res_, int* result_length1, GError** error);
	void (*get_events) (ZeitgeistRemoteLog* self, guint32* event_ids, int event_ids_length1, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_);
	GVariant* (*get_events_finish) (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error);
	void (*insert_events) (ZeitgeistRemoteLog* self, GVariant* events, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_);
	guint32* (*insert_events_finish) (ZeitgeistRemoteLog* self, GAsyncResult* _res_, int* result_length1, GError** error);
	void (*install_monitor) (ZeitgeistRemoteLog* self, const char* monitor_path, GVariant* time_range, GVariant* event_templates, const char* owner, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*install_monitor_finish) (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error);
	void (*remove_monitor) (ZeitgeistRemoteLog* self, const char* monitor_path, const char* owner, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*remove_monitor_finish) (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error);
	void (*quit) (ZeitgeistRemoteLog* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*quit_finish) (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error);
	gchar** (*get_extensions) (ZeitgeistRemoteLog* self, int* result_length1);
	void (*get_version) (ZeitgeistRemoteLog* self, ZeitgeistVersionStruct* value);
	gchar* (*get_datapath) (ZeitgeistRemoteLog* self);
};

struct _ZeitgeistRemoteMonitorIface {
	GTypeInterface parent_iface;
	void (*notify_insert) (ZeitgeistRemoteMonitor* self, GVariant* time_range, GVariant* events, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*notify_insert_finish) (ZeitgeistRemoteMonitor* self, GAsyncResult* _res_, GError** error);
	void (*notify_delete) (ZeitgeistRemoteMonitor* self, GVariant* time_range, guint32* event_ids, int event_ids_length1, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*notify_delete_finish) (ZeitgeistRemoteMonitor* self, GAsyncResult* _res_, GError** error);
};

struct _ZeitgeistRemoteSimpleIndexerIface {
	GTypeInterface parent_iface;
	void (*search) (ZeitgeistRemoteSimpleIndexer* self, const gchar* query_string, GVariant* time_range, GVariant* filter_templates, guint offset, guint count, guint result_type, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*search_finish) (ZeitgeistRemoteSimpleIndexer* self, GAsyncResult* _res_, GVariant** events, guint* matches, GError** error);
	void (*search_with_relevancies) (ZeitgeistRemoteSimpleIndexer* self, const gchar* query_string, GVariant* time_range, GVariant* filter_templates, guint storage_state, guint offset, guint count, guint result_type, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*search_with_relevancies_finish) (ZeitgeistRemoteSimpleIndexer* self, GAsyncResult* _res_, GVariant** events, gdouble** relevancies, int* relevancies_length1, guint* matches, GError** error);
};

struct _ZeitgeistNetworkManagerDBusIface {
	GTypeInterface parent_iface;
	guint32 (*state) (ZeitgeistNetworkManagerDBus* self, GError** error);
};

struct _ZeitgeistConnmanManagerDBusIface {
	GTypeInterface parent_iface;
	gchar* (*get_state) (ZeitgeistConnmanManagerDBus* self, GError** error);
};



GType zeitgeist_version_struct_get_type (void) G_GNUC_CONST;
ZeitgeistVersionStruct* zeitgeist_version_struct_dup (const ZeitgeistVersionStruct* self);
void zeitgeist_version_struct_free (ZeitgeistVersionStruct* self);
GType zeitgeist_remote_log_proxy_get_type (void) G_GNUC_CONST;
guint zeitgeist_remote_log_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
GType zeitgeist_remote_log_get_type (void) G_GNUC_CONST;
void zeitgeist_remote_log_delete_events (ZeitgeistRemoteLog* self, guint32* event_ids, int event_ids_length1, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_);
GVariant* zeitgeist_remote_log_delete_events_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error);
void zeitgeist_remote_log_find_event_ids (ZeitgeistRemoteLog* self, GVariant* time_range, GVariant* event_templates, guint storage_state, guint num_events, guint result_type, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_);
guint32* zeitgeist_remote_log_find_event_ids_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, int* result_length1, GError** error);
void zeitgeist_remote_log_find_events (ZeitgeistRemoteLog* self, GVariant* time_range, GVariant* event_templates, guint storage_state, guint num_events, guint result_type, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_);
GVariant* zeitgeist_remote_log_find_events_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error);
void zeitgeist_remote_log_find_related_uris (ZeitgeistRemoteLog* self, GVariant* time_range, GVariant* event_templates, GVariant* result_event_templates, guint storage_state, guint num_events, guint result_type, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_);
gchar** zeitgeist_remote_log_find_related_uris_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, int* result_length1, GError** error);
void zeitgeist_remote_log_get_events (ZeitgeistRemoteLog* self, guint32* event_ids, int event_ids_length1, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_);
GVariant* zeitgeist_remote_log_get_events_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error);
void zeitgeist_remote_log_insert_events (ZeitgeistRemoteLog* self, GVariant* events, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_);
guint32* zeitgeist_remote_log_insert_events_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, int* result_length1, GError** error);
void zeitgeist_remote_log_install_monitor (ZeitgeistRemoteLog* self, const char* monitor_path, GVariant* time_range, GVariant* event_templates, const char* owner, GAsyncReadyCallback _callback_, gpointer _user_data_);
void zeitgeist_remote_log_install_monitor_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error);
void zeitgeist_remote_log_remove_monitor (ZeitgeistRemoteLog* self, const char* monitor_path, const char* owner, GAsyncReadyCallback _callback_, gpointer _user_data_);
void zeitgeist_remote_log_remove_monitor_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error);
void zeitgeist_remote_log_quit (ZeitgeistRemoteLog* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void zeitgeist_remote_log_quit_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error);
gchar** zeitgeist_remote_log_get_extensions (ZeitgeistRemoteLog* self, int* result_length1);
void zeitgeist_remote_log_get_version (ZeitgeistRemoteLog* self, ZeitgeistVersionStruct* result);
gchar* zeitgeist_remote_log_get_datapath (ZeitgeistRemoteLog* self);
static void zeitgeist_remote_log_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters);
static void _vala_g_async_ready_callback (GObject *source_object, GAsyncResult *res, void *user_data);
static void zeitgeist_remote_log_proxy_delete_events_async (ZeitgeistRemoteLog* self, guint32* event_ids, int event_ids_length1, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_);
static GVariant* zeitgeist_remote_log_proxy_delete_events_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error);
static void zeitgeist_remote_log_proxy_find_event_ids_async (ZeitgeistRemoteLog* self, GVariant* time_range, GVariant* event_templates, guint storage_state, guint num_events, guint result_type, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_);
static guint32* zeitgeist_remote_log_proxy_find_event_ids_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, int* result_length1, GError** error);
static void zeitgeist_remote_log_proxy_find_events_async (ZeitgeistRemoteLog* self, GVariant* time_range, GVariant* event_templates, guint storage_state, guint num_events, guint result_type, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_);
static GVariant* zeitgeist_remote_log_proxy_find_events_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error);
static void zeitgeist_remote_log_proxy_find_related_uris_async (ZeitgeistRemoteLog* self, GVariant* time_range, GVariant* event_templates, GVariant* result_event_templates, guint storage_state, guint num_events, guint result_type, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gchar** zeitgeist_remote_log_proxy_find_related_uris_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, int* result_length1, GError** error);
static void zeitgeist_remote_log_proxy_get_events_async (ZeitgeistRemoteLog* self, guint32* event_ids, int event_ids_length1, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_);
static GVariant* zeitgeist_remote_log_proxy_get_events_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error);
static void zeitgeist_remote_log_proxy_insert_events_async (ZeitgeistRemoteLog* self, GVariant* events, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_);
static guint32* zeitgeist_remote_log_proxy_insert_events_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, int* result_length1, GError** error);
static void zeitgeist_remote_log_proxy_install_monitor_async (ZeitgeistRemoteLog* self, const char* monitor_path, GVariant* time_range, GVariant* event_templates, const char* owner, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void zeitgeist_remote_log_proxy_install_monitor_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error);
static void zeitgeist_remote_log_proxy_remove_monitor_async (ZeitgeistRemoteLog* self, const char* monitor_path, const char* owner, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void zeitgeist_remote_log_proxy_remove_monitor_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error);
static void zeitgeist_remote_log_proxy_quit_async (ZeitgeistRemoteLog* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void zeitgeist_remote_log_proxy_quit_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error);
static gchar** zeitgeist_remote_log_dbus_proxy_get_extensions (ZeitgeistRemoteLog* self, int* result_length1);
static void zeitgeist_remote_log_dbus_proxy_get_version (ZeitgeistRemoteLog* self, ZeitgeistVersionStruct* result);
static gchar* zeitgeist_remote_log_dbus_proxy_get_datapath (ZeitgeistRemoteLog* self);
static void zeitgeist_remote_log_proxy_zeitgeist_remote_log_interface_init (ZeitgeistRemoteLogIface* iface);
static void _dbus_zeitgeist_remote_log_delete_events (ZeitgeistRemoteLog* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_zeitgeist_remote_log_delete_events_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void _dbus_zeitgeist_remote_log_find_event_ids (ZeitgeistRemoteLog* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_zeitgeist_remote_log_find_event_ids_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void _dbus_zeitgeist_remote_log_find_events (ZeitgeistRemoteLog* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_zeitgeist_remote_log_find_events_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void _dbus_zeitgeist_remote_log_find_related_uris (ZeitgeistRemoteLog* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_zeitgeist_remote_log_find_related_uris_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void _dbus_zeitgeist_remote_log_get_events (ZeitgeistRemoteLog* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_zeitgeist_remote_log_get_events_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void _dbus_zeitgeist_remote_log_insert_events (ZeitgeistRemoteLog* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_zeitgeist_remote_log_insert_events_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void _dbus_zeitgeist_remote_log_install_monitor (ZeitgeistRemoteLog* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_zeitgeist_remote_log_install_monitor_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void _dbus_zeitgeist_remote_log_remove_monitor (ZeitgeistRemoteLog* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_zeitgeist_remote_log_remove_monitor_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void _dbus_zeitgeist_remote_log_quit (ZeitgeistRemoteLog* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_zeitgeist_remote_log_quit_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void zeitgeist_remote_log_dbus_interface_method_call (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* method_name, GVariant* parameters, GDBusMethodInvocation* invocation, gpointer user_data);
static GVariant* zeitgeist_remote_log_dbus_interface_get_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GError** error, gpointer user_data);
static GVariant* _dbus_zeitgeist_remote_log_get_extensions (ZeitgeistRemoteLog* self);
static GVariant* _dbus_zeitgeist_remote_log_get_version (ZeitgeistRemoteLog* self);
static GVariant* _dbus_zeitgeist_remote_log_get_datapath (ZeitgeistRemoteLog* self);
static gboolean zeitgeist_remote_log_dbus_interface_set_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GVariant* value, GError** error, gpointer user_data);
static void _zeitgeist_remote_log_unregister_object (gpointer user_data);
GType zeitgeist_remote_monitor_proxy_get_type (void) G_GNUC_CONST;
guint zeitgeist_remote_monitor_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
GType zeitgeist_remote_monitor_get_type (void) G_GNUC_CONST;
void zeitgeist_remote_monitor_notify_insert (ZeitgeistRemoteMonitor* self, GVariant* time_range, GVariant* events, GAsyncReadyCallback _callback_, gpointer _user_data_);
void zeitgeist_remote_monitor_notify_insert_finish (ZeitgeistRemoteMonitor* self, GAsyncResult* _res_, GError** error);
void zeitgeist_remote_monitor_notify_delete (ZeitgeistRemoteMonitor* self, GVariant* time_range, guint32* event_ids, int event_ids_length1, GAsyncReadyCallback _callback_, gpointer _user_data_);
void zeitgeist_remote_monitor_notify_delete_finish (ZeitgeistRemoteMonitor* self, GAsyncResult* _res_, GError** error);
static void zeitgeist_remote_monitor_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters);
static void zeitgeist_remote_monitor_proxy_notify_insert_async (ZeitgeistRemoteMonitor* self, GVariant* time_range, GVariant* events, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void zeitgeist_remote_monitor_proxy_notify_insert_finish (ZeitgeistRemoteMonitor* self, GAsyncResult* _res_, GError** error);
static void zeitgeist_remote_monitor_proxy_notify_delete_async (ZeitgeistRemoteMonitor* self, GVariant* time_range, guint32* event_ids, int event_ids_length1, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void zeitgeist_remote_monitor_proxy_notify_delete_finish (ZeitgeistRemoteMonitor* self, GAsyncResult* _res_, GError** error);
static void zeitgeist_remote_monitor_proxy_zeitgeist_remote_monitor_interface_init (ZeitgeistRemoteMonitorIface* iface);
static void _dbus_zeitgeist_remote_monitor_notify_insert (ZeitgeistRemoteMonitor* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_zeitgeist_remote_monitor_notify_insert_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void _dbus_zeitgeist_remote_monitor_notify_delete (ZeitgeistRemoteMonitor* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_zeitgeist_remote_monitor_notify_delete_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void zeitgeist_remote_monitor_dbus_interface_method_call (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* method_name, GVariant* parameters, GDBusMethodInvocation* invocation, gpointer user_data);
static GVariant* zeitgeist_remote_monitor_dbus_interface_get_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GError** error, gpointer user_data);
static gboolean zeitgeist_remote_monitor_dbus_interface_set_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GVariant* value, GError** error, gpointer user_data);
static void _zeitgeist_remote_monitor_unregister_object (gpointer user_data);
GType zeitgeist_remote_simple_indexer_proxy_get_type (void) G_GNUC_CONST;
guint zeitgeist_remote_simple_indexer_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
GType zeitgeist_remote_simple_indexer_get_type (void) G_GNUC_CONST;
void zeitgeist_remote_simple_indexer_search (ZeitgeistRemoteSimpleIndexer* self, const gchar* query_string, GVariant* time_range, GVariant* filter_templates, guint offset, guint count, guint result_type, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void zeitgeist_remote_simple_indexer_search_finish (ZeitgeistRemoteSimpleIndexer* self, GAsyncResult* _res_, GVariant** events, guint* matches, GError** error);
void zeitgeist_remote_simple_indexer_search_with_relevancies (ZeitgeistRemoteSimpleIndexer* self, const gchar* query_string, GVariant* time_range, GVariant* filter_templates, guint storage_state, guint offset, guint count, guint result_type, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
void zeitgeist_remote_simple_indexer_search_with_relevancies_finish (ZeitgeistRemoteSimpleIndexer* self, GAsyncResult* _res_, GVariant** events, gdouble** relevancies, int* relevancies_length1, guint* matches, GError** error);
static void zeitgeist_remote_simple_indexer_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters);
static void zeitgeist_remote_simple_indexer_proxy_search_async (ZeitgeistRemoteSimpleIndexer* self, const gchar* query_string, GVariant* time_range, GVariant* filter_templates, guint offset, guint count, guint result_type, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void zeitgeist_remote_simple_indexer_proxy_search_finish (ZeitgeistRemoteSimpleIndexer* self, GAsyncResult* _res_, GVariant** events, guint* matches, GError** error);
static void zeitgeist_remote_simple_indexer_proxy_search_with_relevancies_async (ZeitgeistRemoteSimpleIndexer* self, const gchar* query_string, GVariant* time_range, GVariant* filter_templates, guint storage_state, guint offset, guint count, guint result_type, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void zeitgeist_remote_simple_indexer_proxy_search_with_relevancies_finish (ZeitgeistRemoteSimpleIndexer* self, GAsyncResult* _res_, GVariant** events, gdouble** relevancies, int* relevancies_length1, guint* matches, GError** error);
static void zeitgeist_remote_simple_indexer_proxy_zeitgeist_remote_simple_indexer_interface_init (ZeitgeistRemoteSimpleIndexerIface* iface);
static void _dbus_zeitgeist_remote_simple_indexer_search (ZeitgeistRemoteSimpleIndexer* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_zeitgeist_remote_simple_indexer_search_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void _dbus_zeitgeist_remote_simple_indexer_search_with_relevancies (ZeitgeistRemoteSimpleIndexer* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void _dbus_zeitgeist_remote_simple_indexer_search_with_relevancies_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_);
static void zeitgeist_remote_simple_indexer_dbus_interface_method_call (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* method_name, GVariant* parameters, GDBusMethodInvocation* invocation, gpointer user_data);
static GVariant* zeitgeist_remote_simple_indexer_dbus_interface_get_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GError** error, gpointer user_data);
static gboolean zeitgeist_remote_simple_indexer_dbus_interface_set_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GVariant* value, GError** error, gpointer user_data);
static void _zeitgeist_remote_simple_indexer_unregister_object (gpointer user_data);
GType zeitgeist_network_manager_dbus_proxy_get_type (void) G_GNUC_CONST;
guint zeitgeist_network_manager_dbus_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
GType zeitgeist_network_manager_dbus_get_type (void) G_GNUC_CONST;
guint32 zeitgeist_network_manager_dbus_state (ZeitgeistNetworkManagerDBus* self, GError** error);
static void zeitgeist_network_manager_dbus_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters);
static void _dbus_handle_zeitgeist_network_manager_dbus_state_changed (ZeitgeistNetworkManagerDBus* self, GVariant* parameters);
static guint32 zeitgeist_network_manager_dbus_proxy_state (ZeitgeistNetworkManagerDBus* self, GError** error);
static void zeitgeist_network_manager_dbus_proxy_zeitgeist_network_manager_dbus_interface_init (ZeitgeistNetworkManagerDBusIface* iface);
static void _dbus_zeitgeist_network_manager_dbus_state (ZeitgeistNetworkManagerDBus* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void zeitgeist_network_manager_dbus_dbus_interface_method_call (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* method_name, GVariant* parameters, GDBusMethodInvocation* invocation, gpointer user_data);
static GVariant* zeitgeist_network_manager_dbus_dbus_interface_get_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GError** error, gpointer user_data);
static gboolean zeitgeist_network_manager_dbus_dbus_interface_set_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GVariant* value, GError** error, gpointer user_data);
static void _dbus_zeitgeist_network_manager_dbus_state_changed (GObject* _sender, guint32 state, gpointer* _data);
static void _zeitgeist_network_manager_dbus_unregister_object (gpointer user_data);
GType zeitgeist_connman_manager_dbus_proxy_get_type (void) G_GNUC_CONST;
guint zeitgeist_connman_manager_dbus_register_object (void* object, GDBusConnection* connection, const gchar* path, GError** error);
GType zeitgeist_connman_manager_dbus_get_type (void) G_GNUC_CONST;
gchar* zeitgeist_connman_manager_dbus_get_state (ZeitgeistConnmanManagerDBus* self, GError** error);
static void zeitgeist_connman_manager_dbus_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters);
static void _dbus_handle_zeitgeist_connman_manager_dbus_state_changed (ZeitgeistConnmanManagerDBus* self, GVariant* parameters);
static gchar* zeitgeist_connman_manager_dbus_proxy_get_state (ZeitgeistConnmanManagerDBus* self, GError** error);
static void zeitgeist_connman_manager_dbus_proxy_zeitgeist_connman_manager_dbus_interface_init (ZeitgeistConnmanManagerDBusIface* iface);
static void _dbus_zeitgeist_connman_manager_dbus_get_state (ZeitgeistConnmanManagerDBus* self, GVariant* _parameters_, GDBusMethodInvocation* invocation);
static void zeitgeist_connman_manager_dbus_dbus_interface_method_call (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* method_name, GVariant* parameters, GDBusMethodInvocation* invocation, gpointer user_data);
static GVariant* zeitgeist_connman_manager_dbus_dbus_interface_get_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GError** error, gpointer user_data);
static gboolean zeitgeist_connman_manager_dbus_dbus_interface_set_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GVariant* value, GError** error, gpointer user_data);
static void _dbus_zeitgeist_connman_manager_dbus_state_changed (GObject* _sender, const gchar* state, gpointer* _data);
static void _zeitgeist_connman_manager_dbus_unregister_object (gpointer user_data);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);

static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_delete_events_event_ids = {-1, "event_ids", "au"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_delete_events_result = {-1, "result", "(xx)"};
static const GDBusArgInfo * const _zeitgeist_remote_log_dbus_arg_info_delete_events_in[] = {&_zeitgeist_remote_log_dbus_arg_info_delete_events_event_ids, NULL};
static const GDBusArgInfo * const _zeitgeist_remote_log_dbus_arg_info_delete_events_out[] = {&_zeitgeist_remote_log_dbus_arg_info_delete_events_result, NULL};
static const GDBusMethodInfo _zeitgeist_remote_log_dbus_method_info_delete_events = {-1, "DeleteEvents", (GDBusArgInfo **) (&_zeitgeist_remote_log_dbus_arg_info_delete_events_in), (GDBusArgInfo **) (&_zeitgeist_remote_log_dbus_arg_info_delete_events_out)};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_find_event_ids_time_range = {-1, "time_range", "(xx)"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_find_event_ids_event_templates = {-1, "event_templates", "a(asaasay)"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_find_event_ids_storage_state = {-1, "storage_state", "u"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_find_event_ids_num_events = {-1, "num_events", "u"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_find_event_ids_result_type = {-1, "result_type", "u"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_find_event_ids_result = {-1, "result", "au"};
static const GDBusArgInfo * const _zeitgeist_remote_log_dbus_arg_info_find_event_ids_in[] = {&_zeitgeist_remote_log_dbus_arg_info_find_event_ids_time_range, &_zeitgeist_remote_log_dbus_arg_info_find_event_ids_event_templates, &_zeitgeist_remote_log_dbus_arg_info_find_event_ids_storage_state, &_zeitgeist_remote_log_dbus_arg_info_find_event_ids_num_events, &_zeitgeist_remote_log_dbus_arg_info_find_event_ids_result_type, NULL};
static const GDBusArgInfo * const _zeitgeist_remote_log_dbus_arg_info_find_event_ids_out[] = {&_zeitgeist_remote_log_dbus_arg_info_find_event_ids_result, NULL};
static const GDBusMethodInfo _zeitgeist_remote_log_dbus_method_info_find_event_ids = {-1, "FindEventIds", (GDBusArgInfo **) (&_zeitgeist_remote_log_dbus_arg_info_find_event_ids_in), (GDBusArgInfo **) (&_zeitgeist_remote_log_dbus_arg_info_find_event_ids_out)};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_find_events_time_range = {-1, "time_range", "(xx)"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_find_events_event_templates = {-1, "event_templates", "a(asaasay)"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_find_events_storage_state = {-1, "storage_state", "u"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_find_events_num_events = {-1, "num_events", "u"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_find_events_result_type = {-1, "result_type", "u"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_find_events_result = {-1, "result", "a(asaasay)"};
static const GDBusArgInfo * const _zeitgeist_remote_log_dbus_arg_info_find_events_in[] = {&_zeitgeist_remote_log_dbus_arg_info_find_events_time_range, &_zeitgeist_remote_log_dbus_arg_info_find_events_event_templates, &_zeitgeist_remote_log_dbus_arg_info_find_events_storage_state, &_zeitgeist_remote_log_dbus_arg_info_find_events_num_events, &_zeitgeist_remote_log_dbus_arg_info_find_events_result_type, NULL};
static const GDBusArgInfo * const _zeitgeist_remote_log_dbus_arg_info_find_events_out[] = {&_zeitgeist_remote_log_dbus_arg_info_find_events_result, NULL};
static const GDBusMethodInfo _zeitgeist_remote_log_dbus_method_info_find_events = {-1, "FindEvents", (GDBusArgInfo **) (&_zeitgeist_remote_log_dbus_arg_info_find_events_in), (GDBusArgInfo **) (&_zeitgeist_remote_log_dbus_arg_info_find_events_out)};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_find_related_uris_time_range = {-1, "time_range", "(xx)"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_find_related_uris_event_templates = {-1, "event_templates", "a(asaasay)"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_find_related_uris_result_event_templates = {-1, "result_event_templates", "a(asaasay)"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_find_related_uris_storage_state = {-1, "storage_state", "u"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_find_related_uris_num_events = {-1, "num_events", "u"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_find_related_uris_result_type = {-1, "result_type", "u"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_find_related_uris_result = {-1, "result", "as"};
static const GDBusArgInfo * const _zeitgeist_remote_log_dbus_arg_info_find_related_uris_in[] = {&_zeitgeist_remote_log_dbus_arg_info_find_related_uris_time_range, &_zeitgeist_remote_log_dbus_arg_info_find_related_uris_event_templates, &_zeitgeist_remote_log_dbus_arg_info_find_related_uris_result_event_templates, &_zeitgeist_remote_log_dbus_arg_info_find_related_uris_storage_state, &_zeitgeist_remote_log_dbus_arg_info_find_related_uris_num_events, &_zeitgeist_remote_log_dbus_arg_info_find_related_uris_result_type, NULL};
static const GDBusArgInfo * const _zeitgeist_remote_log_dbus_arg_info_find_related_uris_out[] = {&_zeitgeist_remote_log_dbus_arg_info_find_related_uris_result, NULL};
static const GDBusMethodInfo _zeitgeist_remote_log_dbus_method_info_find_related_uris = {-1, "FindRelatedUris", (GDBusArgInfo **) (&_zeitgeist_remote_log_dbus_arg_info_find_related_uris_in), (GDBusArgInfo **) (&_zeitgeist_remote_log_dbus_arg_info_find_related_uris_out)};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_get_events_event_ids = {-1, "event_ids", "au"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_get_events_result = {-1, "result", "a(asaasay)"};
static const GDBusArgInfo * const _zeitgeist_remote_log_dbus_arg_info_get_events_in[] = {&_zeitgeist_remote_log_dbus_arg_info_get_events_event_ids, NULL};
static const GDBusArgInfo * const _zeitgeist_remote_log_dbus_arg_info_get_events_out[] = {&_zeitgeist_remote_log_dbus_arg_info_get_events_result, NULL};
static const GDBusMethodInfo _zeitgeist_remote_log_dbus_method_info_get_events = {-1, "GetEvents", (GDBusArgInfo **) (&_zeitgeist_remote_log_dbus_arg_info_get_events_in), (GDBusArgInfo **) (&_zeitgeist_remote_log_dbus_arg_info_get_events_out)};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_insert_events_events = {-1, "events", "a(asaasay)"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_insert_events_result = {-1, "result", "au"};
static const GDBusArgInfo * const _zeitgeist_remote_log_dbus_arg_info_insert_events_in[] = {&_zeitgeist_remote_log_dbus_arg_info_insert_events_events, NULL};
static const GDBusArgInfo * const _zeitgeist_remote_log_dbus_arg_info_insert_events_out[] = {&_zeitgeist_remote_log_dbus_arg_info_insert_events_result, NULL};
static const GDBusMethodInfo _zeitgeist_remote_log_dbus_method_info_insert_events = {-1, "InsertEvents", (GDBusArgInfo **) (&_zeitgeist_remote_log_dbus_arg_info_insert_events_in), (GDBusArgInfo **) (&_zeitgeist_remote_log_dbus_arg_info_insert_events_out)};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_install_monitor_monitor_path = {-1, "monitor_path", "o"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_install_monitor_time_range = {-1, "time_range", "(xx)"};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_install_monitor_event_templates = {-1, "event_templates", "a(asaasay)"};
static const GDBusArgInfo * const _zeitgeist_remote_log_dbus_arg_info_install_monitor_in[] = {&_zeitgeist_remote_log_dbus_arg_info_install_monitor_monitor_path, &_zeitgeist_remote_log_dbus_arg_info_install_monitor_time_range, &_zeitgeist_remote_log_dbus_arg_info_install_monitor_event_templates, NULL};
static const GDBusArgInfo * const _zeitgeist_remote_log_dbus_arg_info_install_monitor_out[] = {NULL};
static const GDBusMethodInfo _zeitgeist_remote_log_dbus_method_info_install_monitor = {-1, "InstallMonitor", (GDBusArgInfo **) (&_zeitgeist_remote_log_dbus_arg_info_install_monitor_in), (GDBusArgInfo **) (&_zeitgeist_remote_log_dbus_arg_info_install_monitor_out)};
static const GDBusArgInfo _zeitgeist_remote_log_dbus_arg_info_remove_monitor_monitor_path = {-1, "monitor_path", "o"};
static const GDBusArgInfo * const _zeitgeist_remote_log_dbus_arg_info_remove_monitor_in[] = {&_zeitgeist_remote_log_dbus_arg_info_remove_monitor_monitor_path, NULL};
static const GDBusArgInfo * const _zeitgeist_remote_log_dbus_arg_info_remove_monitor_out[] = {NULL};
static const GDBusMethodInfo _zeitgeist_remote_log_dbus_method_info_remove_monitor = {-1, "RemoveMonitor", (GDBusArgInfo **) (&_zeitgeist_remote_log_dbus_arg_info_remove_monitor_in), (GDBusArgInfo **) (&_zeitgeist_remote_log_dbus_arg_info_remove_monitor_out)};
static const GDBusArgInfo * const _zeitgeist_remote_log_dbus_arg_info_quit_in[] = {NULL};
static const GDBusArgInfo * const _zeitgeist_remote_log_dbus_arg_info_quit_out[] = {NULL};
static const GDBusMethodInfo _zeitgeist_remote_log_dbus_method_info_quit = {-1, "Quit", (GDBusArgInfo **) (&_zeitgeist_remote_log_dbus_arg_info_quit_in), (GDBusArgInfo **) (&_zeitgeist_remote_log_dbus_arg_info_quit_out)};
static const GDBusMethodInfo * const _zeitgeist_remote_log_dbus_method_info[] = {&_zeitgeist_remote_log_dbus_method_info_delete_events, &_zeitgeist_remote_log_dbus_method_info_find_event_ids, &_zeitgeist_remote_log_dbus_method_info_find_events, &_zeitgeist_remote_log_dbus_method_info_find_related_uris, &_zeitgeist_remote_log_dbus_method_info_get_events, &_zeitgeist_remote_log_dbus_method_info_insert_events, &_zeitgeist_remote_log_dbus_method_info_install_monitor, &_zeitgeist_remote_log_dbus_method_info_remove_monitor, &_zeitgeist_remote_log_dbus_method_info_quit, NULL};
static const GDBusSignalInfo * const _zeitgeist_remote_log_dbus_signal_info[] = {NULL};
static const GDBusPropertyInfo _zeitgeist_remote_log_dbus_property_info_extensions = {-1, "extensions", "as", G_DBUS_PROPERTY_INFO_FLAGS_READABLE};
static const GDBusPropertyInfo _zeitgeist_remote_log_dbus_property_info_version = {-1, "version", "(iii)", G_DBUS_PROPERTY_INFO_FLAGS_READABLE};
static const GDBusPropertyInfo _zeitgeist_remote_log_dbus_property_info_datapath = {-1, "datapath", "s", G_DBUS_PROPERTY_INFO_FLAGS_READABLE};
static const GDBusPropertyInfo * const _zeitgeist_remote_log_dbus_property_info[] = {&_zeitgeist_remote_log_dbus_property_info_extensions, &_zeitgeist_remote_log_dbus_property_info_version, &_zeitgeist_remote_log_dbus_property_info_datapath, NULL};
static const GDBusInterfaceInfo _zeitgeist_remote_log_dbus_interface_info = {-1, "org.gnome.zeitgeist.Log", (GDBusMethodInfo **) (&_zeitgeist_remote_log_dbus_method_info), (GDBusSignalInfo **) (&_zeitgeist_remote_log_dbus_signal_info), (GDBusPropertyInfo **) (&_zeitgeist_remote_log_dbus_property_info)};
static const GDBusInterfaceVTable _zeitgeist_remote_log_dbus_interface_vtable = {zeitgeist_remote_log_dbus_interface_method_call, zeitgeist_remote_log_dbus_interface_get_property, zeitgeist_remote_log_dbus_interface_set_property};
static const GDBusArgInfo _zeitgeist_remote_monitor_dbus_arg_info_notify_insert_time_range = {-1, "time_range", "(xx)"};
static const GDBusArgInfo _zeitgeist_remote_monitor_dbus_arg_info_notify_insert_events = {-1, "events", "a(asaasay)"};
static const GDBusArgInfo * const _zeitgeist_remote_monitor_dbus_arg_info_notify_insert_in[] = {&_zeitgeist_remote_monitor_dbus_arg_info_notify_insert_time_range, &_zeitgeist_remote_monitor_dbus_arg_info_notify_insert_events, NULL};
static const GDBusArgInfo * const _zeitgeist_remote_monitor_dbus_arg_info_notify_insert_out[] = {NULL};
static const GDBusMethodInfo _zeitgeist_remote_monitor_dbus_method_info_notify_insert = {-1, "NotifyInsert", (GDBusArgInfo **) (&_zeitgeist_remote_monitor_dbus_arg_info_notify_insert_in), (GDBusArgInfo **) (&_zeitgeist_remote_monitor_dbus_arg_info_notify_insert_out)};
static const GDBusArgInfo _zeitgeist_remote_monitor_dbus_arg_info_notify_delete_time_range = {-1, "time_range", "(xx)"};
static const GDBusArgInfo _zeitgeist_remote_monitor_dbus_arg_info_notify_delete_event_ids = {-1, "event_ids", "au"};
static const GDBusArgInfo * const _zeitgeist_remote_monitor_dbus_arg_info_notify_delete_in[] = {&_zeitgeist_remote_monitor_dbus_arg_info_notify_delete_time_range, &_zeitgeist_remote_monitor_dbus_arg_info_notify_delete_event_ids, NULL};
static const GDBusArgInfo * const _zeitgeist_remote_monitor_dbus_arg_info_notify_delete_out[] = {NULL};
static const GDBusMethodInfo _zeitgeist_remote_monitor_dbus_method_info_notify_delete = {-1, "NotifyDelete", (GDBusArgInfo **) (&_zeitgeist_remote_monitor_dbus_arg_info_notify_delete_in), (GDBusArgInfo **) (&_zeitgeist_remote_monitor_dbus_arg_info_notify_delete_out)};
static const GDBusMethodInfo * const _zeitgeist_remote_monitor_dbus_method_info[] = {&_zeitgeist_remote_monitor_dbus_method_info_notify_insert, &_zeitgeist_remote_monitor_dbus_method_info_notify_delete, NULL};
static const GDBusSignalInfo * const _zeitgeist_remote_monitor_dbus_signal_info[] = {NULL};
static const GDBusPropertyInfo * const _zeitgeist_remote_monitor_dbus_property_info[] = {NULL};
static const GDBusInterfaceInfo _zeitgeist_remote_monitor_dbus_interface_info = {-1, "org.gnome.zeitgeist.Monitor", (GDBusMethodInfo **) (&_zeitgeist_remote_monitor_dbus_method_info), (GDBusSignalInfo **) (&_zeitgeist_remote_monitor_dbus_signal_info), (GDBusPropertyInfo **) (&_zeitgeist_remote_monitor_dbus_property_info)};
static const GDBusInterfaceVTable _zeitgeist_remote_monitor_dbus_interface_vtable = {zeitgeist_remote_monitor_dbus_interface_method_call, zeitgeist_remote_monitor_dbus_interface_get_property, zeitgeist_remote_monitor_dbus_interface_set_property};
static const GDBusArgInfo _zeitgeist_remote_simple_indexer_dbus_arg_info_search_query_string = {-1, "query_string", "s"};
static const GDBusArgInfo _zeitgeist_remote_simple_indexer_dbus_arg_info_search_time_range = {-1, "time_range", "(xx)"};
static const GDBusArgInfo _zeitgeist_remote_simple_indexer_dbus_arg_info_search_filter_templates = {-1, "filter_templates", "a(asaasay)"};
static const GDBusArgInfo _zeitgeist_remote_simple_indexer_dbus_arg_info_search_offset = {-1, "offset", "u"};
static const GDBusArgInfo _zeitgeist_remote_simple_indexer_dbus_arg_info_search_count = {-1, "count", "u"};
static const GDBusArgInfo _zeitgeist_remote_simple_indexer_dbus_arg_info_search_result_type = {-1, "result_type", "u"};
static const GDBusArgInfo _zeitgeist_remote_simple_indexer_dbus_arg_info_search_events = {-1, "events", "a(asaasay)"};
static const GDBusArgInfo _zeitgeist_remote_simple_indexer_dbus_arg_info_search_matches = {-1, "matches", "u"};
static const GDBusArgInfo * const _zeitgeist_remote_simple_indexer_dbus_arg_info_search_in[] = {&_zeitgeist_remote_simple_indexer_dbus_arg_info_search_query_string, &_zeitgeist_remote_simple_indexer_dbus_arg_info_search_time_range, &_zeitgeist_remote_simple_indexer_dbus_arg_info_search_filter_templates, &_zeitgeist_remote_simple_indexer_dbus_arg_info_search_offset, &_zeitgeist_remote_simple_indexer_dbus_arg_info_search_count, &_zeitgeist_remote_simple_indexer_dbus_arg_info_search_result_type, NULL};
static const GDBusArgInfo * const _zeitgeist_remote_simple_indexer_dbus_arg_info_search_out[] = {&_zeitgeist_remote_simple_indexer_dbus_arg_info_search_events, &_zeitgeist_remote_simple_indexer_dbus_arg_info_search_matches, NULL};
static const GDBusMethodInfo _zeitgeist_remote_simple_indexer_dbus_method_info_search = {-1, "Search", (GDBusArgInfo **) (&_zeitgeist_remote_simple_indexer_dbus_arg_info_search_in), (GDBusArgInfo **) (&_zeitgeist_remote_simple_indexer_dbus_arg_info_search_out)};
static const GDBusArgInfo _zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_query_string = {-1, "query_string", "s"};
static const GDBusArgInfo _zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_time_range = {-1, "time_range", "(xx)"};
static const GDBusArgInfo _zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_filter_templates = {-1, "filter_templates", "a(asaasay)"};
static const GDBusArgInfo _zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_storage_state = {-1, "storage_state", "u"};
static const GDBusArgInfo _zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_offset = {-1, "offset", "u"};
static const GDBusArgInfo _zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_count = {-1, "count", "u"};
static const GDBusArgInfo _zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_result_type = {-1, "result_type", "u"};
static const GDBusArgInfo _zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_events = {-1, "events", "a(asaasay)"};
static const GDBusArgInfo _zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_relevancies = {-1, "relevancies", "ad"};
static const GDBusArgInfo _zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_matches = {-1, "matches", "u"};
static const GDBusArgInfo * const _zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_in[] = {&_zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_query_string, &_zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_time_range, &_zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_filter_templates, &_zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_storage_state, &_zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_offset, &_zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_count, &_zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_result_type, NULL};
static const GDBusArgInfo * const _zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_out[] = {&_zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_events, &_zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_relevancies, &_zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_matches, NULL};
static const GDBusMethodInfo _zeitgeist_remote_simple_indexer_dbus_method_info_search_with_relevancies = {-1, "SearchWithRelevancies", (GDBusArgInfo **) (&_zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_in), (GDBusArgInfo **) (&_zeitgeist_remote_simple_indexer_dbus_arg_info_search_with_relevancies_out)};
static const GDBusMethodInfo * const _zeitgeist_remote_simple_indexer_dbus_method_info[] = {&_zeitgeist_remote_simple_indexer_dbus_method_info_search, &_zeitgeist_remote_simple_indexer_dbus_method_info_search_with_relevancies, NULL};
static const GDBusSignalInfo * const _zeitgeist_remote_simple_indexer_dbus_signal_info[] = {NULL};
static const GDBusPropertyInfo * const _zeitgeist_remote_simple_indexer_dbus_property_info[] = {NULL};
static const GDBusInterfaceInfo _zeitgeist_remote_simple_indexer_dbus_interface_info = {-1, "org.gnome.zeitgeist.Index", (GDBusMethodInfo **) (&_zeitgeist_remote_simple_indexer_dbus_method_info), (GDBusSignalInfo **) (&_zeitgeist_remote_simple_indexer_dbus_signal_info), (GDBusPropertyInfo **) (&_zeitgeist_remote_simple_indexer_dbus_property_info)};
static const GDBusInterfaceVTable _zeitgeist_remote_simple_indexer_dbus_interface_vtable = {zeitgeist_remote_simple_indexer_dbus_interface_method_call, zeitgeist_remote_simple_indexer_dbus_interface_get_property, zeitgeist_remote_simple_indexer_dbus_interface_set_property};
static const GDBusArgInfo _zeitgeist_network_manager_dbus_dbus_arg_info_state_result = {-1, "result", "u"};
static const GDBusArgInfo * const _zeitgeist_network_manager_dbus_dbus_arg_info_state_in[] = {NULL};
static const GDBusArgInfo * const _zeitgeist_network_manager_dbus_dbus_arg_info_state_out[] = {&_zeitgeist_network_manager_dbus_dbus_arg_info_state_result, NULL};
static const GDBusMethodInfo _zeitgeist_network_manager_dbus_dbus_method_info_state = {-1, "state", (GDBusArgInfo **) (&_zeitgeist_network_manager_dbus_dbus_arg_info_state_in), (GDBusArgInfo **) (&_zeitgeist_network_manager_dbus_dbus_arg_info_state_out)};
static const GDBusMethodInfo * const _zeitgeist_network_manager_dbus_dbus_method_info[] = {&_zeitgeist_network_manager_dbus_dbus_method_info_state, NULL};
static const GDBusArgInfo _zeitgeist_network_manager_dbus_dbus_arg_info_state_changed_state = {-1, "state", "u"};
static const GDBusArgInfo * const _zeitgeist_network_manager_dbus_dbus_arg_info_state_changed[] = {&_zeitgeist_network_manager_dbus_dbus_arg_info_state_changed_state, NULL};
static const GDBusSignalInfo _zeitgeist_network_manager_dbus_dbus_signal_info_state_changed = {-1, "StateChanged", (GDBusArgInfo **) (&_zeitgeist_network_manager_dbus_dbus_arg_info_state_changed)};
static const GDBusSignalInfo * const _zeitgeist_network_manager_dbus_dbus_signal_info[] = {&_zeitgeist_network_manager_dbus_dbus_signal_info_state_changed, NULL};
static const GDBusPropertyInfo * const _zeitgeist_network_manager_dbus_dbus_property_info[] = {NULL};
static const GDBusInterfaceInfo _zeitgeist_network_manager_dbus_dbus_interface_info = {-1, "org.freedesktop.NetworkManager", (GDBusMethodInfo **) (&_zeitgeist_network_manager_dbus_dbus_method_info), (GDBusSignalInfo **) (&_zeitgeist_network_manager_dbus_dbus_signal_info), (GDBusPropertyInfo **) (&_zeitgeist_network_manager_dbus_dbus_property_info)};
static const GDBusInterfaceVTable _zeitgeist_network_manager_dbus_dbus_interface_vtable = {zeitgeist_network_manager_dbus_dbus_interface_method_call, zeitgeist_network_manager_dbus_dbus_interface_get_property, zeitgeist_network_manager_dbus_dbus_interface_set_property};
static const GDBusArgInfo _zeitgeist_connman_manager_dbus_dbus_arg_info_get_state_result = {-1, "result", "s"};
static const GDBusArgInfo * const _zeitgeist_connman_manager_dbus_dbus_arg_info_get_state_in[] = {NULL};
static const GDBusArgInfo * const _zeitgeist_connman_manager_dbus_dbus_arg_info_get_state_out[] = {&_zeitgeist_connman_manager_dbus_dbus_arg_info_get_state_result, NULL};
static const GDBusMethodInfo _zeitgeist_connman_manager_dbus_dbus_method_info_get_state = {-1, "GetState", (GDBusArgInfo **) (&_zeitgeist_connman_manager_dbus_dbus_arg_info_get_state_in), (GDBusArgInfo **) (&_zeitgeist_connman_manager_dbus_dbus_arg_info_get_state_out)};
static const GDBusMethodInfo * const _zeitgeist_connman_manager_dbus_dbus_method_info[] = {&_zeitgeist_connman_manager_dbus_dbus_method_info_get_state, NULL};
static const GDBusArgInfo _zeitgeist_connman_manager_dbus_dbus_arg_info_state_changed_state = {-1, "state", "s"};
static const GDBusArgInfo * const _zeitgeist_connman_manager_dbus_dbus_arg_info_state_changed[] = {&_zeitgeist_connman_manager_dbus_dbus_arg_info_state_changed_state, NULL};
static const GDBusSignalInfo _zeitgeist_connman_manager_dbus_dbus_signal_info_state_changed = {-1, "StateChanged", (GDBusArgInfo **) (&_zeitgeist_connman_manager_dbus_dbus_arg_info_state_changed)};
static const GDBusSignalInfo * const _zeitgeist_connman_manager_dbus_dbus_signal_info[] = {&_zeitgeist_connman_manager_dbus_dbus_signal_info_state_changed, NULL};
static const GDBusPropertyInfo * const _zeitgeist_connman_manager_dbus_dbus_property_info[] = {NULL};
static const GDBusInterfaceInfo _zeitgeist_connman_manager_dbus_dbus_interface_info = {-1, "net.connman.Manager", (GDBusMethodInfo **) (&_zeitgeist_connman_manager_dbus_dbus_method_info), (GDBusSignalInfo **) (&_zeitgeist_connman_manager_dbus_dbus_signal_info), (GDBusPropertyInfo **) (&_zeitgeist_connman_manager_dbus_dbus_property_info)};
static const GDBusInterfaceVTable _zeitgeist_connman_manager_dbus_dbus_interface_vtable = {zeitgeist_connman_manager_dbus_dbus_interface_method_call, zeitgeist_connman_manager_dbus_dbus_interface_get_property, zeitgeist_connman_manager_dbus_dbus_interface_set_property};

ZeitgeistVersionStruct* zeitgeist_version_struct_dup (const ZeitgeistVersionStruct* self) {
	ZeitgeistVersionStruct* dup;
	dup = g_new0 (ZeitgeistVersionStruct, 1);
	memcpy (dup, self, sizeof (ZeitgeistVersionStruct));
	return dup;
}


void zeitgeist_version_struct_free (ZeitgeistVersionStruct* self) {
	g_free (self);
}


GType zeitgeist_version_struct_get_type (void) {
	static volatile gsize zeitgeist_version_struct_type_id__volatile = 0;
	if (g_once_init_enter (&zeitgeist_version_struct_type_id__volatile)) {
		GType zeitgeist_version_struct_type_id;
		zeitgeist_version_struct_type_id = g_boxed_type_register_static ("ZeitgeistVersionStruct", (GBoxedCopyFunc) zeitgeist_version_struct_dup, (GBoxedFreeFunc) zeitgeist_version_struct_free);
		g_once_init_leave (&zeitgeist_version_struct_type_id__volatile, zeitgeist_version_struct_type_id);
	}
	return zeitgeist_version_struct_type_id__volatile;
}


void zeitgeist_remote_log_delete_events (ZeitgeistRemoteLog* self, guint32* event_ids, int event_ids_length1, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->delete_events (self, event_ids, event_ids_length1, cancellable, sender, _callback_, _user_data_);
}


GVariant* zeitgeist_remote_log_delete_events_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error) {
	return ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->delete_events_finish (self, _res_, error);
}


void zeitgeist_remote_log_find_event_ids (ZeitgeistRemoteLog* self, GVariant* time_range, GVariant* event_templates, guint storage_state, guint num_events, guint result_type, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->find_event_ids (self, time_range, event_templates, storage_state, num_events, result_type, cancellable, sender, _callback_, _user_data_);
}


guint32* zeitgeist_remote_log_find_event_ids_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, int* result_length1, GError** error) {
	return ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->find_event_ids_finish (self, _res_, result_length1, error);
}


void zeitgeist_remote_log_find_events (ZeitgeistRemoteLog* self, GVariant* time_range, GVariant* event_templates, guint storage_state, guint num_events, guint result_type, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->find_events (self, time_range, event_templates, storage_state, num_events, result_type, cancellable, sender, _callback_, _user_data_);
}


GVariant* zeitgeist_remote_log_find_events_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error) {
	return ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->find_events_finish (self, _res_, error);
}


void zeitgeist_remote_log_find_related_uris (ZeitgeistRemoteLog* self, GVariant* time_range, GVariant* event_templates, GVariant* result_event_templates, guint storage_state, guint num_events, guint result_type, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->find_related_uris (self, time_range, event_templates, result_event_templates, storage_state, num_events, result_type, cancellable, sender, _callback_, _user_data_);
}


gchar** zeitgeist_remote_log_find_related_uris_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, int* result_length1, GError** error) {
	return ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->find_related_uris_finish (self, _res_, result_length1, error);
}


void zeitgeist_remote_log_get_events (ZeitgeistRemoteLog* self, guint32* event_ids, int event_ids_length1, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->get_events (self, event_ids, event_ids_length1, cancellable, sender, _callback_, _user_data_);
}


GVariant* zeitgeist_remote_log_get_events_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error) {
	return ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->get_events_finish (self, _res_, error);
}


void zeitgeist_remote_log_insert_events (ZeitgeistRemoteLog* self, GVariant* events, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->insert_events (self, events, cancellable, sender, _callback_, _user_data_);
}


guint32* zeitgeist_remote_log_insert_events_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, int* result_length1, GError** error) {
	return ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->insert_events_finish (self, _res_, result_length1, error);
}


void zeitgeist_remote_log_install_monitor (ZeitgeistRemoteLog* self, const char* monitor_path, GVariant* time_range, GVariant* event_templates, const char* owner, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->install_monitor (self, monitor_path, time_range, event_templates, owner, _callback_, _user_data_);
}


void zeitgeist_remote_log_install_monitor_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error) {
	ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->install_monitor_finish (self, _res_, error);
}


void zeitgeist_remote_log_remove_monitor (ZeitgeistRemoteLog* self, const char* monitor_path, const char* owner, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->remove_monitor (self, monitor_path, owner, _callback_, _user_data_);
}


void zeitgeist_remote_log_remove_monitor_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error) {
	ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->remove_monitor_finish (self, _res_, error);
}


void zeitgeist_remote_log_quit (ZeitgeistRemoteLog* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->quit (self, cancellable, _callback_, _user_data_);
}


void zeitgeist_remote_log_quit_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error) {
	ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->quit_finish (self, _res_, error);
}


gchar** zeitgeist_remote_log_get_extensions (ZeitgeistRemoteLog* self, int* result_length1) {
	g_return_val_if_fail (self != NULL, NULL);
	return ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->get_extensions (self, result_length1);
}


void zeitgeist_remote_log_get_version (ZeitgeistRemoteLog* self, ZeitgeistVersionStruct* result) {
	g_return_if_fail (self != NULL);
	ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->get_version (self, result);
}


gchar* zeitgeist_remote_log_get_datapath (ZeitgeistRemoteLog* self) {
	g_return_val_if_fail (self != NULL, NULL);
	return ZEITGEIST_REMOTE_LOG_GET_INTERFACE (self)->get_datapath (self);
}


static void zeitgeist_remote_log_base_init (ZeitgeistRemoteLogIface * iface) {
	static gboolean initialized = FALSE;
	if (!initialized) {
		initialized = TRUE;
	}
}


GType zeitgeist_remote_log_get_type (void) {
	static volatile gsize zeitgeist_remote_log_type_id__volatile = 0;
	if (g_once_init_enter (&zeitgeist_remote_log_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ZeitgeistRemoteLogIface), (GBaseInitFunc) zeitgeist_remote_log_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType zeitgeist_remote_log_type_id;
		zeitgeist_remote_log_type_id = g_type_register_static (G_TYPE_INTERFACE, "ZeitgeistRemoteLog", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (zeitgeist_remote_log_type_id, G_TYPE_OBJECT);
		g_type_set_qdata (zeitgeist_remote_log_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) zeitgeist_remote_log_proxy_get_type);
		g_type_set_qdata (zeitgeist_remote_log_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "org.gnome.zeitgeist.Log");
		g_type_set_qdata (zeitgeist_remote_log_type_id, g_quark_from_static_string ("vala-dbus-interface-info"), (void*) (&_zeitgeist_remote_log_dbus_interface_info));
		g_type_set_qdata (zeitgeist_remote_log_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) zeitgeist_remote_log_register_object);
		g_once_init_leave (&zeitgeist_remote_log_type_id__volatile, zeitgeist_remote_log_type_id);
	}
	return zeitgeist_remote_log_type_id__volatile;
}


G_DEFINE_TYPE_EXTENDED (ZeitgeistRemoteLogProxy, zeitgeist_remote_log_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (ZEITGEIST_TYPE_REMOTE_LOG, zeitgeist_remote_log_proxy_zeitgeist_remote_log_interface_init) )
static void zeitgeist_remote_log_proxy_class_init (ZeitgeistRemoteLogProxyClass* klass) {
	G_DBUS_PROXY_CLASS (klass)->g_signal = zeitgeist_remote_log_proxy_g_signal;
}


static void zeitgeist_remote_log_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters) {
}


static void zeitgeist_remote_log_proxy_init (ZeitgeistRemoteLogProxy* self) {
}


static void _vala_g_async_ready_callback (GObject *source_object, GAsyncResult *res, void *user_data) {
	g_simple_async_result_set_op_res_gpointer (user_data, g_object_ref (res), g_object_unref);
	g_simple_async_result_complete (user_data);
	g_object_unref (user_data);
}


static void zeitgeist_remote_log_proxy_delete_events_async (ZeitgeistRemoteLog* self, guint32* event_ids, int event_ids_length1, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	guint32* _tmp9_;
	GVariantBuilder _tmp10_;
	int _tmp11_;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gnome.zeitgeist.Log", "DeleteEvents");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	_tmp9_ = event_ids;
	g_variant_builder_init (&_tmp10_, G_VARIANT_TYPE ("au"));
	for (_tmp11_ = 0; _tmp11_ < event_ids_length1; _tmp11_++) {
		g_variant_builder_add_value (&_tmp10_, g_variant_new_uint32 (*_tmp9_));
		_tmp9_++;
	}
	g_variant_builder_add_value (&_arguments_builder, g_variant_builder_end (&_tmp10_));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, cancellable, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
	g_object_unref (_message);
}


static GVariant* zeitgeist_remote_log_proxy_delete_events_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error) {
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	GVariant* _result;
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
	if (!_reply_message) {
		return NULL;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return NULL;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_result = g_variant_iter_next_value (&_reply_iter);
	g_object_unref (_reply_message);
	return _result;
}


static void zeitgeist_remote_log_proxy_find_event_ids_async (ZeitgeistRemoteLog* self, GVariant* time_range, GVariant* event_templates, guint storage_state, guint num_events, guint result_type, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gnome.zeitgeist.Log", "FindEventIds");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, time_range);
	g_variant_builder_add_value (&_arguments_builder, event_templates);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (storage_state));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (num_events));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (result_type));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, cancellable, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
	g_object_unref (_message);
}


static guint32* zeitgeist_remote_log_proxy_find_event_ids_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, int* result_length1, GError** error) {
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	guint32* _result;
	int _result_length1;
	GVariant* _tmp12_;
	guint32* _tmp13_;
	int _tmp13__length;
	int _tmp13__size;
	int _tmp13__length1;
	GVariantIter _tmp14_;
	GVariant* _tmp15_;
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
	if (!_reply_message) {
		return NULL;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return NULL;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_result_length1 = 0;
	_tmp12_ = g_variant_iter_next_value (&_reply_iter);
	_tmp13_ = g_new (guint32, 5);
	_tmp13__length = 0;
	_tmp13__size = 4;
	_tmp13__length1 = 0;
	g_variant_iter_init (&_tmp14_, _tmp12_);
	for (; (_tmp15_ = g_variant_iter_next_value (&_tmp14_)) != NULL; _tmp13__length1++) {
		if (_tmp13__size == _tmp13__length) {
			_tmp13__size = 2 * _tmp13__size;
			_tmp13_ = g_renew (guint32, _tmp13_, _tmp13__size + 1);
		}
		_tmp13_[_tmp13__length++] = g_variant_get_uint32 (_tmp15_);
		g_variant_unref (_tmp15_);
	}
	_result_length1 = _tmp13__length1;
	_result = _tmp13_;
	g_variant_unref (_tmp12_);
	*result_length1 = _result_length1;
	g_object_unref (_reply_message);
	return _result;
}


static void zeitgeist_remote_log_proxy_find_events_async (ZeitgeistRemoteLog* self, GVariant* time_range, GVariant* event_templates, guint storage_state, guint num_events, guint result_type, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gnome.zeitgeist.Log", "FindEvents");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, time_range);
	g_variant_builder_add_value (&_arguments_builder, event_templates);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (storage_state));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (num_events));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (result_type));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, cancellable, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
	g_object_unref (_message);
}


static GVariant* zeitgeist_remote_log_proxy_find_events_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error) {
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	GVariant* _result;
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
	if (!_reply_message) {
		return NULL;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return NULL;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_result = g_variant_iter_next_value (&_reply_iter);
	g_object_unref (_reply_message);
	return _result;
}


static void zeitgeist_remote_log_proxy_find_related_uris_async (ZeitgeistRemoteLog* self, GVariant* time_range, GVariant* event_templates, GVariant* result_event_templates, guint storage_state, guint num_events, guint result_type, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gnome.zeitgeist.Log", "FindRelatedUris");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, time_range);
	g_variant_builder_add_value (&_arguments_builder, event_templates);
	g_variant_builder_add_value (&_arguments_builder, result_event_templates);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (storage_state));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (num_events));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (result_type));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, cancellable, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
	g_object_unref (_message);
}


static gchar** zeitgeist_remote_log_proxy_find_related_uris_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, int* result_length1, GError** error) {
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	gchar** _result;
	int _result_length1;
	GVariant* _tmp16_;
	gchar** _tmp17_;
	int _tmp17__length;
	int _tmp17__size;
	int _tmp17__length1;
	GVariantIter _tmp18_;
	GVariant* _tmp19_;
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
	if (!_reply_message) {
		return NULL;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return NULL;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_result_length1 = 0;
	_tmp16_ = g_variant_iter_next_value (&_reply_iter);
	_tmp17_ = g_new (gchar*, 5);
	_tmp17__length = 0;
	_tmp17__size = 4;
	_tmp17__length1 = 0;
	g_variant_iter_init (&_tmp18_, _tmp16_);
	for (; (_tmp19_ = g_variant_iter_next_value (&_tmp18_)) != NULL; _tmp17__length1++) {
		if (_tmp17__size == _tmp17__length) {
			_tmp17__size = 2 * _tmp17__size;
			_tmp17_ = g_renew (gchar*, _tmp17_, _tmp17__size + 1);
		}
		_tmp17_[_tmp17__length++] = g_variant_dup_string (_tmp19_, NULL);
		g_variant_unref (_tmp19_);
	}
	_result_length1 = _tmp17__length1;
	_tmp17_[_tmp17__length] = NULL;
	_result = _tmp17_;
	g_variant_unref (_tmp16_);
	*result_length1 = _result_length1;
	g_object_unref (_reply_message);
	return _result;
}


static void zeitgeist_remote_log_proxy_get_events_async (ZeitgeistRemoteLog* self, guint32* event_ids, int event_ids_length1, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	guint32* _tmp20_;
	GVariantBuilder _tmp21_;
	int _tmp22_;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gnome.zeitgeist.Log", "GetEvents");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	_tmp20_ = event_ids;
	g_variant_builder_init (&_tmp21_, G_VARIANT_TYPE ("au"));
	for (_tmp22_ = 0; _tmp22_ < event_ids_length1; _tmp22_++) {
		g_variant_builder_add_value (&_tmp21_, g_variant_new_uint32 (*_tmp20_));
		_tmp20_++;
	}
	g_variant_builder_add_value (&_arguments_builder, g_variant_builder_end (&_tmp21_));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, cancellable, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
	g_object_unref (_message);
}


static GVariant* zeitgeist_remote_log_proxy_get_events_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error) {
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	GVariant* _result;
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
	if (!_reply_message) {
		return NULL;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return NULL;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_result = g_variant_iter_next_value (&_reply_iter);
	g_object_unref (_reply_message);
	return _result;
}


static void zeitgeist_remote_log_proxy_insert_events_async (ZeitgeistRemoteLog* self, GVariant* events, GCancellable* cancellable, const char* sender, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gnome.zeitgeist.Log", "InsertEvents");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, events);
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, cancellable, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
	g_object_unref (_message);
}


static guint32* zeitgeist_remote_log_proxy_insert_events_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, int* result_length1, GError** error) {
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	guint32* _result;
	int _result_length1;
	GVariant* _tmp23_;
	guint32* _tmp24_;
	int _tmp24__length;
	int _tmp24__size;
	int _tmp24__length1;
	GVariantIter _tmp25_;
	GVariant* _tmp26_;
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
	if (!_reply_message) {
		return NULL;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return NULL;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_result_length1 = 0;
	_tmp23_ = g_variant_iter_next_value (&_reply_iter);
	_tmp24_ = g_new (guint32, 5);
	_tmp24__length = 0;
	_tmp24__size = 4;
	_tmp24__length1 = 0;
	g_variant_iter_init (&_tmp25_, _tmp23_);
	for (; (_tmp26_ = g_variant_iter_next_value (&_tmp25_)) != NULL; _tmp24__length1++) {
		if (_tmp24__size == _tmp24__length) {
			_tmp24__size = 2 * _tmp24__size;
			_tmp24_ = g_renew (guint32, _tmp24_, _tmp24__size + 1);
		}
		_tmp24_[_tmp24__length++] = g_variant_get_uint32 (_tmp26_);
		g_variant_unref (_tmp26_);
	}
	_result_length1 = _tmp24__length1;
	_result = _tmp24_;
	g_variant_unref (_tmp23_);
	*result_length1 = _result_length1;
	g_object_unref (_reply_message);
	return _result;
}


static void zeitgeist_remote_log_proxy_install_monitor_async (ZeitgeistRemoteLog* self, const char* monitor_path, GVariant* time_range, GVariant* event_templates, const char* owner, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gnome.zeitgeist.Log", "InstallMonitor");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_object_path (monitor_path));
	g_variant_builder_add_value (&_arguments_builder, time_range);
	g_variant_builder_add_value (&_arguments_builder, event_templates);
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
	g_object_unref (_message);
}


static void zeitgeist_remote_log_proxy_install_monitor_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error) {
	GDBusMessage *_reply_message;
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}


static void zeitgeist_remote_log_proxy_remove_monitor_async (ZeitgeistRemoteLog* self, const char* monitor_path, const char* owner, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gnome.zeitgeist.Log", "RemoveMonitor");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_object_path (monitor_path));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
	g_object_unref (_message);
}


static void zeitgeist_remote_log_proxy_remove_monitor_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error) {
	GDBusMessage *_reply_message;
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}


static void zeitgeist_remote_log_proxy_quit_async (ZeitgeistRemoteLog* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gnome.zeitgeist.Log", "Quit");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, cancellable, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
	g_object_unref (_message);
}


static void zeitgeist_remote_log_proxy_quit_finish (ZeitgeistRemoteLog* self, GAsyncResult* _res_, GError** error) {
	GDBusMessage *_reply_message;
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}


static gchar** zeitgeist_remote_log_dbus_proxy_get_extensions (ZeitgeistRemoteLog* self, int* result_length1) {
	GVariant *_inner_reply;
	gchar** _result;
	int _result_length1;
	gchar** _tmp27_;
	int _tmp27__length;
	int _tmp27__size;
	int _tmp27__length1;
	GVariantIter _tmp28_;
	GVariant* _tmp29_;
	_inner_reply = g_dbus_proxy_get_cached_property ((GDBusProxy *) self, "extensions");
	if (!_inner_reply) {
		GVariant *_arguments;
		GVariant *_reply;
		GVariantBuilder _arguments_builder;
		g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("org.gnome.zeitgeist.Log"));
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("extensions"));
		_arguments = g_variant_builder_end (&_arguments_builder);
		_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Get", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
		if (!_reply) {
			return NULL;
		}
		g_variant_get (_reply, "(v)", &_inner_reply);
		g_variant_unref (_reply);
	}
	_result_length1 = 0;
	_tmp27_ = g_new (gchar*, 5);
	_tmp27__length = 0;
	_tmp27__size = 4;
	_tmp27__length1 = 0;
	g_variant_iter_init (&_tmp28_, _inner_reply);
	for (; (_tmp29_ = g_variant_iter_next_value (&_tmp28_)) != NULL; _tmp27__length1++) {
		if (_tmp27__size == _tmp27__length) {
			_tmp27__size = 2 * _tmp27__size;
			_tmp27_ = g_renew (gchar*, _tmp27_, _tmp27__size + 1);
		}
		_tmp27_[_tmp27__length++] = g_variant_dup_string (_tmp29_, NULL);
		g_variant_unref (_tmp29_);
	}
	_result_length1 = _tmp27__length1;
	_tmp27_[_tmp27__length] = NULL;
	_result = _tmp27_;
	*result_length1 = _result_length1;
	g_variant_unref (_inner_reply);
	return _result;
}


static void zeitgeist_remote_log_dbus_proxy_get_version (ZeitgeistRemoteLog* self, ZeitgeistVersionStruct* result) {
	GVariant *_inner_reply;
	ZeitgeistVersionStruct _tmp30_;
	GVariantIter _tmp31_;
	GVariant* _tmp32_;
	GVariant* _tmp33_;
	GVariant* _tmp34_;
	_inner_reply = g_dbus_proxy_get_cached_property ((GDBusProxy *) self, "version");
	if (!_inner_reply) {
		GVariant *_arguments;
		GVariant *_reply;
		GVariantBuilder _arguments_builder;
		g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("org.gnome.zeitgeist.Log"));
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("version"));
		_arguments = g_variant_builder_end (&_arguments_builder);
		_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Get", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
		if (!_reply) {
			return;
		}
		g_variant_get (_reply, "(v)", &_inner_reply);
		g_variant_unref (_reply);
	}
	g_variant_iter_init (&_tmp31_, _inner_reply);
	_tmp32_ = g_variant_iter_next_value (&_tmp31_);
	_tmp30_.major = g_variant_get_int32 (_tmp32_);
	g_variant_unref (_tmp32_);
	_tmp33_ = g_variant_iter_next_value (&_tmp31_);
	_tmp30_.minor = g_variant_get_int32 (_tmp33_);
	g_variant_unref (_tmp33_);
	_tmp34_ = g_variant_iter_next_value (&_tmp31_);
	_tmp30_.micro = g_variant_get_int32 (_tmp34_);
	g_variant_unref (_tmp34_);
	*result = _tmp30_;
	g_variant_unref (_inner_reply);
	return;
}


static gchar* zeitgeist_remote_log_dbus_proxy_get_datapath (ZeitgeistRemoteLog* self) {
	GVariant *_inner_reply;
	gchar* _result;
	_inner_reply = g_dbus_proxy_get_cached_property ((GDBusProxy *) self, "datapath");
	if (!_inner_reply) {
		GVariant *_arguments;
		GVariant *_reply;
		GVariantBuilder _arguments_builder;
		g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("org.gnome.zeitgeist.Log"));
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("datapath"));
		_arguments = g_variant_builder_end (&_arguments_builder);
		_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Get", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
		if (!_reply) {
			return NULL;
		}
		g_variant_get (_reply, "(v)", &_inner_reply);
		g_variant_unref (_reply);
	}
	_result = g_variant_dup_string (_inner_reply, NULL);
	g_variant_unref (_inner_reply);
	return _result;
}


static void zeitgeist_remote_log_proxy_zeitgeist_remote_log_interface_init (ZeitgeistRemoteLogIface* iface) {
	iface->delete_events = zeitgeist_remote_log_proxy_delete_events_async;
	iface->delete_events_finish = zeitgeist_remote_log_proxy_delete_events_finish;
	iface->find_event_ids = zeitgeist_remote_log_proxy_find_event_ids_async;
	iface->find_event_ids_finish = zeitgeist_remote_log_proxy_find_event_ids_finish;
	iface->find_events = zeitgeist_remote_log_proxy_find_events_async;
	iface->find_events_finish = zeitgeist_remote_log_proxy_find_events_finish;
	iface->find_related_uris = zeitgeist_remote_log_proxy_find_related_uris_async;
	iface->find_related_uris_finish = zeitgeist_remote_log_proxy_find_related_uris_finish;
	iface->get_events = zeitgeist_remote_log_proxy_get_events_async;
	iface->get_events_finish = zeitgeist_remote_log_proxy_get_events_finish;
	iface->insert_events = zeitgeist_remote_log_proxy_insert_events_async;
	iface->insert_events_finish = zeitgeist_remote_log_proxy_insert_events_finish;
	iface->install_monitor = zeitgeist_remote_log_proxy_install_monitor_async;
	iface->install_monitor_finish = zeitgeist_remote_log_proxy_install_monitor_finish;
	iface->remove_monitor = zeitgeist_remote_log_proxy_remove_monitor_async;
	iface->remove_monitor_finish = zeitgeist_remote_log_proxy_remove_monitor_finish;
	iface->quit = zeitgeist_remote_log_proxy_quit_async;
	iface->quit_finish = zeitgeist_remote_log_proxy_quit_finish;
	iface->get_extensions = zeitgeist_remote_log_dbus_proxy_get_extensions;
	iface->get_version = zeitgeist_remote_log_dbus_proxy_get_version;
	iface->get_datapath = zeitgeist_remote_log_dbus_proxy_get_datapath;
}


static void _dbus_zeitgeist_remote_log_delete_events (ZeitgeistRemoteLog* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	guint32* event_ids = NULL;
	int event_ids_length1 = 0;
	GVariant* _tmp35_;
	guint32* _tmp36_;
	int _tmp36__length;
	int _tmp36__size;
	int _tmp36__length1;
	GVariantIter _tmp37_;
	GVariant* _tmp38_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp35_ = g_variant_iter_next_value (&_arguments_iter);
	_tmp36_ = g_new (guint32, 5);
	_tmp36__length = 0;
	_tmp36__size = 4;
	_tmp36__length1 = 0;
	g_variant_iter_init (&_tmp37_, _tmp35_);
	for (; (_tmp38_ = g_variant_iter_next_value (&_tmp37_)) != NULL; _tmp36__length1++) {
		if (_tmp36__size == _tmp36__length) {
			_tmp36__size = 2 * _tmp36__size;
			_tmp36_ = g_renew (guint32, _tmp36_, _tmp36__size + 1);
		}
		_tmp36_[_tmp36__length++] = g_variant_get_uint32 (_tmp38_);
		g_variant_unref (_tmp38_);
	}
	event_ids_length1 = _tmp36__length1;
	event_ids = _tmp36_;
	g_variant_unref (_tmp35_);
	zeitgeist_remote_log_delete_events (self, event_ids, event_ids_length1, NULL, g_dbus_method_invocation_get_sender (invocation), (GAsyncReadyCallback) _dbus_zeitgeist_remote_log_delete_events_ready, invocation);
	event_ids = (g_free (event_ids), NULL);
}


static void _dbus_zeitgeist_remote_log_delete_events_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	GVariant* result;
	invocation = _user_data_;
	result = zeitgeist_remote_log_delete_events_finish ((ZeitgeistRemoteLog*) source_object, _res_, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, result);
	_g_variant_unref0 (result);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void _dbus_zeitgeist_remote_log_find_event_ids (ZeitgeistRemoteLog* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	GVariant* time_range = NULL;
	GVariant* event_templates = NULL;
	guint storage_state = 0U;
	GVariant* _tmp39_;
	guint num_events = 0U;
	GVariant* _tmp40_;
	guint result_type = 0U;
	GVariant* _tmp41_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	time_range = g_variant_iter_next_value (&_arguments_iter);
	event_templates = g_variant_iter_next_value (&_arguments_iter);
	_tmp39_ = g_variant_iter_next_value (&_arguments_iter);
	storage_state = g_variant_get_uint32 (_tmp39_);
	g_variant_unref (_tmp39_);
	_tmp40_ = g_variant_iter_next_value (&_arguments_iter);
	num_events = g_variant_get_uint32 (_tmp40_);
	g_variant_unref (_tmp40_);
	_tmp41_ = g_variant_iter_next_value (&_arguments_iter);
	result_type = g_variant_get_uint32 (_tmp41_);
	g_variant_unref (_tmp41_);
	zeitgeist_remote_log_find_event_ids (self, time_range, event_templates, storage_state, num_events, result_type, NULL, g_dbus_method_invocation_get_sender (invocation), (GAsyncReadyCallback) _dbus_zeitgeist_remote_log_find_event_ids_ready, invocation);
	_g_variant_unref0 (time_range);
	_g_variant_unref0 (event_templates);
}


static void _dbus_zeitgeist_remote_log_find_event_ids_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	guint32* result;
	int result_length1 = 0;
	guint32* _tmp42_;
	GVariantBuilder _tmp43_;
	int _tmp44_;
	invocation = _user_data_;
	result = zeitgeist_remote_log_find_event_ids_finish ((ZeitgeistRemoteLog*) source_object, _res_, &result_length1, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_tmp42_ = result;
	g_variant_builder_init (&_tmp43_, G_VARIANT_TYPE ("au"));
	for (_tmp44_ = 0; _tmp44_ < result_length1; _tmp44_++) {
		g_variant_builder_add_value (&_tmp43_, g_variant_new_uint32 (*_tmp42_));
		_tmp42_++;
	}
	g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp43_));
	result = (g_free (result), NULL);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void _dbus_zeitgeist_remote_log_find_events (ZeitgeistRemoteLog* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	GVariant* time_range = NULL;
	GVariant* event_templates = NULL;
	guint storage_state = 0U;
	GVariant* _tmp45_;
	guint num_events = 0U;
	GVariant* _tmp46_;
	guint result_type = 0U;
	GVariant* _tmp47_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	time_range = g_variant_iter_next_value (&_arguments_iter);
	event_templates = g_variant_iter_next_value (&_arguments_iter);
	_tmp45_ = g_variant_iter_next_value (&_arguments_iter);
	storage_state = g_variant_get_uint32 (_tmp45_);
	g_variant_unref (_tmp45_);
	_tmp46_ = g_variant_iter_next_value (&_arguments_iter);
	num_events = g_variant_get_uint32 (_tmp46_);
	g_variant_unref (_tmp46_);
	_tmp47_ = g_variant_iter_next_value (&_arguments_iter);
	result_type = g_variant_get_uint32 (_tmp47_);
	g_variant_unref (_tmp47_);
	zeitgeist_remote_log_find_events (self, time_range, event_templates, storage_state, num_events, result_type, NULL, g_dbus_method_invocation_get_sender (invocation), (GAsyncReadyCallback) _dbus_zeitgeist_remote_log_find_events_ready, invocation);
	_g_variant_unref0 (time_range);
	_g_variant_unref0 (event_templates);
}


static void _dbus_zeitgeist_remote_log_find_events_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	GVariant* result;
	invocation = _user_data_;
	result = zeitgeist_remote_log_find_events_finish ((ZeitgeistRemoteLog*) source_object, _res_, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, result);
	_g_variant_unref0 (result);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void _dbus_zeitgeist_remote_log_find_related_uris (ZeitgeistRemoteLog* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	GVariant* time_range = NULL;
	GVariant* event_templates = NULL;
	GVariant* result_event_templates = NULL;
	guint storage_state = 0U;
	GVariant* _tmp48_;
	guint num_events = 0U;
	GVariant* _tmp49_;
	guint result_type = 0U;
	GVariant* _tmp50_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	time_range = g_variant_iter_next_value (&_arguments_iter);
	event_templates = g_variant_iter_next_value (&_arguments_iter);
	result_event_templates = g_variant_iter_next_value (&_arguments_iter);
	_tmp48_ = g_variant_iter_next_value (&_arguments_iter);
	storage_state = g_variant_get_uint32 (_tmp48_);
	g_variant_unref (_tmp48_);
	_tmp49_ = g_variant_iter_next_value (&_arguments_iter);
	num_events = g_variant_get_uint32 (_tmp49_);
	g_variant_unref (_tmp49_);
	_tmp50_ = g_variant_iter_next_value (&_arguments_iter);
	result_type = g_variant_get_uint32 (_tmp50_);
	g_variant_unref (_tmp50_);
	zeitgeist_remote_log_find_related_uris (self, time_range, event_templates, result_event_templates, storage_state, num_events, result_type, NULL, g_dbus_method_invocation_get_sender (invocation), (GAsyncReadyCallback) _dbus_zeitgeist_remote_log_find_related_uris_ready, invocation);
	_g_variant_unref0 (time_range);
	_g_variant_unref0 (event_templates);
	_g_variant_unref0 (result_event_templates);
}


static void _dbus_zeitgeist_remote_log_find_related_uris_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gchar** result;
	int result_length1 = 0;
	gchar** _tmp51_;
	GVariantBuilder _tmp52_;
	int _tmp53_;
	invocation = _user_data_;
	result = zeitgeist_remote_log_find_related_uris_finish ((ZeitgeistRemoteLog*) source_object, _res_, &result_length1, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_tmp51_ = result;
	g_variant_builder_init (&_tmp52_, G_VARIANT_TYPE ("as"));
	for (_tmp53_ = 0; _tmp53_ < result_length1; _tmp53_++) {
		g_variant_builder_add_value (&_tmp52_, g_variant_new_string (*_tmp51_));
		_tmp51_++;
	}
	g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp52_));
	result = (_vala_array_free (result, result_length1, (GDestroyNotify) g_free), NULL);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void _dbus_zeitgeist_remote_log_get_events (ZeitgeistRemoteLog* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	guint32* event_ids = NULL;
	int event_ids_length1 = 0;
	GVariant* _tmp54_;
	guint32* _tmp55_;
	int _tmp55__length;
	int _tmp55__size;
	int _tmp55__length1;
	GVariantIter _tmp56_;
	GVariant* _tmp57_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp54_ = g_variant_iter_next_value (&_arguments_iter);
	_tmp55_ = g_new (guint32, 5);
	_tmp55__length = 0;
	_tmp55__size = 4;
	_tmp55__length1 = 0;
	g_variant_iter_init (&_tmp56_, _tmp54_);
	for (; (_tmp57_ = g_variant_iter_next_value (&_tmp56_)) != NULL; _tmp55__length1++) {
		if (_tmp55__size == _tmp55__length) {
			_tmp55__size = 2 * _tmp55__size;
			_tmp55_ = g_renew (guint32, _tmp55_, _tmp55__size + 1);
		}
		_tmp55_[_tmp55__length++] = g_variant_get_uint32 (_tmp57_);
		g_variant_unref (_tmp57_);
	}
	event_ids_length1 = _tmp55__length1;
	event_ids = _tmp55_;
	g_variant_unref (_tmp54_);
	zeitgeist_remote_log_get_events (self, event_ids, event_ids_length1, NULL, g_dbus_method_invocation_get_sender (invocation), (GAsyncReadyCallback) _dbus_zeitgeist_remote_log_get_events_ready, invocation);
	event_ids = (g_free (event_ids), NULL);
}


static void _dbus_zeitgeist_remote_log_get_events_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	GVariant* result;
	invocation = _user_data_;
	result = zeitgeist_remote_log_get_events_finish ((ZeitgeistRemoteLog*) source_object, _res_, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, result);
	_g_variant_unref0 (result);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void _dbus_zeitgeist_remote_log_insert_events (ZeitgeistRemoteLog* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	GVariant* events = NULL;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	events = g_variant_iter_next_value (&_arguments_iter);
	zeitgeist_remote_log_insert_events (self, events, NULL, g_dbus_method_invocation_get_sender (invocation), (GAsyncReadyCallback) _dbus_zeitgeist_remote_log_insert_events_ready, invocation);
	_g_variant_unref0 (events);
}


static void _dbus_zeitgeist_remote_log_insert_events_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	guint32* result;
	int result_length1 = 0;
	guint32* _tmp58_;
	GVariantBuilder _tmp59_;
	int _tmp60_;
	invocation = _user_data_;
	result = zeitgeist_remote_log_insert_events_finish ((ZeitgeistRemoteLog*) source_object, _res_, &result_length1, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_tmp58_ = result;
	g_variant_builder_init (&_tmp59_, G_VARIANT_TYPE ("au"));
	for (_tmp60_ = 0; _tmp60_ < result_length1; _tmp60_++) {
		g_variant_builder_add_value (&_tmp59_, g_variant_new_uint32 (*_tmp58_));
		_tmp58_++;
	}
	g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp59_));
	result = (g_free (result), NULL);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void _dbus_zeitgeist_remote_log_install_monitor (ZeitgeistRemoteLog* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	char* monitor_path = NULL;
	GVariant* _tmp61_;
	GVariant* time_range = NULL;
	GVariant* event_templates = NULL;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp61_ = g_variant_iter_next_value (&_arguments_iter);
	monitor_path = g_variant_dup_string (_tmp61_, NULL);
	g_variant_unref (_tmp61_);
	time_range = g_variant_iter_next_value (&_arguments_iter);
	event_templates = g_variant_iter_next_value (&_arguments_iter);
	zeitgeist_remote_log_install_monitor (self, monitor_path, time_range, event_templates, g_dbus_method_invocation_get_sender (invocation), (GAsyncReadyCallback) _dbus_zeitgeist_remote_log_install_monitor_ready, invocation);
	_g_free0 (monitor_path);
	_g_variant_unref0 (time_range);
	_g_variant_unref0 (event_templates);
}


static void _dbus_zeitgeist_remote_log_install_monitor_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	invocation = _user_data_;
	zeitgeist_remote_log_install_monitor_finish ((ZeitgeistRemoteLog*) source_object, _res_, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void _dbus_zeitgeist_remote_log_remove_monitor (ZeitgeistRemoteLog* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	char* monitor_path = NULL;
	GVariant* _tmp62_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp62_ = g_variant_iter_next_value (&_arguments_iter);
	monitor_path = g_variant_dup_string (_tmp62_, NULL);
	g_variant_unref (_tmp62_);
	zeitgeist_remote_log_remove_monitor (self, monitor_path, g_dbus_method_invocation_get_sender (invocation), (GAsyncReadyCallback) _dbus_zeitgeist_remote_log_remove_monitor_ready, invocation);
	_g_free0 (monitor_path);
}


static void _dbus_zeitgeist_remote_log_remove_monitor_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	invocation = _user_data_;
	zeitgeist_remote_log_remove_monitor_finish ((ZeitgeistRemoteLog*) source_object, _res_, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void _dbus_zeitgeist_remote_log_quit (ZeitgeistRemoteLog* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	zeitgeist_remote_log_quit (self, NULL, (GAsyncReadyCallback) _dbus_zeitgeist_remote_log_quit_ready, invocation);
}


static void _dbus_zeitgeist_remote_log_quit_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	invocation = _user_data_;
	zeitgeist_remote_log_quit_finish ((ZeitgeistRemoteLog*) source_object, _res_, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void zeitgeist_remote_log_dbus_interface_method_call (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* method_name, GVariant* parameters, GDBusMethodInvocation* invocation, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	if (strcmp (method_name, "DeleteEvents") == 0) {
		_dbus_zeitgeist_remote_log_delete_events (object, parameters, invocation);
	} else if (strcmp (method_name, "FindEventIds") == 0) {
		_dbus_zeitgeist_remote_log_find_event_ids (object, parameters, invocation);
	} else if (strcmp (method_name, "FindEvents") == 0) {
		_dbus_zeitgeist_remote_log_find_events (object, parameters, invocation);
	} else if (strcmp (method_name, "FindRelatedUris") == 0) {
		_dbus_zeitgeist_remote_log_find_related_uris (object, parameters, invocation);
	} else if (strcmp (method_name, "GetEvents") == 0) {
		_dbus_zeitgeist_remote_log_get_events (object, parameters, invocation);
	} else if (strcmp (method_name, "InsertEvents") == 0) {
		_dbus_zeitgeist_remote_log_insert_events (object, parameters, invocation);
	} else if (strcmp (method_name, "InstallMonitor") == 0) {
		_dbus_zeitgeist_remote_log_install_monitor (object, parameters, invocation);
	} else if (strcmp (method_name, "RemoveMonitor") == 0) {
		_dbus_zeitgeist_remote_log_remove_monitor (object, parameters, invocation);
	} else if (strcmp (method_name, "Quit") == 0) {
		_dbus_zeitgeist_remote_log_quit (object, parameters, invocation);
	} else {
		g_object_unref (invocation);
	}
}


static GVariant* _dbus_zeitgeist_remote_log_get_extensions (ZeitgeistRemoteLog* self) {
	gchar** result;
	int result_length1 = 0;
	gchar** _tmp63_;
	GVariantBuilder _tmp64_;
	int _tmp65_;
	GVariant* _reply;
	result = zeitgeist_remote_log_get_extensions (self, &result_length1);
	_tmp63_ = result;
	g_variant_builder_init (&_tmp64_, G_VARIANT_TYPE ("as"));
	for (_tmp65_ = 0; _tmp65_ < result_length1; _tmp65_++) {
		g_variant_builder_add_value (&_tmp64_, g_variant_new_string (*_tmp63_));
		_tmp63_++;
	}
	_reply = g_variant_builder_end (&_tmp64_);
	result = (_vala_array_free (result, result_length1, (GDestroyNotify) g_free), NULL);
	return _reply;
}


static GVariant* _dbus_zeitgeist_remote_log_get_version (ZeitgeistRemoteLog* self) {
	ZeitgeistVersionStruct result = {0};
	GVariantBuilder _tmp66_;
	GVariant* _reply;
	zeitgeist_remote_log_get_version (self, &result);
	g_variant_builder_init (&_tmp66_, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_tmp66_, g_variant_new_int32 (result.major));
	g_variant_builder_add_value (&_tmp66_, g_variant_new_int32 (result.minor));
	g_variant_builder_add_value (&_tmp66_, g_variant_new_int32 (result.micro));
	_reply = g_variant_builder_end (&_tmp66_);
	return _reply;
}


static GVariant* _dbus_zeitgeist_remote_log_get_datapath (ZeitgeistRemoteLog* self) {
	gchar* result;
	GVariant* _reply;
	result = zeitgeist_remote_log_get_datapath (self);
	_reply = g_variant_new_string (result);
	_g_free0 (result);
	return _reply;
}


static GVariant* zeitgeist_remote_log_dbus_interface_get_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GError** error, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	if (strcmp (property_name, "extensions") == 0) {
		return _dbus_zeitgeist_remote_log_get_extensions (object);
	} else if (strcmp (property_name, "version") == 0) {
		return _dbus_zeitgeist_remote_log_get_version (object);
	} else if (strcmp (property_name, "datapath") == 0) {
		return _dbus_zeitgeist_remote_log_get_datapath (object);
	}
	return NULL;
}


static gboolean zeitgeist_remote_log_dbus_interface_set_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GVariant* value, GError** error, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return FALSE;
}


guint zeitgeist_remote_log_register_object (gpointer object, GDBusConnection* connection, const gchar* path, GError** error) {
	guint result;
	gpointer *data;
	data = g_new (gpointer, 3);
	data[0] = g_object_ref (object);
	data[1] = g_object_ref (connection);
	data[2] = g_strdup (path);
	result = g_dbus_connection_register_object (connection, path, (GDBusInterfaceInfo *) (&_zeitgeist_remote_log_dbus_interface_info), &_zeitgeist_remote_log_dbus_interface_vtable, data, _zeitgeist_remote_log_unregister_object, error);
	if (!result) {
		return 0;
	}
	return result;
}


static void _zeitgeist_remote_log_unregister_object (gpointer user_data) {
	gpointer* data;
	data = user_data;
	g_object_unref (data[0]);
	g_object_unref (data[1]);
	g_free (data[2]);
	g_free (data);
}


void zeitgeist_remote_monitor_notify_insert (ZeitgeistRemoteMonitor* self, GVariant* time_range, GVariant* events, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ZEITGEIST_REMOTE_MONITOR_GET_INTERFACE (self)->notify_insert (self, time_range, events, _callback_, _user_data_);
}


void zeitgeist_remote_monitor_notify_insert_finish (ZeitgeistRemoteMonitor* self, GAsyncResult* _res_, GError** error) {
	ZEITGEIST_REMOTE_MONITOR_GET_INTERFACE (self)->notify_insert_finish (self, _res_, error);
}


void zeitgeist_remote_monitor_notify_delete (ZeitgeistRemoteMonitor* self, GVariant* time_range, guint32* event_ids, int event_ids_length1, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ZEITGEIST_REMOTE_MONITOR_GET_INTERFACE (self)->notify_delete (self, time_range, event_ids, event_ids_length1, _callback_, _user_data_);
}


void zeitgeist_remote_monitor_notify_delete_finish (ZeitgeistRemoteMonitor* self, GAsyncResult* _res_, GError** error) {
	ZEITGEIST_REMOTE_MONITOR_GET_INTERFACE (self)->notify_delete_finish (self, _res_, error);
}


static void zeitgeist_remote_monitor_base_init (ZeitgeistRemoteMonitorIface * iface) {
	static gboolean initialized = FALSE;
	if (!initialized) {
		initialized = TRUE;
	}
}


GType zeitgeist_remote_monitor_get_type (void) {
	static volatile gsize zeitgeist_remote_monitor_type_id__volatile = 0;
	if (g_once_init_enter (&zeitgeist_remote_monitor_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ZeitgeistRemoteMonitorIface), (GBaseInitFunc) zeitgeist_remote_monitor_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType zeitgeist_remote_monitor_type_id;
		zeitgeist_remote_monitor_type_id = g_type_register_static (G_TYPE_INTERFACE, "ZeitgeistRemoteMonitor", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (zeitgeist_remote_monitor_type_id, G_TYPE_OBJECT);
		g_type_set_qdata (zeitgeist_remote_monitor_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) zeitgeist_remote_monitor_proxy_get_type);
		g_type_set_qdata (zeitgeist_remote_monitor_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "org.gnome.zeitgeist.Monitor");
		g_type_set_qdata (zeitgeist_remote_monitor_type_id, g_quark_from_static_string ("vala-dbus-interface-info"), (void*) (&_zeitgeist_remote_monitor_dbus_interface_info));
		g_type_set_qdata (zeitgeist_remote_monitor_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) zeitgeist_remote_monitor_register_object);
		g_once_init_leave (&zeitgeist_remote_monitor_type_id__volatile, zeitgeist_remote_monitor_type_id);
	}
	return zeitgeist_remote_monitor_type_id__volatile;
}


G_DEFINE_TYPE_EXTENDED (ZeitgeistRemoteMonitorProxy, zeitgeist_remote_monitor_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (ZEITGEIST_TYPE_REMOTE_MONITOR, zeitgeist_remote_monitor_proxy_zeitgeist_remote_monitor_interface_init) )
static void zeitgeist_remote_monitor_proxy_class_init (ZeitgeistRemoteMonitorProxyClass* klass) {
	G_DBUS_PROXY_CLASS (klass)->g_signal = zeitgeist_remote_monitor_proxy_g_signal;
}


static void zeitgeist_remote_monitor_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters) {
}


static void zeitgeist_remote_monitor_proxy_init (ZeitgeistRemoteMonitorProxy* self) {
}


static void zeitgeist_remote_monitor_proxy_notify_insert_async (ZeitgeistRemoteMonitor* self, GVariant* time_range, GVariant* events, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gnome.zeitgeist.Monitor", "NotifyInsert");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, time_range);
	g_variant_builder_add_value (&_arguments_builder, events);
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
	g_object_unref (_message);
}


static void zeitgeist_remote_monitor_proxy_notify_insert_finish (ZeitgeistRemoteMonitor* self, GAsyncResult* _res_, GError** error) {
	GDBusMessage *_reply_message;
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}


static void zeitgeist_remote_monitor_proxy_notify_delete_async (ZeitgeistRemoteMonitor* self, GVariant* time_range, guint32* event_ids, int event_ids_length1, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	guint32* _tmp67_;
	GVariantBuilder _tmp68_;
	int _tmp69_;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gnome.zeitgeist.Monitor", "NotifyDelete");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, time_range);
	_tmp67_ = event_ids;
	g_variant_builder_init (&_tmp68_, G_VARIANT_TYPE ("au"));
	for (_tmp69_ = 0; _tmp69_ < event_ids_length1; _tmp69_++) {
		g_variant_builder_add_value (&_tmp68_, g_variant_new_uint32 (*_tmp67_));
		_tmp67_++;
	}
	g_variant_builder_add_value (&_arguments_builder, g_variant_builder_end (&_tmp68_));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
	g_object_unref (_message);
}


static void zeitgeist_remote_monitor_proxy_notify_delete_finish (ZeitgeistRemoteMonitor* self, GAsyncResult* _res_, GError** error) {
	GDBusMessage *_reply_message;
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}


static void zeitgeist_remote_monitor_proxy_zeitgeist_remote_monitor_interface_init (ZeitgeistRemoteMonitorIface* iface) {
	iface->notify_insert = zeitgeist_remote_monitor_proxy_notify_insert_async;
	iface->notify_insert_finish = zeitgeist_remote_monitor_proxy_notify_insert_finish;
	iface->notify_delete = zeitgeist_remote_monitor_proxy_notify_delete_async;
	iface->notify_delete_finish = zeitgeist_remote_monitor_proxy_notify_delete_finish;
}


static void _dbus_zeitgeist_remote_monitor_notify_insert (ZeitgeistRemoteMonitor* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	GVariant* time_range = NULL;
	GVariant* events = NULL;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	time_range = g_variant_iter_next_value (&_arguments_iter);
	events = g_variant_iter_next_value (&_arguments_iter);
	zeitgeist_remote_monitor_notify_insert (self, time_range, events, (GAsyncReadyCallback) _dbus_zeitgeist_remote_monitor_notify_insert_ready, invocation);
	_g_variant_unref0 (time_range);
	_g_variant_unref0 (events);
}


static void _dbus_zeitgeist_remote_monitor_notify_insert_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	invocation = _user_data_;
	zeitgeist_remote_monitor_notify_insert_finish ((ZeitgeistRemoteMonitor*) source_object, _res_, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void _dbus_zeitgeist_remote_monitor_notify_delete (ZeitgeistRemoteMonitor* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	GVariant* time_range = NULL;
	guint32* event_ids = NULL;
	int event_ids_length1 = 0;
	GVariant* _tmp70_;
	guint32* _tmp71_;
	int _tmp71__length;
	int _tmp71__size;
	int _tmp71__length1;
	GVariantIter _tmp72_;
	GVariant* _tmp73_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	time_range = g_variant_iter_next_value (&_arguments_iter);
	_tmp70_ = g_variant_iter_next_value (&_arguments_iter);
	_tmp71_ = g_new (guint32, 5);
	_tmp71__length = 0;
	_tmp71__size = 4;
	_tmp71__length1 = 0;
	g_variant_iter_init (&_tmp72_, _tmp70_);
	for (; (_tmp73_ = g_variant_iter_next_value (&_tmp72_)) != NULL; _tmp71__length1++) {
		if (_tmp71__size == _tmp71__length) {
			_tmp71__size = 2 * _tmp71__size;
			_tmp71_ = g_renew (guint32, _tmp71_, _tmp71__size + 1);
		}
		_tmp71_[_tmp71__length++] = g_variant_get_uint32 (_tmp73_);
		g_variant_unref (_tmp73_);
	}
	event_ids_length1 = _tmp71__length1;
	event_ids = _tmp71_;
	g_variant_unref (_tmp70_);
	zeitgeist_remote_monitor_notify_delete (self, time_range, event_ids, event_ids_length1, (GAsyncReadyCallback) _dbus_zeitgeist_remote_monitor_notify_delete_ready, invocation);
	_g_variant_unref0 (time_range);
	event_ids = (g_free (event_ids), NULL);
}


static void _dbus_zeitgeist_remote_monitor_notify_delete_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	invocation = _user_data_;
	zeitgeist_remote_monitor_notify_delete_finish ((ZeitgeistRemoteMonitor*) source_object, _res_, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void zeitgeist_remote_monitor_dbus_interface_method_call (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* method_name, GVariant* parameters, GDBusMethodInvocation* invocation, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	if (strcmp (method_name, "NotifyInsert") == 0) {
		_dbus_zeitgeist_remote_monitor_notify_insert (object, parameters, invocation);
	} else if (strcmp (method_name, "NotifyDelete") == 0) {
		_dbus_zeitgeist_remote_monitor_notify_delete (object, parameters, invocation);
	} else {
		g_object_unref (invocation);
	}
}


static GVariant* zeitgeist_remote_monitor_dbus_interface_get_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GError** error, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return NULL;
}


static gboolean zeitgeist_remote_monitor_dbus_interface_set_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GVariant* value, GError** error, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return FALSE;
}


guint zeitgeist_remote_monitor_register_object (gpointer object, GDBusConnection* connection, const gchar* path, GError** error) {
	guint result;
	gpointer *data;
	data = g_new (gpointer, 3);
	data[0] = g_object_ref (object);
	data[1] = g_object_ref (connection);
	data[2] = g_strdup (path);
	result = g_dbus_connection_register_object (connection, path, (GDBusInterfaceInfo *) (&_zeitgeist_remote_monitor_dbus_interface_info), &_zeitgeist_remote_monitor_dbus_interface_vtable, data, _zeitgeist_remote_monitor_unregister_object, error);
	if (!result) {
		return 0;
	}
	return result;
}


static void _zeitgeist_remote_monitor_unregister_object (gpointer user_data) {
	gpointer* data;
	data = user_data;
	g_object_unref (data[0]);
	g_object_unref (data[1]);
	g_free (data[2]);
	g_free (data);
}


void zeitgeist_remote_simple_indexer_search (ZeitgeistRemoteSimpleIndexer* self, const gchar* query_string, GVariant* time_range, GVariant* filter_templates, guint offset, guint count, guint result_type, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ZEITGEIST_REMOTE_SIMPLE_INDEXER_GET_INTERFACE (self)->search (self, query_string, time_range, filter_templates, offset, count, result_type, cancellable, _callback_, _user_data_);
}


void zeitgeist_remote_simple_indexer_search_finish (ZeitgeistRemoteSimpleIndexer* self, GAsyncResult* _res_, GVariant** events, guint* matches, GError** error) {
	ZEITGEIST_REMOTE_SIMPLE_INDEXER_GET_INTERFACE (self)->search_finish (self, _res_, events, matches, error);
}


void zeitgeist_remote_simple_indexer_search_with_relevancies (ZeitgeistRemoteSimpleIndexer* self, const gchar* query_string, GVariant* time_range, GVariant* filter_templates, guint storage_state, guint offset, guint count, guint result_type, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ZEITGEIST_REMOTE_SIMPLE_INDEXER_GET_INTERFACE (self)->search_with_relevancies (self, query_string, time_range, filter_templates, storage_state, offset, count, result_type, cancellable, _callback_, _user_data_);
}


void zeitgeist_remote_simple_indexer_search_with_relevancies_finish (ZeitgeistRemoteSimpleIndexer* self, GAsyncResult* _res_, GVariant** events, gdouble** relevancies, int* relevancies_length1, guint* matches, GError** error) {
	ZEITGEIST_REMOTE_SIMPLE_INDEXER_GET_INTERFACE (self)->search_with_relevancies_finish (self, _res_, events, relevancies, relevancies_length1, matches, error);
}


static void zeitgeist_remote_simple_indexer_base_init (ZeitgeistRemoteSimpleIndexerIface * iface) {
	static gboolean initialized = FALSE;
	if (!initialized) {
		initialized = TRUE;
	}
}


GType zeitgeist_remote_simple_indexer_get_type (void) {
	static volatile gsize zeitgeist_remote_simple_indexer_type_id__volatile = 0;
	if (g_once_init_enter (&zeitgeist_remote_simple_indexer_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ZeitgeistRemoteSimpleIndexerIface), (GBaseInitFunc) zeitgeist_remote_simple_indexer_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType zeitgeist_remote_simple_indexer_type_id;
		zeitgeist_remote_simple_indexer_type_id = g_type_register_static (G_TYPE_INTERFACE, "ZeitgeistRemoteSimpleIndexer", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (zeitgeist_remote_simple_indexer_type_id, G_TYPE_OBJECT);
		g_type_set_qdata (zeitgeist_remote_simple_indexer_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) zeitgeist_remote_simple_indexer_proxy_get_type);
		g_type_set_qdata (zeitgeist_remote_simple_indexer_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "org.gnome.zeitgeist.Index");
		g_type_set_qdata (zeitgeist_remote_simple_indexer_type_id, g_quark_from_static_string ("vala-dbus-interface-info"), (void*) (&_zeitgeist_remote_simple_indexer_dbus_interface_info));
		g_type_set_qdata (zeitgeist_remote_simple_indexer_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) zeitgeist_remote_simple_indexer_register_object);
		g_once_init_leave (&zeitgeist_remote_simple_indexer_type_id__volatile, zeitgeist_remote_simple_indexer_type_id);
	}
	return zeitgeist_remote_simple_indexer_type_id__volatile;
}


G_DEFINE_TYPE_EXTENDED (ZeitgeistRemoteSimpleIndexerProxy, zeitgeist_remote_simple_indexer_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (ZEITGEIST_TYPE_REMOTE_SIMPLE_INDEXER, zeitgeist_remote_simple_indexer_proxy_zeitgeist_remote_simple_indexer_interface_init) )
static void zeitgeist_remote_simple_indexer_proxy_class_init (ZeitgeistRemoteSimpleIndexerProxyClass* klass) {
	G_DBUS_PROXY_CLASS (klass)->g_signal = zeitgeist_remote_simple_indexer_proxy_g_signal;
}


static void zeitgeist_remote_simple_indexer_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters) {
}


static void zeitgeist_remote_simple_indexer_proxy_init (ZeitgeistRemoteSimpleIndexerProxy* self) {
}


static void zeitgeist_remote_simple_indexer_proxy_search_async (ZeitgeistRemoteSimpleIndexer* self, const gchar* query_string, GVariant* time_range, GVariant* filter_templates, guint offset, guint count, guint result_type, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gnome.zeitgeist.Index", "Search");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (query_string));
	g_variant_builder_add_value (&_arguments_builder, time_range);
	g_variant_builder_add_value (&_arguments_builder, filter_templates);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (offset));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (count));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (result_type));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, cancellable, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
	g_object_unref (_message);
}


static void zeitgeist_remote_simple_indexer_proxy_search_finish (ZeitgeistRemoteSimpleIndexer* self, GAsyncResult* _res_, GVariant** events, guint* matches, GError** error) {
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	GVariant* _vala_events;
	guint _vala_matches;
	GVariant* _tmp74_;
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_vala_events = g_variant_iter_next_value (&_reply_iter);
	*events = _vala_events;
	_tmp74_ = g_variant_iter_next_value (&_reply_iter);
	_vala_matches = g_variant_get_uint32 (_tmp74_);
	g_variant_unref (_tmp74_);
	*matches = _vala_matches;
	g_object_unref (_reply_message);
}


static void zeitgeist_remote_simple_indexer_proxy_search_with_relevancies_async (ZeitgeistRemoteSimpleIndexer* self, const gchar* query_string, GVariant* time_range, GVariant* filter_templates, guint storage_state, guint offset, guint count, guint result_type, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.gnome.zeitgeist.Index", "SearchWithRelevancies");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (query_string));
	g_variant_builder_add_value (&_arguments_builder, time_range);
	g_variant_builder_add_value (&_arguments_builder, filter_templates);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (storage_state));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (offset));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (count));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (result_type));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	g_dbus_connection_send_message_with_reply (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, cancellable, _vala_g_async_ready_callback, g_simple_async_result_new ((GObject *) self, _callback_, _user_data_, NULL));
	g_object_unref (_message);
}


static void zeitgeist_remote_simple_indexer_proxy_search_with_relevancies_finish (ZeitgeistRemoteSimpleIndexer* self, GAsyncResult* _res_, GVariant** events, gdouble** relevancies, int* relevancies_length1, guint* matches, GError** error) {
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	GVariant* _vala_events;
	gdouble* _vala_relevancies;
	int _vala_relevancies_length1;
	GVariant* _tmp75_;
	gdouble* _tmp76_;
	int _tmp76__length;
	int _tmp76__size;
	int _tmp76__length1;
	GVariantIter _tmp77_;
	GVariant* _tmp78_;
	guint _vala_matches;
	GVariant* _tmp79_;
	_reply_message = g_dbus_connection_send_message_with_reply_finish (g_dbus_proxy_get_connection ((GDBusProxy *) self), g_simple_async_result_get_op_res_gpointer ((GSimpleAsyncResult *) _res_), error);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_vala_events = g_variant_iter_next_value (&_reply_iter);
	*events = _vala_events;
	_vala_relevancies_length1 = 0;
	_tmp75_ = g_variant_iter_next_value (&_reply_iter);
	_tmp76_ = g_new (gdouble, 5);
	_tmp76__length = 0;
	_tmp76__size = 4;
	_tmp76__length1 = 0;
	g_variant_iter_init (&_tmp77_, _tmp75_);
	for (; (_tmp78_ = g_variant_iter_next_value (&_tmp77_)) != NULL; _tmp76__length1++) {
		if (_tmp76__size == _tmp76__length) {
			_tmp76__size = 2 * _tmp76__size;
			_tmp76_ = g_renew (gdouble, _tmp76_, _tmp76__size + 1);
		}
		_tmp76_[_tmp76__length++] = g_variant_get_double (_tmp78_);
		g_variant_unref (_tmp78_);
	}
	_vala_relevancies_length1 = _tmp76__length1;
	_vala_relevancies = _tmp76_;
	g_variant_unref (_tmp75_);
	*relevancies = _vala_relevancies;
	*relevancies_length1 = _vala_relevancies_length1;
	_tmp79_ = g_variant_iter_next_value (&_reply_iter);
	_vala_matches = g_variant_get_uint32 (_tmp79_);
	g_variant_unref (_tmp79_);
	*matches = _vala_matches;
	g_object_unref (_reply_message);
}


static void zeitgeist_remote_simple_indexer_proxy_zeitgeist_remote_simple_indexer_interface_init (ZeitgeistRemoteSimpleIndexerIface* iface) {
	iface->search = zeitgeist_remote_simple_indexer_proxy_search_async;
	iface->search_finish = zeitgeist_remote_simple_indexer_proxy_search_finish;
	iface->search_with_relevancies = zeitgeist_remote_simple_indexer_proxy_search_with_relevancies_async;
	iface->search_with_relevancies_finish = zeitgeist_remote_simple_indexer_proxy_search_with_relevancies_finish;
}


static void _dbus_zeitgeist_remote_simple_indexer_search (ZeitgeistRemoteSimpleIndexer* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	gchar* query_string = NULL;
	GVariant* _tmp80_;
	GVariant* time_range = NULL;
	GVariant* filter_templates = NULL;
	guint offset = 0U;
	GVariant* _tmp81_;
	guint count = 0U;
	GVariant* _tmp82_;
	guint result_type = 0U;
	GVariant* _tmp83_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp80_ = g_variant_iter_next_value (&_arguments_iter);
	query_string = g_variant_dup_string (_tmp80_, NULL);
	g_variant_unref (_tmp80_);
	time_range = g_variant_iter_next_value (&_arguments_iter);
	filter_templates = g_variant_iter_next_value (&_arguments_iter);
	_tmp81_ = g_variant_iter_next_value (&_arguments_iter);
	offset = g_variant_get_uint32 (_tmp81_);
	g_variant_unref (_tmp81_);
	_tmp82_ = g_variant_iter_next_value (&_arguments_iter);
	count = g_variant_get_uint32 (_tmp82_);
	g_variant_unref (_tmp82_);
	_tmp83_ = g_variant_iter_next_value (&_arguments_iter);
	result_type = g_variant_get_uint32 (_tmp83_);
	g_variant_unref (_tmp83_);
	zeitgeist_remote_simple_indexer_search (self, query_string, time_range, filter_templates, offset, count, result_type, NULL, (GAsyncReadyCallback) _dbus_zeitgeist_remote_simple_indexer_search_ready, invocation);
	_g_free0 (query_string);
	_g_variant_unref0 (time_range);
	_g_variant_unref0 (filter_templates);
}


static void _dbus_zeitgeist_remote_simple_indexer_search_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	GVariant* events = NULL;
	guint matches = 0U;
	invocation = _user_data_;
	zeitgeist_remote_simple_indexer_search_finish ((ZeitgeistRemoteSimpleIndexer*) source_object, _res_, &events, &matches, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, events);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_uint32 (matches));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	_g_variant_unref0 (events);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void _dbus_zeitgeist_remote_simple_indexer_search_with_relevancies (ZeitgeistRemoteSimpleIndexer* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GVariantIter _arguments_iter;
	gchar* query_string = NULL;
	GVariant* _tmp84_;
	GVariant* time_range = NULL;
	GVariant* filter_templates = NULL;
	guint storage_state = 0U;
	GVariant* _tmp85_;
	guint offset = 0U;
	GVariant* _tmp86_;
	guint count = 0U;
	GVariant* _tmp87_;
	guint result_type = 0U;
	GVariant* _tmp88_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp84_ = g_variant_iter_next_value (&_arguments_iter);
	query_string = g_variant_dup_string (_tmp84_, NULL);
	g_variant_unref (_tmp84_);
	time_range = g_variant_iter_next_value (&_arguments_iter);
	filter_templates = g_variant_iter_next_value (&_arguments_iter);
	_tmp85_ = g_variant_iter_next_value (&_arguments_iter);
	storage_state = g_variant_get_uint32 (_tmp85_);
	g_variant_unref (_tmp85_);
	_tmp86_ = g_variant_iter_next_value (&_arguments_iter);
	offset = g_variant_get_uint32 (_tmp86_);
	g_variant_unref (_tmp86_);
	_tmp87_ = g_variant_iter_next_value (&_arguments_iter);
	count = g_variant_get_uint32 (_tmp87_);
	g_variant_unref (_tmp87_);
	_tmp88_ = g_variant_iter_next_value (&_arguments_iter);
	result_type = g_variant_get_uint32 (_tmp88_);
	g_variant_unref (_tmp88_);
	zeitgeist_remote_simple_indexer_search_with_relevancies (self, query_string, time_range, filter_templates, storage_state, offset, count, result_type, NULL, (GAsyncReadyCallback) _dbus_zeitgeist_remote_simple_indexer_search_with_relevancies_ready, invocation);
	_g_free0 (query_string);
	_g_variant_unref0 (time_range);
	_g_variant_unref0 (filter_templates);
}


static void _dbus_zeitgeist_remote_simple_indexer_search_with_relevancies_ready (GObject * source_object, GAsyncResult * _res_, gpointer _user_data_) {
	GDBusMethodInvocation * invocation;
	GError* error = NULL;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	GVariant* events = NULL;
	gdouble* relevancies = NULL;
	int relevancies_length1 = 0;
	gdouble* _tmp89_;
	GVariantBuilder _tmp90_;
	int _tmp91_;
	guint matches = 0U;
	invocation = _user_data_;
	zeitgeist_remote_simple_indexer_search_with_relevancies_finish ((ZeitgeistRemoteSimpleIndexer*) source_object, _res_, &events, &relevancies, &relevancies_length1, &matches, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, events);
	_tmp89_ = relevancies;
	g_variant_builder_init (&_tmp90_, G_VARIANT_TYPE ("ad"));
	for (_tmp91_ = 0; _tmp91_ < relevancies_length1; _tmp91_++) {
		g_variant_builder_add_value (&_tmp90_, g_variant_new_double (*_tmp89_));
		_tmp89_++;
	}
	g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp90_));
	g_variant_builder_add_value (&_reply_builder, g_variant_new_uint32 (matches));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	_g_variant_unref0 (events);
	relevancies = (g_free (relevancies), NULL);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void zeitgeist_remote_simple_indexer_dbus_interface_method_call (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* method_name, GVariant* parameters, GDBusMethodInvocation* invocation, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	if (strcmp (method_name, "Search") == 0) {
		_dbus_zeitgeist_remote_simple_indexer_search (object, parameters, invocation);
	} else if (strcmp (method_name, "SearchWithRelevancies") == 0) {
		_dbus_zeitgeist_remote_simple_indexer_search_with_relevancies (object, parameters, invocation);
	} else {
		g_object_unref (invocation);
	}
}


static GVariant* zeitgeist_remote_simple_indexer_dbus_interface_get_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GError** error, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return NULL;
}


static gboolean zeitgeist_remote_simple_indexer_dbus_interface_set_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GVariant* value, GError** error, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return FALSE;
}


guint zeitgeist_remote_simple_indexer_register_object (gpointer object, GDBusConnection* connection, const gchar* path, GError** error) {
	guint result;
	gpointer *data;
	data = g_new (gpointer, 3);
	data[0] = g_object_ref (object);
	data[1] = g_object_ref (connection);
	data[2] = g_strdup (path);
	result = g_dbus_connection_register_object (connection, path, (GDBusInterfaceInfo *) (&_zeitgeist_remote_simple_indexer_dbus_interface_info), &_zeitgeist_remote_simple_indexer_dbus_interface_vtable, data, _zeitgeist_remote_simple_indexer_unregister_object, error);
	if (!result) {
		return 0;
	}
	return result;
}


static void _zeitgeist_remote_simple_indexer_unregister_object (gpointer user_data) {
	gpointer* data;
	data = user_data;
	g_object_unref (data[0]);
	g_object_unref (data[1]);
	g_free (data[2]);
	g_free (data);
}


guint32 zeitgeist_network_manager_dbus_state (ZeitgeistNetworkManagerDBus* self, GError** error) {
	g_return_val_if_fail (self != NULL, 0U);
	return ZEITGEIST_NETWORK_MANAGER_DBUS_GET_INTERFACE (self)->state (self, error);
}


static void zeitgeist_network_manager_dbus_base_init (ZeitgeistNetworkManagerDBusIface * iface) {
	static gboolean initialized = FALSE;
	if (!initialized) {
		initialized = TRUE;
		g_signal_new ("state_changed", ZEITGEIST_TYPE_NETWORK_MANAGER_DBUS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_UINT);
	}
}


GType zeitgeist_network_manager_dbus_get_type (void) {
	static volatile gsize zeitgeist_network_manager_dbus_type_id__volatile = 0;
	if (g_once_init_enter (&zeitgeist_network_manager_dbus_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ZeitgeistNetworkManagerDBusIface), (GBaseInitFunc) zeitgeist_network_manager_dbus_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType zeitgeist_network_manager_dbus_type_id;
		zeitgeist_network_manager_dbus_type_id = g_type_register_static (G_TYPE_INTERFACE, "ZeitgeistNetworkManagerDBus", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (zeitgeist_network_manager_dbus_type_id, G_TYPE_OBJECT);
		g_type_set_qdata (zeitgeist_network_manager_dbus_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) zeitgeist_network_manager_dbus_proxy_get_type);
		g_type_set_qdata (zeitgeist_network_manager_dbus_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "org.freedesktop.NetworkManager");
		g_type_set_qdata (zeitgeist_network_manager_dbus_type_id, g_quark_from_static_string ("vala-dbus-interface-info"), (void*) (&_zeitgeist_network_manager_dbus_dbus_interface_info));
		g_type_set_qdata (zeitgeist_network_manager_dbus_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) zeitgeist_network_manager_dbus_register_object);
		g_once_init_leave (&zeitgeist_network_manager_dbus_type_id__volatile, zeitgeist_network_manager_dbus_type_id);
	}
	return zeitgeist_network_manager_dbus_type_id__volatile;
}


G_DEFINE_TYPE_EXTENDED (ZeitgeistNetworkManagerDBusProxy, zeitgeist_network_manager_dbus_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (ZEITGEIST_TYPE_NETWORK_MANAGER_DBUS, zeitgeist_network_manager_dbus_proxy_zeitgeist_network_manager_dbus_interface_init) )
static void zeitgeist_network_manager_dbus_proxy_class_init (ZeitgeistNetworkManagerDBusProxyClass* klass) {
	G_DBUS_PROXY_CLASS (klass)->g_signal = zeitgeist_network_manager_dbus_proxy_g_signal;
}


static void _dbus_handle_zeitgeist_network_manager_dbus_state_changed (ZeitgeistNetworkManagerDBus* self, GVariant* parameters) {
	GVariantIter _arguments_iter;
	guint32 state = 0U;
	GVariant* _tmp92_;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp92_ = g_variant_iter_next_value (&_arguments_iter);
	state = g_variant_get_uint32 (_tmp92_);
	g_variant_unref (_tmp92_);
	g_signal_emit_by_name (self, "state-changed", state);
}


static void zeitgeist_network_manager_dbus_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters) {
	if (strcmp (signal_name, "StateChanged") == 0) {
		_dbus_handle_zeitgeist_network_manager_dbus_state_changed ((ZeitgeistNetworkManagerDBus*) proxy, parameters);
	}
}


static void zeitgeist_network_manager_dbus_proxy_init (ZeitgeistNetworkManagerDBusProxy* self) {
}


static guint32 zeitgeist_network_manager_dbus_proxy_state (ZeitgeistNetworkManagerDBus* self, GError** error) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	guint32 _result;
	GVariant* _tmp93_;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.freedesktop.NetworkManager", "state");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return 0U;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return 0U;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_tmp93_ = g_variant_iter_next_value (&_reply_iter);
	_result = g_variant_get_uint32 (_tmp93_);
	g_variant_unref (_tmp93_);
	g_object_unref (_reply_message);
	return _result;
}


static void zeitgeist_network_manager_dbus_proxy_zeitgeist_network_manager_dbus_interface_init (ZeitgeistNetworkManagerDBusIface* iface) {
	iface->state = zeitgeist_network_manager_dbus_proxy_state;
}


static void _dbus_zeitgeist_network_manager_dbus_state (ZeitgeistNetworkManagerDBus* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	guint32 result;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	result = zeitgeist_network_manager_dbus_state (self, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_uint32 (result));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void zeitgeist_network_manager_dbus_dbus_interface_method_call (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* method_name, GVariant* parameters, GDBusMethodInvocation* invocation, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	if (strcmp (method_name, "state") == 0) {
		_dbus_zeitgeist_network_manager_dbus_state (object, parameters, invocation);
	} else {
		g_object_unref (invocation);
	}
}


static GVariant* zeitgeist_network_manager_dbus_dbus_interface_get_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GError** error, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return NULL;
}


static gboolean zeitgeist_network_manager_dbus_dbus_interface_set_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GVariant* value, GError** error, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return FALSE;
}


static void _dbus_zeitgeist_network_manager_dbus_state_changed (GObject* _sender, guint32 state, gpointer* _data) {
	GDBusConnection * _connection;
	const gchar * _path;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_connection = _data[1];
	_path = _data[2];
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (state));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.freedesktop.NetworkManager", "StateChanged", _arguments, NULL);
}


guint zeitgeist_network_manager_dbus_register_object (gpointer object, GDBusConnection* connection, const gchar* path, GError** error) {
	guint result;
	gpointer *data;
	data = g_new (gpointer, 3);
	data[0] = g_object_ref (object);
	data[1] = g_object_ref (connection);
	data[2] = g_strdup (path);
	result = g_dbus_connection_register_object (connection, path, (GDBusInterfaceInfo *) (&_zeitgeist_network_manager_dbus_dbus_interface_info), &_zeitgeist_network_manager_dbus_dbus_interface_vtable, data, _zeitgeist_network_manager_dbus_unregister_object, error);
	if (!result) {
		return 0;
	}
	g_signal_connect (object, "state-changed", (GCallback) _dbus_zeitgeist_network_manager_dbus_state_changed, data);
	return result;
}


static void _zeitgeist_network_manager_dbus_unregister_object (gpointer user_data) {
	gpointer* data;
	data = user_data;
	g_signal_handlers_disconnect_by_func (data[0], _dbus_zeitgeist_network_manager_dbus_state_changed, data);
	g_object_unref (data[0]);
	g_object_unref (data[1]);
	g_free (data[2]);
	g_free (data);
}


gchar* zeitgeist_connman_manager_dbus_get_state (ZeitgeistConnmanManagerDBus* self, GError** error) {
	g_return_val_if_fail (self != NULL, NULL);
	return ZEITGEIST_CONNMAN_MANAGER_DBUS_GET_INTERFACE (self)->get_state (self, error);
}


static void zeitgeist_connman_manager_dbus_base_init (ZeitgeistConnmanManagerDBusIface * iface) {
	static gboolean initialized = FALSE;
	if (!initialized) {
		initialized = TRUE;
		g_signal_new ("state_changed", ZEITGEIST_TYPE_CONNMAN_MANAGER_DBUS, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
	}
}


GType zeitgeist_connman_manager_dbus_get_type (void) {
	static volatile gsize zeitgeist_connman_manager_dbus_type_id__volatile = 0;
	if (g_once_init_enter (&zeitgeist_connman_manager_dbus_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ZeitgeistConnmanManagerDBusIface), (GBaseInitFunc) zeitgeist_connman_manager_dbus_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType zeitgeist_connman_manager_dbus_type_id;
		zeitgeist_connman_manager_dbus_type_id = g_type_register_static (G_TYPE_INTERFACE, "ZeitgeistConnmanManagerDBus", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (zeitgeist_connman_manager_dbus_type_id, G_TYPE_OBJECT);
		g_type_set_qdata (zeitgeist_connman_manager_dbus_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) zeitgeist_connman_manager_dbus_proxy_get_type);
		g_type_set_qdata (zeitgeist_connman_manager_dbus_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "net.connman.Manager");
		g_type_set_qdata (zeitgeist_connman_manager_dbus_type_id, g_quark_from_static_string ("vala-dbus-interface-info"), (void*) (&_zeitgeist_connman_manager_dbus_dbus_interface_info));
		g_type_set_qdata (zeitgeist_connman_manager_dbus_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) zeitgeist_connman_manager_dbus_register_object);
		g_once_init_leave (&zeitgeist_connman_manager_dbus_type_id__volatile, zeitgeist_connman_manager_dbus_type_id);
	}
	return zeitgeist_connman_manager_dbus_type_id__volatile;
}


G_DEFINE_TYPE_EXTENDED (ZeitgeistConnmanManagerDBusProxy, zeitgeist_connman_manager_dbus_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (ZEITGEIST_TYPE_CONNMAN_MANAGER_DBUS, zeitgeist_connman_manager_dbus_proxy_zeitgeist_connman_manager_dbus_interface_init) )
static void zeitgeist_connman_manager_dbus_proxy_class_init (ZeitgeistConnmanManagerDBusProxyClass* klass) {
	G_DBUS_PROXY_CLASS (klass)->g_signal = zeitgeist_connman_manager_dbus_proxy_g_signal;
}


static void _dbus_handle_zeitgeist_connman_manager_dbus_state_changed (ZeitgeistConnmanManagerDBus* self, GVariant* parameters) {
	GVariantIter _arguments_iter;
	gchar* state = NULL;
	GVariant* _tmp94_;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp94_ = g_variant_iter_next_value (&_arguments_iter);
	state = g_variant_dup_string (_tmp94_, NULL);
	g_variant_unref (_tmp94_);
	g_signal_emit_by_name (self, "state-changed", state);
	_g_free0 (state);
}


static void zeitgeist_connman_manager_dbus_proxy_g_signal (GDBusProxy* proxy, const gchar* sender_name, const gchar* signal_name, GVariant* parameters) {
	if (strcmp (signal_name, "StateChanged") == 0) {
		_dbus_handle_zeitgeist_connman_manager_dbus_state_changed ((ZeitgeistConnmanManagerDBus*) proxy, parameters);
	}
}


static void zeitgeist_connman_manager_dbus_proxy_init (ZeitgeistConnmanManagerDBusProxy* self) {
}


static gchar* zeitgeist_connman_manager_dbus_proxy_get_state (ZeitgeistConnmanManagerDBus* self, GError** error) {
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	gchar* _result;
	GVariant* _tmp95_;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "net.connman.Manager", "GetState");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return NULL;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return NULL;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_tmp95_ = g_variant_iter_next_value (&_reply_iter);
	_result = g_variant_dup_string (_tmp95_, NULL);
	g_variant_unref (_tmp95_);
	g_object_unref (_reply_message);
	return _result;
}


static void zeitgeist_connman_manager_dbus_proxy_zeitgeist_connman_manager_dbus_interface_init (ZeitgeistConnmanManagerDBusIface* iface) {
	iface->get_state = zeitgeist_connman_manager_dbus_proxy_get_state;
}


static void _dbus_zeitgeist_connman_manager_dbus_get_state (ZeitgeistConnmanManagerDBus* self, GVariant* _parameters_, GDBusMethodInvocation* invocation) {
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gchar* result;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	result = zeitgeist_connman_manager_dbus_get_state (self, &error);
	if (error) {
		g_dbus_method_invocation_return_gerror (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_string (result));
	_g_free0 (result);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}


static void zeitgeist_connman_manager_dbus_dbus_interface_method_call (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* method_name, GVariant* parameters, GDBusMethodInvocation* invocation, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	if (strcmp (method_name, "GetState") == 0) {
		_dbus_zeitgeist_connman_manager_dbus_get_state (object, parameters, invocation);
	} else {
		g_object_unref (invocation);
	}
}


static GVariant* zeitgeist_connman_manager_dbus_dbus_interface_get_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GError** error, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return NULL;
}


static gboolean zeitgeist_connman_manager_dbus_dbus_interface_set_property (GDBusConnection* connection, const gchar* sender, const gchar* object_path, const gchar* interface_name, const gchar* property_name, GVariant* value, GError** error, gpointer user_data) {
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return FALSE;
}


static void _dbus_zeitgeist_connman_manager_dbus_state_changed (GObject* _sender, const gchar* state, gpointer* _data) {
	GDBusConnection * _connection;
	const gchar * _path;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_connection = _data[1];
	_path = _data[2];
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (state));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "net.connman.Manager", "StateChanged", _arguments, NULL);
}


guint zeitgeist_connman_manager_dbus_register_object (gpointer object, GDBusConnection* connection, const gchar* path, GError** error) {
	guint result;
	gpointer *data;
	data = g_new (gpointer, 3);
	data[0] = g_object_ref (object);
	data[1] = g_object_ref (connection);
	data[2] = g_strdup (path);
	result = g_dbus_connection_register_object (connection, path, (GDBusInterfaceInfo *) (&_zeitgeist_connman_manager_dbus_dbus_interface_info), &_zeitgeist_connman_manager_dbus_dbus_interface_vtable, data, _zeitgeist_connman_manager_dbus_unregister_object, error);
	if (!result) {
		return 0;
	}
	g_signal_connect (object, "state-changed", (GCallback) _dbus_zeitgeist_connman_manager_dbus_state_changed, data);
	return result;
}


static void _zeitgeist_connman_manager_dbus_unregister_object (gpointer user_data) {
	gpointer* data;
	data = user_data;
	g_signal_handlers_disconnect_by_func (data[0], _dbus_zeitgeist_connman_manager_dbus_state_changed, data);
	g_object_unref (data[0]);
	g_object_unref (data[1]);
	g_free (data[2]);
	g_free (data);
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}



