/* GreeterAccountsServicePlugin.c generated by valac 0.56.18-dirty, the Vala compiler
 * generated from GreeterAccountsServicePlugin.vala, do not modify */

#include <glib-object.h>
#include <glib.h>
#include <gio/gio.h>
#include <string.h>
#include <stdlib.h>
#include "power.h"

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif

#define POWER_GREETER_TYPE_ACCOUNTS_SERVICE (power_greeter_accounts_service_get_type ())
#define POWER_GREETER_ACCOUNTS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POWER_GREETER_TYPE_ACCOUNTS_SERVICE, PowerGreeterAccountsService))
#define POWER_GREETER_IS_ACCOUNTS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POWER_GREETER_TYPE_ACCOUNTS_SERVICE))
#define POWER_GREETER_ACCOUNTS_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), POWER_GREETER_TYPE_ACCOUNTS_SERVICE, PowerGreeterAccountsServiceIface))

typedef struct _PowerGreeterAccountsService PowerGreeterAccountsService;
typedef struct _PowerGreeterAccountsServiceIface PowerGreeterAccountsServiceIface;

#define POWER_GREETER_TYPE_ACCOUNTS_SERVICE_PROXY (power_greeter_accounts_service_proxy_get_type ())
typedef GDBusProxy PowerGreeterAccountsServiceProxy;
typedef GDBusProxyClass PowerGreeterAccountsServiceProxyClass;

#define POWER_FDO_TYPE_ACCOUNTS (power_fdo_accounts_get_type ())
#define POWER_FDO_ACCOUNTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POWER_FDO_TYPE_ACCOUNTS, PowerFDOAccounts))
#define POWER_FDO_IS_ACCOUNTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POWER_FDO_TYPE_ACCOUNTS))
#define POWER_FDO_ACCOUNTS_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), POWER_FDO_TYPE_ACCOUNTS, PowerFDOAccountsIface))

typedef struct _PowerFDOAccounts PowerFDOAccounts;
typedef struct _PowerFDOAccountsIface PowerFDOAccountsIface;

#define POWER_FDO_TYPE_ACCOUNTS_PROXY (power_fdo_accounts_proxy_get_type ())
typedef GDBusProxy PowerFDOAccountsProxy;
typedef GDBusProxyClass PowerFDOAccountsProxyClass;
#define _g_free0(var) (var = (g_free (var), NULL))

struct _PowerGreeterAccountsServiceIface {
	GTypeInterface parent_iface;
	gint (*get_sleep_inactive_ac_timeout) (PowerGreeterAccountsService* self);
	void (*set_sleep_inactive_ac_timeout) (PowerGreeterAccountsService* self, gint value);
	gint (*get_sleep_inactive_ac_type) (PowerGreeterAccountsService* self);
	void (*set_sleep_inactive_ac_type) (PowerGreeterAccountsService* self, gint value);
	gint (*get_sleep_inactive_battery_timeout) (PowerGreeterAccountsService* self);
	void (*set_sleep_inactive_battery_timeout) (PowerGreeterAccountsService* self, gint value);
	gint (*get_sleep_inactive_battery_type) (PowerGreeterAccountsService* self);
	void (*set_sleep_inactive_battery_type) (PowerGreeterAccountsService* self, gint value);
};

struct _PowerFDOAccountsIface {
	GTypeInterface parent_iface;
	gchar* (*find_user_by_name) (PowerFDOAccounts* self, const gchar* username, GError** error);
};

VALA_EXTERN GType power_greeter_accounts_service_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType power_greeter_accounts_service_proxy_get_type (void) G_GNUC_CONST ;
VALA_EXTERN guint power_greeter_accounts_service_register_object (void* object,
                                                      GDBusConnection* connection,
                                                      const gchar* path,
                                                      GError** error);
VALA_EXTERN gint power_greeter_accounts_service_get_sleep_inactive_ac_timeout (PowerGreeterAccountsService* self);
VALA_EXTERN void power_greeter_accounts_service_set_sleep_inactive_ac_timeout (PowerGreeterAccountsService* self,
                                                                   gint value);
VALA_EXTERN gint power_greeter_accounts_service_get_sleep_inactive_ac_type (PowerGreeterAccountsService* self);
VALA_EXTERN void power_greeter_accounts_service_set_sleep_inactive_ac_type (PowerGreeterAccountsService* self,
                                                                gint value);
