|
Packit |
79f644 |
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
Packit |
79f644 |
/*
|
|
Packit |
79f644 |
* Copyright © 2017 Red Hat, Inc.
|
|
Packit |
79f644 |
*
|
|
Packit |
79f644 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
79f644 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
79f644 |
* License as published by the Free Software Foundation; either
|
|
Packit |
79f644 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
79f644 |
*
|
|
Packit |
79f644 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
79f644 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
79f644 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
79f644 |
* Lesser General Public License for more details.
|
|
Packit |
79f644 |
*
|
|
Packit |
79f644 |
* You should have received a copy of the GNU Lesser General
|
|
Packit |
79f644 |
* Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
79f644 |
*/
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#include "config.h"
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#include <gio/gio.h>
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
#include "goaidentitymanagererror.h"
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
static const GDBusErrorEntry dbus_error_entries[] =
|
|
Packit |
79f644 |
{
|
|
Packit |
79f644 |
{GOA_IDENTITY_MANAGER_ERROR_INITIALIZING, "org.gnome.Identity.Manager.Error.Initializing"},
|
|
Packit |
79f644 |
{GOA_IDENTITY_MANAGER_ERROR_IDENTITY_NOT_FOUND, "org.gnome.Identity.Manager.Error.IdentityNotFound"},
|
|
Packit |
79f644 |
{GOA_IDENTITY_MANAGER_ERROR_CREATING_IDENTITY, "org.gnome.Identity.Manager.Error.CreatingIdentity"},
|
|
Packit |
79f644 |
{GOA_IDENTITY_MANAGER_ERROR_ACCESSING_CREDENTIALS, "org.gnome.Identity.Manager.Error.AccessingCredentials"},
|
|
Packit |
79f644 |
{GOA_IDENTITY_MANAGER_ERROR_UNSUPPORTED_CREDENTIALS, "org.gnome.Identity.Manager.Error.UnsupportedCredentials"}
|
|
Packit |
79f644 |
};
|
|
Packit |
79f644 |
|
|
Packit |
79f644 |
GQuark
|
|
Packit |
79f644 |
goa_identity_manager_error_quark (void)
|
|
Packit |
79f644 |
{
|
|
Packit |
79f644 |
G_STATIC_ASSERT (G_N_ELEMENTS (dbus_error_entries) == GOA_IDENTITY_MANAGER_ERROR_NUM_ENTRIES);
|
|
Packit |
79f644 |
static volatile gsize quark_volatile = 0;
|
|
Packit |
79f644 |
g_dbus_error_register_error_domain ("goa-identity-manager-error",
|
|
Packit |
79f644 |
&quark_volatile,
|
|
Packit |
79f644 |
dbus_error_entries,
|
|
Packit |
79f644 |
G_N_ELEMENTS (dbus_error_entries));
|
|
Packit |
79f644 |
return (GQuark) quark_volatile;
|
|
Packit |
79f644 |
}
|