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

#include <glib-object.h>
#include <glib.h>
#include <gio/gio.h>
#include <string.h>
#include <stdlib.h>
#include "desktop.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 PANTHEON_SHELL_PANTHEON_TYPE_ACCOUNTS_SERVICE (pantheon_shell_pantheon_accounts_service_get_type ())
#define PANTHEON_SHELL_PANTHEON_ACCOUNTS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PANTHEON_SHELL_PANTHEON_TYPE_ACCOUNTS_SERVICE, PantheonShellPantheonAccountsService))
#define PANTHEON_SHELL_PANTHEON_IS_ACCOUNTS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PANTHEON_SHELL_PANTHEON_TYPE_ACCOUNTS_SERVICE))
#define PANTHEON_SHELL_PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), PANTHEON_SHELL_PANTHEON_TYPE_ACCOUNTS_SERVICE, PantheonShellPantheonAccountsServiceIface))

typedef struct _PantheonShellPantheonAccountsService PantheonShellPantheonAccountsService;
typedef struct _PantheonShellPantheonAccountsServiceIface PantheonShellPantheonAccountsServiceIface;

#define PANTHEON_SHELL_PANTHEON_TYPE_ACCOUNTS_SERVICE_PROXY (pantheon_shell_pantheon_accounts_service_proxy_get_type ())
typedef GDBusProxy PantheonShellPantheonAccountsServiceProxy;
typedef GDBusProxyClass PantheonShellPantheonAccountsServiceProxyClass;

#define PANTHEON_SHELL_FDO_TYPE_ACCOUNTS (pantheon_shell_fdo_accounts_get_type ())
#define PANTHEON_SHELL_FDO_ACCOUNTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PANTHEON_SHELL_FDO_TYPE_ACCOUNTS, PantheonShellFDOAccounts))
#define PANTHEON_SHELL_FDO_IS_ACCOUNTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PANTHEON_SHELL_FDO_TYPE_ACCOUNTS))
#define PANTHEON_SHELL_FDO_ACCOUNTS_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), PANTHEON_SHELL_FDO_TYPE_ACCOUNTS, PantheonShellFDOAccountsIface))

typedef struct _PantheonShellFDOAccounts PantheonShellFDOAccounts;
typedef struct _PantheonShellFDOAccountsIface PantheonShellFDOAccountsIface;

#define PANTHEON_SHELL_FDO_TYPE_ACCOUNTS_PROXY (pantheon_shell_fdo_accounts_proxy_get_type ())
typedef GDBusProxy PantheonShellFDOAccountsProxy;
typedef GDBusProxyClass PantheonShellFDOAccountsProxyClass;
#define _g_free0(var) (var = (g_free (var), NULL))

struct _PantheonShellPantheonAccountsServiceIface {
	GTypeInterface parent_iface;
	gint (*get_prefers_accent_color) (PantheonShellPantheonAccountsService* self);
	void (*set_prefers_accent_color) (PantheonShellPantheonAccountsService* self, gint value);
	gint (*get_prefers_color_scheme) (PantheonShellPantheonAccountsService* self);
	void (*set_prefers_color_scheme) (PantheonShellPantheonAccountsService* self, gint value);
};

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

VALA_EXTERN GType pantheon_shell_pantheon_accounts_service_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType pantheon_shell_pantheon_accounts_service_proxy_get_type (void) G_GNUC_CONST ;
VALA_EXTERN guint pantheon_shell_pantheon_accounts_service_register_object (void* object,
                                                                GDBusConnection* connection,
                                                                const gchar* path,
                                                                GError** error);
VALA_EXTERN gint pantheon_shell_pantheon_accounts_service_get_prefers_accent_color (PantheonShellPantheonAccountsService* self);
VALA_EXTERN void pantheon_shell_pantheon_accounts_service_set_prefers_accent_color (PantheonShellPantheonAccountsService* self,
                                                                        gint value);
VALA_EXTERN gint pantheon_shell_pantheon_accounts_service_get_prefers_color_scheme (PantheonShellPantheonAccountsService* self);
VALA_EXTERN void pantheon_shell_pantheon_accounts_service_set_prefers_color_scheme (PantheonShellPantheonAccountsService* self,
                                                                        gint value);
static GType pantheon_shell_pantheon_accounts_service_get_type_once (void);
static void pantheon_shell_pantheon_accounts_service_proxy_g_signal (GDBusProxy* proxy,
                                                              const gchar* sender_name,
                                                              const gchar* signal_name,
                                                              GVariant* parameters);