VALA_EXTERN gint power_greeter_accounts_service_get_sleep_inactive_battery_timeout (PowerGreeterAccountsService* self);
VALA_EXTERN void power_greeter_accounts_service_set_sleep_inactive_battery_timeout (PowerGreeterAccountsService* self,
                                                                        gint value);
VALA_EXTERN gint power_greeter_accounts_service_get_sleep_inactive_battery_type (PowerGreeterAccountsService* self);
VALA_EXTERN void power_greeter_accounts_service_set_sleep_inactive_battery_type (PowerGreeterAccountsService* self,
                                                                     gint value);
static GType power_greeter_accounts_service_get_type_once (void);
static void power_greeter_accounts_service_proxy_g_signal (GDBusProxy* proxy,
                                                    const gchar* sender_name,
                                                    const gchar* signal_name,
                                                    GVariant* parameters);
static gint power_greeter_accounts_service_dbus_proxy_get_sleep_inactive_ac_timeout (PowerGreeterAccountsService* self);
static void power_greeter_accounts_service_dbus_proxy_set_sleep_inactive_ac_timeout (PowerGreeterAccountsService* self,
                                                                              gint value);
static gint power_greeter_accounts_service_dbus_proxy_get_sleep_inactive_ac_type (PowerGreeterAccountsService* self);
static void power_greeter_accounts_service_dbus_proxy_set_sleep_inactive_ac_type (PowerGreeterAccountsService* self,
                                                                           gint value);
static gint power_greeter_accounts_service_dbus_proxy_get_sleep_inactive_battery_timeout (PowerGreeterAccountsService* self);
static void power_greeter_accounts_service_dbus_proxy_set_sleep_inactive_battery_timeout (PowerGreeterAccountsService* self,
                                                                                   gint value);
static gint power_greeter_accounts_service_dbus_proxy_get_sleep_inactive_battery_type (PowerGreeterAccountsService* self);
static void power_greeter_accounts_service_dbus_proxy_set_sleep_inactive_battery_type (PowerGreeterAccountsService* self,
                                                                                gint value);
static void power_greeter_accounts_service_proxy_power_greeter_accounts_service_interface_init (PowerGreeterAccountsServiceIface* iface);
static void power_greeter_accounts_service_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* power_greeter_accounts_service_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_power_greeter_accounts_service_get_sleep_inactive_ac_timeout (PowerGreeterAccountsService* self);
static GVariant* _dbus_power_greeter_accounts_service_get_sleep_inactive_ac_type (PowerGreeterAccountsService* self);
static GVariant* _dbus_power_greeter_accounts_service_get_sleep_inactive_battery_timeout (PowerGreeterAccountsService* self);
static GVariant* _dbus_power_greeter_accounts_service_get_sleep_inactive_battery_type (PowerGreeterAccountsService* self);
static gboolean power_greeter_accounts_service_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_power_greeter_accounts_service_set_sleep_inactive_ac_timeout (PowerGreeterAccountsService* self,
                                                                         GVariant* _value);
static void _dbus_power_greeter_accounts_service_set_sleep_inactive_ac_type (PowerGreeterAccountsService* self,
                                                                      GVariant* _value);
static void _dbus_power_greeter_accounts_service_set_sleep_inactive_battery_timeout (PowerGreeterAccountsService* self,
                                                                              GVariant* _value);
static void _dbus_power_greeter_accounts_service_set_sleep_inactive_battery_type (PowerGreeterAccountsService* self,
                                                                           GVariant* _value);
static void _power_greeter_accounts_service_unregister_object (gpointer user_data);
VALA_EXTERN GType power_fdo_accounts_proxy_get_type (void) G_GNUC_CONST ;
VALA_EXTERN guint power_fdo_accounts_register_object (void* object,
                                          GDBusConnection* connection,
                                          const gchar* path,
                                          GError** error);
VALA_EXTERN GType power_fdo_accounts_get_type (void) G_GNUC_CONST ;
VALA_EXTERN gchar* power_fdo_accounts_find_user_by_name (PowerFDOAccounts* self,
                                             const gchar* username,
                                             GError** error);
static GType power_fdo_accounts_get_type_once (void);
static void power_fdo_accounts_proxy_g_signal (GDBusProxy* proxy,
                                        const gchar* sender_name,
                                        const gchar* signal_name,
                                        GVariant* parameters);
