peer to peer dbus support added
[platform/upstream/libgsignon-glib.git] / libsignon-glib / signon-errors.c
1 /* vi: set et sw=4 ts=4 cino=t0,(0: */
2 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 /*
4  * This file is part of libsignon-glib
5  *
6  * Copyright (C) 2009-2010 Nokia Corporation.
7  * Copyright (C) 2012 Canonical Ltd.
8  * Copyright (C) 2012 Intel Corporation.
9  *
10  * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
11  * Contact: Jussi Laako <jussi.laako@linux.intel.com>
12  *
13  * This library is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU Lesser General Public License
15  * version 2.1 as published by the Free Software Foundation.
16  *
17  * This library is distributed in the hope that it will be useful, but
18  * WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  * Lesser General Public License for more details.
21  *
22  * You should have received a copy of the GNU Lesser General Public
23  * License along with this library; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25  * 02110-1301 USA
26  */
27
28 #include "signon-errors.h"
29 #include "signon-enum-types.h"
30 #include "signon-internals.h"
31 #include <gio/gio.h>
32
33 /**
34  * SECTION:signon-errors
35  * @title: SignonError
36  * @short_description: Possible errors from Signon.
37  *
38  * An enumeration of errors that are possible from Signon.
39  */
40 #define SIGNON_ERROR_PREFIX SIGNOND_SERVICE_PREFIX ".Error"
41
42 #include "signon-errors-map.c"
43
44 GQuark signon_error_quark (void)
45 {
46     static volatile gsize quark = 0;
47
48     g_dbus_error_register_error_domain ("gsignond",
49                                         &quark,
50                                         signon_error_entries,
51                                         G_N_ELEMENTS (signon_error_entries));
52     return (GQuark) quark;
53 }