static gint pantheon_shell_pantheon_accounts_service_dbus_proxy_get_prefers_accent_color (PantheonShellPantheonAccountsService* self);
static void pantheon_shell_pantheon_accounts_service_dbus_proxy_set_prefers_accent_color (PantheonShellPantheonAccountsService* self,
                                                                                   gint value);
static gint pantheon_shell_pantheon_accounts_service_dbus_proxy_get_prefers_color_scheme (PantheonShellPantheonAccountsService* self);
static void pantheon_shell_pantheon_accounts_service_dbus_proxy_set_prefers_color_scheme (PantheonShellPantheonAccountsService* self,
                                                                                   gint value);
static void pantheon_shell_pantheon_accounts_service_proxy_pantheon_shell_pantheon_accounts_service_interface_init (PantheonShellPantheonAccountsServiceIface* iface);
static void pantheon_shell_pantheon_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* pantheon_shell_pantheon_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_pantheon_shell_pantheon_accounts_service_get_prefers_accent_color (PantheonShellPantheonAccountsService* self);
static GVariant* _dbus_pantheon_shell_pantheon_accounts_service_get_prefers_color_scheme (PantheonShellPantheonAccountsService* self);
static gboolean pantheon_shell_pantheon_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_pantheon_shell_pantheon_accounts_service_set_prefers_accent_color (PantheonShellPantheonAccountsService* self,
                                                                              GVariant* _value);
static void _dbus_pantheon_shell_pantheon_accounts_service_set_prefers_color_scheme (PantheonShellPantheonAccountsService* self,
                                                                              GVariant* _value);
static void _pantheon_shell_pantheon_accounts_service_unregister_object (gpointer user_data);
VALA_EXTERN GType pantheon_shell_fdo_accounts_proxy_get_type (void) G_GNUC_CONST ;
VALA_EXTERN guint pantheon_shell_fdo_accounts_register_object (void* object,
                                                   GDBusConnection* connection,
                                                   const gchar* path,
                                                   GError** error);
VALA_EXTERN GType pantheon_shell_fdo_accounts_get_type (void) G_GNUC_CONST ;
VALA_EXTERN gchar* pantheon_shell_fdo_accounts_find_user_by_name (PantheonShellFDOAccounts* self,
                                                      const gchar* username,
                                                      GError** error);
static GType pantheon_shell_fdo_accounts_get_type_once (void);
static void pantheon_shell_fdo_accounts_proxy_g_signal (GDBusProxy* proxy,
                                                 const gchar* sender_name,
                                                 const gchar* signal_name,
                                                 GVariant* parameters);
static gchar* pantheon_shell_fdo_accounts_proxy_find_user_by_name (PantheonShellFDOAccounts* self,
                                                            const gchar* username,
                                                            GError** error);
static void pantheon_shell_fdo_accounts_proxy_pantheon_shell_fdo_accounts_interface_init (PantheonShellFDOAccountsIface* iface);
static void _dbus_pantheon_shell_fdo_accounts_find_user_by_name (PantheonShellFDOAccounts* self,
                                                          GVariant* _parameters_,
                                                          GDBusMethodInvocation* invocation);
static void pantheon_shell_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* pantheon_shell_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 pantheon_shell_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 _pantheon_shell_fdo_accounts_unregister_object (gpointer user_data);