static gchar* power_fdo_accounts_proxy_find_user_by_name (PowerFDOAccounts* self,
                                                   const gchar* username,
                                                   GError** error);
static void power_fdo_accounts_proxy_power_fdo_accounts_interface_init (PowerFDOAccountsIface* iface);
static void _dbus_power_fdo_accounts_find_user_by_name (PowerFDOAccounts* self,
                                                 GVariant* _parameters_,
                                                 GDBusMethodInvocation* invocation);
static void power_fdo_accounts_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* power_fdo_accounts_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 power_fdo_accounts_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 _power_fdo_accounts_unregister_object (gpointer user_data);

static const GDBusMethodInfo * const _power_greeter_accounts_service_dbus_method_info[] = {NULL};
static const GDBusSignalInfo * const _power_greeter_accounts_service_dbus_signal_info[] = {NULL};
static const GDBusPropertyInfo _power_greeter_accounts_service_dbus_property_info_sleep_inactive_ac_timeout = {-1, "SleepInactiveACTimeout", "i", G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE, NULL};
static const GDBusPropertyInfo _power_greeter_accounts_service_dbus_property_info_sleep_inactive_ac_type = {-1, "SleepInactiveACType", "i", G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE, NULL};
static const GDBusPropertyInfo _power_greeter_accounts_service_dbus_property_info_sleep_inactive_battery_timeout = {-1, "SleepInactiveBatteryTimeout", "i", G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE, NULL};
static const GDBusPropertyInfo _power_greeter_accounts_service_dbus_property_info_sleep_inactive_battery_type = {-1, "SleepInactiveBatteryType", "i", G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE, NULL};
static const GDBusPropertyInfo * const _power_greeter_accounts_service_dbus_property_info[] = {&_power_greeter_accounts_service_dbus_property_info_sleep_inactive_ac_timeout, &_power_greeter_accounts_service_dbus_property_info_sleep_inactive_ac_type, &_power_greeter_accounts_service_dbus_property_info_sleep_inactive_battery_timeout, &_power_greeter_accounts_service_dbus_property_info_sleep_inactive_battery_type, NULL};
static const GDBusInterfaceInfo _power_greeter_accounts_service_dbus_interface_info = {-1, "io.elementary.pantheon.AccountsService", (GDBusMethodInfo **) (&_power_greeter_accounts_service_dbus_method_info), (GDBusSignalInfo **) (&_power_greeter_accounts_service_dbus_signal_info), (GDBusPropertyInfo **) (&_power_greeter_accounts_service_dbus_property_info), NULL};
static const GDBusInterfaceVTable _power_greeter_accounts_service_dbus_interface_vtable = {power_greeter_accounts_service_dbus_interface_method_call, power_greeter_accounts_service_dbus_interface_get_property, power_greeter_accounts_service_dbus_interface_set_property};
static const GDBusArgInfo _power_fdo_accounts_dbus_arg_info_find_user_by_name_username = {-1, "username", "s", NULL};
static const GDBusArgInfo _power_fdo_accounts_dbus_arg_info_find_user_by_name_result = {-1, "result", "s", NULL};
static const GDBusArgInfo * const _power_fdo_accounts_dbus_arg_info_find_user_by_name_in[] = {&_power_fdo_accounts_dbus_arg_info_find_user_by_name_username, NULL};
static const GDBusArgInfo * const _power_fdo_accounts_dbus_arg_info_find_user_by_name_out[] = {&_power_fdo_accounts_dbus_arg_info_find_user_by_name_result, NULL};
static const GDBusMethodInfo _power_fdo_accounts_dbus_method_info_find_user_by_name = {-1, "FindUserByName", (GDBusArgInfo **) (&_power_fdo_accounts_dbus_arg_info_find_user_by_name_in), (GDBusArgInfo **) (&_power_fdo_accounts_dbus_arg_info_find_user_by_name_out), NULL};
static const GDBusMethodInfo * const _power_fdo_accounts_dbus_method_info[] = {&_power_fdo_accounts_dbus_method_info_find_user_by_name, NULL};
static const GDBusSignalInfo * const _power_fdo_accounts_dbus_signal_info[] = {NULL};
static const GDBusPropertyInfo * const _power_fdo_accounts_dbus_property_info[] = {NULL};
static const GDBusInterfaceInfo _power_fdo_accounts_dbus_interface_info = {-1, "org.freedesktop.Accounts", (GDBusMethodInfo **) (&_power_fdo_accounts_dbus_method_info), (GDBusSignalInfo **) (&_power_fdo_accounts_dbus_signal_info), (GDBusPropertyInfo **) (&_power_fdo_accounts_dbus_property_info), NULL};
static const GDBusInterfaceVTable _power_fdo_accounts_dbus_interface_vtable = {power_fdo_accounts_dbus_interface_method_call, power_fdo_accounts_dbus_interface_get_property, power_fdo_accounts_dbus_interface_set_property};

gint
power_greeter_accounts_service_get_sleep_inactive_ac_timeout (PowerGreeterAccountsService* self)
{
	PowerGreeterAccountsServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, 0);
	_iface_ = POWER_GREETER_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_sleep_inactive_ac_timeout) {
		return _iface_->get_sleep_inactive_ac_timeout (self);
	}
	return -1;
}

void
power_greeter_accounts_service_set_sleep_inactive_ac_timeout (PowerGreeterAccountsService* self,
                                                              gint value)
{
	PowerGreeterAccountsServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = POWER_GREETER_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_sleep_inactive_ac_timeout) {
		_iface_->set_sleep_inactive_ac_timeout (self, value);
	}
}

gint
power_greeter_accounts_service_get_sleep_inactive_ac_type (PowerGreeterAccountsService* self)
{
	PowerGreeterAccountsServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, 0);
	_iface_ = POWER_GREETER_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_sleep_inactive_ac_type) {
		return _iface_->get_sleep_inactive_ac_type (self);
	}
	return -1;
}

void
power_greeter_accounts_service_set_sleep_inactive_ac_type (PowerGreeterAccountsService* self,
                                                           gint value)
{
	PowerGreeterAccountsServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = POWER_GREETER_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_sleep_inactive_ac_type) {
		_iface_->set_sleep_inactive_ac_type (self, value);
	}
}

gint
power_greeter_accounts_service_get_sleep_inactive_battery_timeout (PowerGreeterAccountsService* self)
{
	PowerGreeterAccountsServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, 0);
	_iface_ = POWER_GREETER_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_sleep_inactive_battery_timeout) {
		return _iface_->get_sleep_inactive_battery_timeout (self);
	}
	return -1;
}

void
power_greeter_accounts_service_set_sleep_inactive_battery_timeout (PowerGreeterAccountsService* self,
                                                                   gint value)
{
	PowerGreeterAccountsServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = POWER_GREETER_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_sleep_inactive_battery_timeout) {
		_iface_->set_sleep_inactive_battery_timeout (self, value);
	}
}

gint
power_greeter_accounts_service_get_sleep_inactive_battery_type (PowerGreeterAccountsService* self)
{
	PowerGreeterAccountsServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, 0);
	_iface_ = POWER_GREETER_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_sleep_inactive_battery_type) {
		return _iface_->get_sleep_inactive_battery_type (self);
	}
	return -1;
}

void
power_greeter_accounts_service_set_sleep_inactive_battery_type (PowerGreeterAccountsService* self,
                                                                gint value)
{
	PowerGreeterAccountsServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = POWER_GREETER_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_sleep_inactive_battery_type) {
		_iface_->set_sleep_inactive_battery_type (self, value);
	}
}

static void
power_greeter_accounts_service_default_init (PowerGreeterAccountsServiceIface * iface,
                                             gpointer iface_data)
{
}

static GType
power_greeter_accounts_service_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (PowerGreeterAccountsServiceIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) power_greeter_accounts_service_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType power_greeter_accounts_service_type_id;
	power_greeter_accounts_service_type_id = g_type_register_static (G_TYPE_INTERFACE, "PowerGreeterAccountsService", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (power_greeter_accounts_service_type_id, G_TYPE_OBJECT);
	g_type_set_qdata (power_greeter_accounts_service_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) power_greeter_accounts_service_proxy_get_type);
	g_type_set_qdata (power_greeter_accounts_service_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "io.elementary.pantheon.AccountsService");
	g_type_set_qdata (power_greeter_accounts_service_type_id, g_quark_from_static_string ("vala-dbus-interface-info"), (void*) (&_power_greeter_accounts_service_dbus_interface_info));
	g_type_set_qdata (power_greeter_accounts_service_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) power_greeter_accounts_service_register_object);
	return power_greeter_accounts_service_type_id;
}