static const GDBusMethodInfo * const _pantheon_shell_pantheon_accounts_service_dbus_method_info[] = {NULL};
static const GDBusSignalInfo * const _pantheon_shell_pantheon_accounts_service_dbus_signal_info[] = {NULL};
static const GDBusPropertyInfo _pantheon_shell_pantheon_accounts_service_dbus_property_info_prefers_accent_color = {-1, "PrefersAccentColor", "i", G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE, NULL};
static const GDBusPropertyInfo _pantheon_shell_pantheon_accounts_service_dbus_property_info_prefers_color_scheme = {-1, "PrefersColorScheme", "i", G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE, NULL};
static const GDBusPropertyInfo * const _pantheon_shell_pantheon_accounts_service_dbus_property_info[] = {&_pantheon_shell_pantheon_accounts_service_dbus_property_info_prefers_accent_color, &_pantheon_shell_pantheon_accounts_service_dbus_property_info_prefers_color_scheme, NULL};
static const GDBusInterfaceInfo _pantheon_shell_pantheon_accounts_service_dbus_interface_info = {-1, "io.elementary.pantheon.AccountsService", (GDBusMethodInfo **) (&_pantheon_shell_pantheon_accounts_service_dbus_method_info), (GDBusSignalInfo **) (&_pantheon_shell_pantheon_accounts_service_dbus_signal_info), (GDBusPropertyInfo **) (&_pantheon_shell_pantheon_accounts_service_dbus_property_info), NULL};
static const GDBusInterfaceVTable _pantheon_shell_pantheon_accounts_service_dbus_interface_vtable = {pantheon_shell_pantheon_accounts_service_dbus_interface_method_call, pantheon_shell_pantheon_accounts_service_dbus_interface_get_property, pantheon_shell_pantheon_accounts_service_dbus_interface_set_property};
static const GDBusArgInfo _pantheon_shell_fdo_accounts_dbus_arg_info_find_user_by_name_username = {-1, "username", "s", NULL};
static const GDBusArgInfo _pantheon_shell_fdo_accounts_dbus_arg_info_find_user_by_name_result = {-1, "result", "s", NULL};
static const GDBusArgInfo * const _pantheon_shell_fdo_accounts_dbus_arg_info_find_user_by_name_in[] = {&_pantheon_shell_fdo_accounts_dbus_arg_info_find_user_by_name_username, NULL};
static const GDBusArgInfo * const _pantheon_shell_fdo_accounts_dbus_arg_info_find_user_by_name_out[] = {&_pantheon_shell_fdo_accounts_dbus_arg_info_find_user_by_name_result, NULL};
static const GDBusMethodInfo _pantheon_shell_fdo_accounts_dbus_method_info_find_user_by_name = {-1, "FindUserByName", (GDBusArgInfo **) (&_pantheon_shell_fdo_accounts_dbus_arg_info_find_user_by_name_in), (GDBusArgInfo **) (&_pantheon_shell_fdo_accounts_dbus_arg_info_find_user_by_name_out), NULL};
static const GDBusMethodInfo * const _pantheon_shell_fdo_accounts_dbus_method_info[] = {&_pantheon_shell_fdo_accounts_dbus_method_info_find_user_by_name, NULL};
static const GDBusSignalInfo * const _pantheon_shell_fdo_accounts_dbus_signal_info[] = {NULL};
static const GDBusPropertyInfo * const _pantheon_shell_fdo_accounts_dbus_property_info[] = {NULL};
static const GDBusInterfaceInfo _pantheon_shell_fdo_accounts_dbus_interface_info = {-1, "org.freedesktop.Accounts", (GDBusMethodInfo **) (&_pantheon_shell_fdo_accounts_dbus_method_info), (GDBusSignalInfo **) (&_pantheon_shell_fdo_accounts_dbus_signal_info), (GDBusPropertyInfo **) (&_pantheon_shell_fdo_accounts_dbus_property_info), NULL};
static const GDBusInterfaceVTable _pantheon_shell_fdo_accounts_dbus_interface_vtable = {pantheon_shell_fdo_accounts_dbus_interface_method_call, pantheon_shell_fdo_accounts_dbus_interface_get_property, pantheon_shell_fdo_accounts_dbus_interface_set_property};

gint
pantheon_shell_pantheon_accounts_service_get_prefers_accent_color (PantheonShellPantheonAccountsService* self)
{
	PantheonShellPantheonAccountsServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, -1);
	_iface_ = PANTHEON_SHELL_PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_prefers_accent_color) {
		return _iface_->get_prefers_accent_color (self);
	}
	return -1;
}

void
pantheon_shell_pantheon_accounts_service_set_prefers_accent_color (PantheonShellPantheonAccountsService* self,
                                                                   gint value)
{
	PantheonShellPantheonAccountsServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = PANTHEON_SHELL_PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_prefers_accent_color) {
		_iface_->set_prefers_accent_color (self, value);
	}
}

gint
pantheon_shell_pantheon_accounts_service_get_prefers_color_scheme (PantheonShellPantheonAccountsService* self)
{
	PantheonShellPantheonAccountsServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, -1);
	_iface_ = PANTHEON_SHELL_PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_prefers_color_scheme) {
		return _iface_->get_prefers_color_scheme (self);
	}
	return -1;
}