GType
power_greeter_accounts_service_get_type (void)
{
	static volatile gsize power_greeter_accounts_service_type_id__once = 0;
	if (g_once_init_enter (&power_greeter_accounts_service_type_id__once)) {
		GType power_greeter_accounts_service_type_id;
		power_greeter_accounts_service_type_id = power_greeter_accounts_service_get_type_once ();
		g_once_init_leave (&power_greeter_accounts_service_type_id__once, power_greeter_accounts_service_type_id);
	}
	return power_greeter_accounts_service_type_id__once;
}

G_DEFINE_TYPE_EXTENDED (PowerGreeterAccountsServiceProxy, power_greeter_accounts_service_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (POWER_GREETER_TYPE_ACCOUNTS_SERVICE, power_greeter_accounts_service_proxy_power_greeter_accounts_service_interface_init) )
static void
power_greeter_accounts_service_proxy_class_init (PowerGreeterAccountsServiceProxyClass* klass)
{
	G_DBUS_PROXY_CLASS (klass)->g_signal = power_greeter_accounts_service_proxy_g_signal;
}

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

static void
power_greeter_accounts_service_proxy_init (PowerGreeterAccountsServiceProxy* self)
{
	g_dbus_proxy_set_interface_info (G_DBUS_PROXY (self), (GDBusInterfaceInfo *) (&_power_greeter_accounts_service_dbus_interface_info));
}

static gint
power_greeter_accounts_service_dbus_proxy_get_sleep_inactive_ac_timeout (PowerGreeterAccountsService* self)
{
	GVariant *_inner_reply;
	gint _result;
	_inner_reply = g_dbus_proxy_get_cached_property ((GDBusProxy *) self, "SleepInactiveACTimeout");
	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 ("io.elementary.pantheon.AccountsService"));
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("SleepInactiveACTimeout"));
		_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) {
			gint _tmp5_ = 0;
			return _tmp5_;
		}
		g_variant_get (_reply, "(v)", &_inner_reply);
		g_variant_unref (_reply);
	}
	_result = g_variant_get_int32 (_inner_reply);
	g_variant_unref (_inner_reply);
	return _result;
}

static void
power_greeter_accounts_service_dbus_proxy_set_sleep_inactive_ac_timeout (PowerGreeterAccountsService* self,
                                                                         gint value)
{
	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 ("io.elementary.pantheon.AccountsService"));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("SleepInactiveACTimeout"));
	g_variant_builder_open (&_arguments_builder, G_VARIANT_TYPE_VARIANT);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (value));
	g_variant_builder_close (&_arguments_builder);
	_arguments = g_variant_builder_end (&_arguments_builder);
	_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Set", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
	if (!_reply) {
		return;
	}
	g_variant_unref (_reply);
}

static gint
power_greeter_accounts_service_dbus_proxy_get_sleep_inactive_ac_type (PowerGreeterAccountsService* self)
{
	GVariant *_inner_reply;
	gint _result;
	_inner_reply = g_dbus_proxy_get_cached_property ((GDBusProxy *) self, "SleepInactiveACType");
	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 ("io.elementary.pantheon.AccountsService"));
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("SleepInactiveACType"));
		_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) {
			gint _tmp6_ = 0;
			return _tmp6_;
		}
		g_variant_get (_reply, "(v)", &_inner_reply);
		g_variant_unref (_reply);
	}
	_result = g_variant_get_int32 (_inner_reply);
	g_variant_unref (_inner_reply);
	return _result;
}

static void
power_greeter_accounts_service_dbus_proxy_set_sleep_inactive_ac_type (PowerGreeterAccountsService* self,
                                                                      gint value)
{
	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 ("io.elementary.pantheon.AccountsService"));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("SleepInactiveACType"));
	g_variant_builder_open (&_arguments_builder, G_VARIANT_TYPE_VARIANT);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (value));
	g_variant_builder_close (&_arguments_builder);
	_arguments = g_variant_builder_end (&_arguments_builder);
	_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Set", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
	if (!_reply) {
		return;
	}
	g_variant_unref (_reply);
}

static gint
power_greeter_accounts_service_dbus_proxy_get_sleep_inactive_battery_timeout (PowerGreeterAccountsService* self)
{
	GVariant *_inner_reply;
	gint _result;
	_inner_reply = g_dbus_proxy_get_cached_property ((GDBusProxy *) self, "SleepInactiveBatteryTimeout");
	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 ("io.elementary.pantheon.AccountsService"));
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("SleepInactiveBatteryTimeout"));
		_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) {
			gint _tmp7_ = 0;
			return _tmp7_;
		}
		g_variant_get (_reply, "(v)", &_inner_reply);
		g_variant_unref (_reply);
	}
	_result = g_variant_get_int32 (_inner_reply);
	g_variant_unref (_inner_reply);
	return _result;
}

static void
power_greeter_accounts_service_dbus_proxy_set_sleep_inactive_battery_timeout (PowerGreeterAccountsService* self,
                                                                              gint value)
{
	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 ("io.elementary.pantheon.AccountsService"));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("SleepInactiveBatteryTimeout"));
	g_variant_builder_open (&_arguments_builder, G_VARIANT_TYPE_VARIANT);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (value));
	g_variant_builder_close (&_arguments_builder);
	_arguments = g_variant_builder_end (&_arguments_builder);
	_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Set", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
	if (!_reply) {
		return;
	}
	g_variant_unref (_reply);
}

static gint
power_greeter_accounts_service_dbus_proxy_get_sleep_inactive_battery_type (PowerGreeterAccountsService* self)
{
	GVariant *_inner_reply;
	gint _result;
	_inner_reply = g_dbus_proxy_get_cached_property ((GDBusProxy *) self, "SleepInactiveBatteryType");
	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 ("io.elementary.pantheon.AccountsService"));
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("SleepInactiveBatteryType"));
		_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) {
			gint _tmp8_ = 0;
			return _tmp8_;
		}
		g_variant_get (_reply, "(v)", &_inner_reply);
		g_variant_unref (_reply);
	}
	_result = g_variant_get_int32 (_inner_reply);
	g_variant_unref (_inner_reply);
	return _result;
}

static void
power_greeter_accounts_service_dbus_proxy_set_sleep_inactive_battery_type (PowerGreeterAccountsService* self,
                                                                           gint value)
{
	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 ("io.elementary.pantheon.AccountsService"));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("SleepInactiveBatteryType"));
	g_variant_builder_open (&_arguments_builder, G_VARIANT_TYPE_VARIANT);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (value));
	g_variant_builder_close (&_arguments_builder);
	_arguments = g_variant_builder_end (&_arguments_builder);
	_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Set", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
	if (!_reply) {
		return;
	}
	g_variant_unref (_reply);
}

static void
power_greeter_accounts_service_proxy_power_greeter_accounts_service_interface_init (PowerGreeterAccountsServiceIface* iface)
{
	iface->get_sleep_inactive_ac_timeout = power_greeter_accounts_service_dbus_proxy_get_sleep_inactive_ac_timeout;
	iface->set_sleep_inactive_ac_timeout = power_greeter_accounts_service_dbus_proxy_set_sleep_inactive_ac_timeout;
	iface->get_sleep_inactive_ac_type = power_greeter_accounts_service_dbus_proxy_get_sleep_inactive_ac_type;
	iface->set_sleep_inactive_ac_type = power_greeter_accounts_service_dbus_proxy_set_sleep_inactive_ac_type;
	iface->get_sleep_inactive_battery_timeout = power_greeter_accounts_service_dbus_proxy_get_sleep_inactive_battery_timeout;
	iface->set_sleep_inactive_battery_timeout = power_greeter_accounts_service_dbus_proxy_set_sleep_inactive_battery_timeout;
	iface->get_sleep_inactive_battery_type = power_greeter_accounts_service_dbus_proxy_get_sleep_inactive_battery_type;
	iface->set_sleep_inactive_battery_type = power_greeter_accounts_service_dbus_proxy_set_sleep_inactive_battery_type;
}

static void
power_greeter_accounts_service_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];
	g_object_unref (invocation);
}

static GVariant*
_dbus_power_greeter_accounts_service_get_sleep_inactive_ac_timeout (PowerGreeterAccountsService* self)
{
	gint result;
	GVariant* _reply;
	result = power_greeter_accounts_service_get_sleep_inactive_ac_timeout (self);
	_reply = g_variant_new_int32 (result);
	return _reply;
}