void
pantheon_shell_pantheon_accounts_service_set_prefers_color_scheme (PantheonShellPantheonAccountsService* self,
                                                                   gint value)
{
	PantheonShellPantheonAccountsServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = PANTHEON_SHELL_PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_prefers_color_scheme) {
		_iface_->set_prefers_color_scheme (self, value);
	}
}

static void
pantheon_shell_pantheon_accounts_service_default_init (PantheonShellPantheonAccountsServiceIface * iface,
                                                       gpointer iface_data)
{
}

static GType
pantheon_shell_pantheon_accounts_service_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (PantheonShellPantheonAccountsServiceIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pantheon_shell_pantheon_accounts_service_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType pantheon_shell_pantheon_accounts_service_type_id;
	pantheon_shell_pantheon_accounts_service_type_id = g_type_register_static (G_TYPE_INTERFACE, "PantheonShellPantheonAccountsService", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (pantheon_shell_pantheon_accounts_service_type_id, G_TYPE_OBJECT);
	g_type_set_qdata (pantheon_shell_pantheon_accounts_service_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) pantheon_shell_pantheon_accounts_service_proxy_get_type);
	g_type_set_qdata (pantheon_shell_pantheon_accounts_service_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "io.elementary.pantheon.AccountsService");
	g_type_set_qdata (pantheon_shell_pantheon_accounts_service_type_id, g_quark_from_static_string ("vala-dbus-interface-info"), (void*) (&_pantheon_shell_pantheon_accounts_service_dbus_interface_info));
	g_type_set_qdata (pantheon_shell_pantheon_accounts_service_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) pantheon_shell_pantheon_accounts_service_register_object);
	return pantheon_shell_pantheon_accounts_service_type_id;
}

GType
pantheon_shell_pantheon_accounts_service_get_type (void)
{
	static volatile gsize pantheon_shell_pantheon_accounts_service_type_id__once = 0;
	if (g_once_init_enter (&pantheon_shell_pantheon_accounts_service_type_id__once)) {
		GType pantheon_shell_pantheon_accounts_service_type_id;
		pantheon_shell_pantheon_accounts_service_type_id = pantheon_shell_pantheon_accounts_service_get_type_once ();
		g_once_init_leave (&pantheon_shell_pantheon_accounts_service_type_id__once, pantheon_shell_pantheon_accounts_service_type_id);
	}
	return pantheon_shell_pantheon_accounts_service_type_id__once;
}

G_DEFINE_TYPE_EXTENDED (PantheonShellPantheonAccountsServiceProxy, pantheon_shell_pantheon_accounts_service_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (PANTHEON_SHELL_PANTHEON_TYPE_ACCOUNTS_SERVICE, pantheon_shell_pantheon_accounts_service_proxy_pantheon_shell_pantheon_accounts_service_interface_init) )
static void
pantheon_shell_pantheon_accounts_service_proxy_class_init (PantheonShellPantheonAccountsServiceProxyClass* klass)
{
	G_DBUS_PROXY_CLASS (klass)->g_signal = pantheon_shell_pantheon_accounts_service_proxy_g_signal;
}

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

static void
pantheon_shell_pantheon_accounts_service_proxy_init (PantheonShellPantheonAccountsServiceProxy* self)
{
	g_dbus_proxy_set_interface_info (G_DBUS_PROXY (self), (GDBusInterfaceInfo *) (&_pantheon_shell_pantheon_accounts_service_dbus_interface_info));
}

static gint
pantheon_shell_pantheon_accounts_service_dbus_proxy_get_prefers_accent_color (PantheonShellPantheonAccountsService* self)
{
	GVariant *_inner_reply;
	gint _result;
	_inner_reply = g_dbus_proxy_get_cached_property ((GDBusProxy *) self, "PrefersAccentColor");
	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 ("PrefersAccentColor"));
		_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 _tmp0_ = 0;
			return _tmp0_;
		}
		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
pantheon_shell_pantheon_accounts_service_dbus_proxy_set_prefers_accent_color (PantheonShellPantheonAccountsService* 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 ("PrefersAccentColor"));
	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
pantheon_shell_pantheon_accounts_service_dbus_proxy_get_prefers_color_scheme (PantheonShellPantheonAccountsService* self)
{
	GVariant *_inner_reply;
	gint _result;
	_inner_reply = g_dbus_proxy_get_cached_property ((GDBusProxy *) self, "PrefersColorScheme");
	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 ("PrefersColorScheme"));
		_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 _tmp1_ = 0;
			return _tmp1_;
		}
		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