static GVariant*
_dbus_power_greeter_accounts_service_get_sleep_inactive_ac_type (PowerGreeterAccountsService* self)
{
	gint result;
	GVariant* _reply;
	result = power_greeter_accounts_service_get_sleep_inactive_ac_type (self);
	_reply = g_variant_new_int32 (result);
	return _reply;
}

static GVariant*
_dbus_power_greeter_accounts_service_get_sleep_inactive_battery_timeout (PowerGreeterAccountsService* self)
{
	gint result;
	GVariant* _reply;
	result = power_greeter_accounts_service_get_sleep_inactive_battery_timeout (self);
	_reply = g_variant_new_int32 (result);
	return _reply;
}

static GVariant*
_dbus_power_greeter_accounts_service_get_sleep_inactive_battery_type (PowerGreeterAccountsService* self)
{
	gint result;
	GVariant* _reply;
	result = power_greeter_accounts_service_get_sleep_inactive_battery_type (self);
	_reply = g_variant_new_int32 (result);
	return _reply;
}

static GVariant*
power_greeter_accounts_service_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, "SleepInactiveACTimeout") == 0) {
		return _dbus_power_greeter_accounts_service_get_sleep_inactive_ac_timeout (object);
	} else if (strcmp (property_name, "SleepInactiveACType") == 0) {
		return _dbus_power_greeter_accounts_service_get_sleep_inactive_ac_type (object);
	} else if (strcmp (property_name, "SleepInactiveBatteryTimeout") == 0) {
		return _dbus_power_greeter_accounts_service_get_sleep_inactive_battery_timeout (object);
	} else if (strcmp (property_name, "SleepInactiveBatteryType") == 0) {
		return _dbus_power_greeter_accounts_service_get_sleep_inactive_battery_type (object);
	}
	return NULL;
}

static void
_dbus_power_greeter_accounts_service_set_sleep_inactive_ac_timeout (PowerGreeterAccountsService* self,
                                                                    GVariant* _value)
{
	gint value = 0;
	value = g_variant_get_int32 (_value);
	power_greeter_accounts_service_set_sleep_inactive_ac_timeout (self, value);
}

static void
_dbus_power_greeter_accounts_service_set_sleep_inactive_ac_type (PowerGreeterAccountsService* self,
                                                                 GVariant* _value)
{
	gint value = 0;
	value = g_variant_get_int32 (_value);
	power_greeter_accounts_service_set_sleep_inactive_ac_type (self, value);
}

static void
_dbus_power_greeter_accounts_service_set_sleep_inactive_battery_timeout (PowerGreeterAccountsService* self,
                                                                         GVariant* _value)
{
	gint value = 0;
	value = g_variant_get_int32 (_value);
	power_greeter_accounts_service_set_sleep_inactive_battery_timeout (self, value);
}

static void
_dbus_power_greeter_accounts_service_set_sleep_inactive_battery_type (PowerGreeterAccountsService* self,
                                                                      GVariant* _value)
{
	gint value = 0;
	value = g_variant_get_int32 (_value);
	power_greeter_accounts_service_set_sleep_inactive_battery_type (self, value);
}

static gboolean
power_greeter_accounts_service_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];
	if (strcmp (property_name, "SleepInactiveACTimeout") == 0) {
		_dbus_power_greeter_accounts_service_set_sleep_inactive_ac_timeout (object, value);
		return TRUE;
	} else if (strcmp (property_name, "SleepInactiveACType") == 0) {
		_dbus_power_greeter_accounts_service_set_sleep_inactive_ac_type (object, value);
		return TRUE;
	} else if (strcmp (property_name, "SleepInactiveBatteryTimeout") == 0) {
		_dbus_power_greeter_accounts_service_set_sleep_inactive_battery_timeout (object, value);
		return TRUE;
	} else if (strcmp (property_name, "SleepInactiveBatteryType") == 0) {
		_dbus_power_greeter_accounts_service_set_sleep_inactive_battery_type (object, value);
		return TRUE;
	}
	return FALSE;
}

guint
power_greeter_accounts_service_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 *) (&_power_greeter_accounts_service_dbus_interface_info), &_power_greeter_accounts_service_dbus_interface_vtable, data, _power_greeter_accounts_service_unregister_object, error);
	if (!result) {
		return 0;
	}
	return result;
}

static void
_power_greeter_accounts_service_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);
}

gchar*
power_fdo_accounts_find_user_by_name (PowerFDOAccounts* self,
                                      const gchar* username,
                                      GError** error)
{
	PowerFDOAccountsIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = POWER_FDO_ACCOUNTS_GET_INTERFACE (self);
	if (_iface_->find_user_by_name) {
		return _iface_->find_user_by_name (self, username, error);
	}
	return NULL;
}

static void
power_fdo_accounts_default_init (PowerFDOAccountsIface * iface,
                                 gpointer iface_data)
{
}

static GType
power_fdo_accounts_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (PowerFDOAccountsIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) power_fdo_accounts_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType power_fdo_accounts_type_id;
	power_fdo_accounts_type_id = g_type_register_static (G_TYPE_INTERFACE, "PowerFDOAccounts", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (power_fdo_accounts_type_id, G_TYPE_OBJECT);
	g_type_set_qdata (power_fdo_accounts_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) power_fdo_accounts_proxy_get_type);
	g_type_set_qdata (power_fdo_accounts_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "org.freedesktop.Accounts");
	g_type_set_qdata (power_fdo_accounts_type_id, g_quark_from_static_string ("vala-dbus-interface-info"), (void*) (&_power_fdo_accounts_dbus_interface_info));
	g_type_set_qdata (power_fdo_accounts_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) power_fdo_accounts_register_object);
	return power_fdo_accounts_type_id;
}

GType
power_fdo_accounts_get_type (void)
{
	static volatile gsize power_fdo_accounts_type_id__once = 0;
	if (g_once_init_enter (&power_fdo_accounts_type_id__once)) {
		GType power_fdo_accounts_type_id;
		power_fdo_accounts_type_id = power_fdo_accounts_get_type_once ();
		g_once_init_leave (&power_fdo_accounts_type_id__once, power_fdo_accounts_type_id);
	}
	return power_fdo_accounts_type_id__once;
}

G_DEFINE_TYPE_EXTENDED (PowerFDOAccountsProxy, power_fdo_accounts_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (POWER_FDO_TYPE_ACCOUNTS, power_fdo_accounts_proxy_power_fdo_accounts_interface_init) )
static void
power_fdo_accounts_proxy_class_init (PowerFDOAccountsProxyClass* klass)
{
	G_DBUS_PROXY_CLASS (klass)->g_signal = power_fdo_accounts_proxy_g_signal;
}

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

static void
power_fdo_accounts_proxy_init (PowerFDOAccountsProxy* self)
{
	g_dbus_proxy_set_interface_info (G_DBUS_PROXY (self), (GDBusInterfaceInfo *) (&_power_fdo_accounts_dbus_interface_info));
}

static gchar*
power_fdo_accounts_proxy_find_user_by_name (PowerFDOAccounts* self,
                                            const gchar* username,
                                            GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	gchar* _result = NULL;
	GVariant* _tmp9_;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.freedesktop.Accounts", "FindUserByName");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (username));
	_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);
	_tmp9_ = g_variant_iter_next_value (&_reply_iter);
	_result = g_variant_dup_string (_tmp9_, NULL);
	g_variant_unref (_tmp9_);
	g_object_unref (_reply_message);
	return _result;
}

static void
power_fdo_accounts_proxy_power_fdo_accounts_interface_init (PowerFDOAccountsIface* iface)
{
	iface->find_user_by_name = power_fdo_accounts_proxy_find_user_by_name;
}

static void
_dbus_power_fdo_accounts_find_user_by_name (PowerFDOAccounts* self,
                                            GVariant* _parameters_,
                                            GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* username = NULL;
	GVariant* _tmp10_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gchar* result;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp10_ = g_variant_iter_next_value (&_arguments_iter);
	username = g_variant_dup_string (_tmp10_, NULL);
	g_variant_unref (_tmp10_);
	result = power_fdo_accounts_find_user_by_name (self, username, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	_g_free0 (username);
	;
}

static void
power_fdo_accounts_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, "FindUserByName") == 0) {
		_dbus_power_fdo_accounts_find_user_by_name (object, parameters, invocation);
	} else {
		g_object_unref (invocation);
	}
}

static GVariant*
power_fdo_accounts_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
power_fdo_accounts_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
power_fdo_accounts_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 *) (&_power_fdo_accounts_dbus_interface_info), &_power_fdo_accounts_dbus_interface_vtable, data, _power_fdo_accounts_unregister_object, error);
	if (!result) {
		return 0;
	}
	return result;
}

static void
_power_fdo_accounts_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);
}