pantheon_shell_pantheon_accounts_service_dbus_proxy_set_prefers_color_scheme (PantheonShellPantheonAccountsService* 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 ("PrefersColorScheme"));
	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
pantheon_shell_pantheon_accounts_service_proxy_pantheon_shell_pantheon_accounts_service_interface_init (PantheonShellPantheonAccountsServiceIface* iface)
{
	iface->get_prefers_accent_color = pantheon_shell_pantheon_accounts_service_dbus_proxy_get_prefers_accent_color;
	iface->set_prefers_accent_color = pantheon_shell_pantheon_accounts_service_dbus_proxy_set_prefers_accent_color;
	iface->get_prefers_color_scheme = pantheon_shell_pantheon_accounts_service_dbus_proxy_get_prefers_color_scheme;
	iface->set_prefers_color_scheme = pantheon_shell_pantheon_accounts_service_dbus_proxy_set_prefers_color_scheme;
}

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

static GVariant*
_dbus_pantheon_shell_pantheon_accounts_service_get_prefers_accent_color (PantheonShellPantheonAccountsService* self)
{
	gint result;
	GVariant* _reply;
	result = pantheon_shell_pantheon_accounts_service_get_prefers_accent_color (self);
	_reply = g_variant_new_int32 (result);
	return _reply;
}

static GVariant*
_dbus_pantheon_shell_pantheon_accounts_service_get_prefers_color_scheme (PantheonShellPantheonAccountsService* self)
{
	gint result;
	GVariant* _reply;
	result = pantheon_shell_pantheon_accounts_service_get_prefers_color_scheme (self);
	_reply = g_variant_new_int32 (result);
	return _reply;
}

static GVariant*
pantheon_shell_pantheon_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, "PrefersAccentColor") == 0) {
		return _dbus_pantheon_shell_pantheon_accounts_service_get_prefers_accent_color (object);
	} else if (strcmp (property_name, "PrefersColorScheme") == 0) {
		return _dbus_pantheon_shell_pantheon_accounts_service_get_prefers_color_scheme (object);
	}
	return NULL;
}

static void
_dbus_pantheon_shell_pantheon_accounts_service_set_prefers_accent_color (PantheonShellPantheonAccountsService* self,
                                                                         GVariant* _value)
{
	gint value = 0;
	value = g_variant_get_int32 (_value);
	pantheon_shell_pantheon_accounts_service_set_prefers_accent_color (self, value);
}

static void
_dbus_pantheon_shell_pantheon_accounts_service_set_prefers_color_scheme (PantheonShellPantheonAccountsService* self,
                                                                         GVariant* _value)
{
	gint value = 0;
	value = g_variant_get_int32 (_value);
	pantheon_shell_pantheon_accounts_service_set_prefers_color_scheme (self, value);
}

static gboolean
pantheon_shell_pantheon_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, "PrefersAccentColor") == 0) {
		_dbus_pantheon_shell_pantheon_accounts_service_set_prefers_accent_color (object, value);
		return TRUE;
	} else if (strcmp (property_name, "PrefersColorScheme") == 0) {
		_dbus_pantheon_shell_pantheon_accounts_service_set_prefers_color_scheme (object, value);
		return TRUE;
	}
	return FALSE;
}

guint
pantheon_shell_pantheon_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 *) (&_pantheon_shell_pantheon_accounts_service_dbus_interface_info), &_pantheon_shell_pantheon_accounts_service_dbus_interface_vtable, data, _pantheon_shell_pantheon_accounts_service_unregister_object, error);
	if (!result) {
		return 0;
	}
	return result;
}

static void
_pantheon_shell_pantheon_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*
pantheon_shell_fdo_accounts_find_user_by_name (PantheonShellFDOAccounts* self,
                                               const gchar* username,
                                               GError** error)
{
	PantheonShellFDOAccountsIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = PANTHEON_SHELL_FDO_ACCOUNTS_GET_INTERFACE (self);
	if (_iface_->find_user_by_name) {
		return _iface_->find_user_by_name (self, username, error);
	}
	return NULL;
}

static void
pantheon_shell_fdo_accounts_default_init (PantheonShellFDOAccountsIface * iface,
                                          gpointer iface_data)
{
}

static GType
pantheon_shell_fdo_accounts_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (PantheonShellFDOAccountsIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pantheon_shell_fdo_accounts_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType pantheon_shell_fdo_accounts_type_id;
	pantheon_shell_fdo_accounts_type_id = g_type_register_static (G_TYPE_INTERFACE, "PantheonShellFDOAccounts", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (pantheon_shell_fdo_accounts_type_id, G_TYPE_OBJECT);
	g_type_set_qdata (pantheon_shell_fdo_accounts_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) pantheon_shell_fdo_accounts_proxy_get_type);
	g_type_set_qdata (pantheon_shell_fdo_accounts_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "org.freedesktop.Accounts");
	g_type_set_qdata (pantheon_shell_fdo_accounts_type_id, g_quark_from_static_string ("vala-dbus-interface-info"), (void*) (&_pantheon_shell_fdo_accounts_dbus_interface_info));
	g_type_set_qdata (pantheon_shell_fdo_accounts_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) pantheon_shell_fdo_accounts_register_object);
	return pantheon_shell_fdo_accounts_type_id;
}

GType
pantheon_shell_fdo_accounts_get_type (void)
{
	static volatile gsize pantheon_shell_fdo_accounts_type_id__once = 0;
	if (g_once_init_enter (&pantheon_shell_fdo_accounts_type_id__once)) {
		GType pantheon_shell_fdo_accounts_type_id;
		pantheon_shell_fdo_accounts_type_id = pantheon_shell_fdo_accounts_get_type_once ();
		g_once_init_leave (&pantheon_shell_fdo_accounts_type_id__once, pantheon_shell_fdo_accounts_type_id);
	}
	return pantheon_shell_fdo_accounts_type_id__once;
}

G_DEFINE_TYPE_EXTENDED (PantheonShellFDOAccountsProxy, pantheon_shell_fdo_accounts_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (PANTHEON_SHELL_FDO_TYPE_ACCOUNTS, pantheon_shell_fdo_accounts_proxy_pantheon_shell_fdo_accounts_interface_init) )
static void
pantheon_shell_fdo_accounts_proxy_class_init (PantheonShellFDOAccountsProxyClass* klass)
{
	G_DBUS_PROXY_CLASS (klass)->g_signal = pantheon_shell_fdo_accounts_proxy_g_signal;
}

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

static void
pantheon_shell_fdo_accounts_proxy_init (PantheonShellFDOAccountsProxy* self)
{
	g_dbus_proxy_set_interface_info (G_DBUS_PROXY (self), (GDBusInterfaceInfo *) (&_pantheon_shell_fdo_accounts_dbus_interface_info));
}

static gchar*
pantheon_shell_fdo_accounts_proxy_find_user_by_name (PantheonShellFDOAccounts* 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* _tmp2_;
	_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);
	_tmp2_ = g_variant_iter_next_value (&_reply_iter);
	_result = g_variant_dup_string (_tmp2_, NULL);
	g_variant_unref (_tmp2_);
	g_object_unref (_reply_message);
	return _result;
}

static void
pantheon_shell_fdo_accounts_proxy_pantheon_shell_fdo_accounts_interface_init (PantheonShellFDOAccountsIface* iface)
{
	iface->find_user_by_name = pantheon_shell_fdo_accounts_proxy_find_user_by_name;
}

static void
_dbus_pantheon_shell_fdo_accounts_find_user_by_name (PantheonShellFDOAccounts* self,
                                                     GVariant* _parameters_,
                                                     GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* username = NULL;
	GVariant* _tmp3_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gchar* result;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp3_ = g_variant_iter_next_value (&_arguments_iter);
	username = g_variant_dup_string (_tmp3_, NULL);
	g_variant_unref (_tmp3_);
	result = pantheon_shell_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
pantheon_shell_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_pantheon_shell_fdo_accounts_find_user_by_name (object, parameters, invocation);
	} else {
		g_object_unref (invocation);
	}
}

static GVariant*
pantheon_shell_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)
{
	return NULL;
}

static gboolean
pantheon_shell_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)
{
	return FALSE;
}

guint
pantheon_shell_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 *) (&_pantheon_shell_fdo_accounts_dbus_interface_info), &_pantheon_shell_fdo_accounts_dbus_interface_vtable, data, _pantheon_shell_fdo_accounts_unregister_object, error);
	if (!result) {
		return 0;
	}
	return result;
}

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

