More gtk-doc.
[mmediamanager.git] / libmmanager / mm-error.h
blob2cd6bd233a3192b3bf021c9480f99e147d0468ff
1 /* MManager - a Desktop wide manager for multimedia applications.
3 * Copyright (C) 2008 Cosimo Cecchi <cosimoc@gnome.org>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef __MM_ERROR_H__
22 #define __MM_ERROR_H__
24 #include <glib.h>
26 /* error handling */
28 /**
29 * MM_XML_ERROR_QUARK:
31 * The #GQuark used for #MMXmlErrorEnum errors.
34 #define MM_XML_ERROR_QUARK g_quark_from_static_string ("MMXmlError")
36 /**
37 * MM_DBUS_ERROR_QUARK:
39 * The #GQuark used for #MMDBusErrorEnum errors.
42 #define MM_DBUS_ERROR_QUARK g_quark_from_static_string ("MMDBusError")
44 /**
45 * MM_SO_ERROR_QUARK:
47 * The #GQuark used for #MMSoErrorEnum errors.
50 #define MM_SO_ERROR_QUARK g_quark_from_static_string ("MMSoError")
52 /**
53 * MMXmlErrorEnum:
54 * @MM_XML_ERROR_UNSERIALIZE_FAILED: An unspecified error occurred.
55 * @MM_XML_ERROR_UNEXPECTED_EOF: The XML buffer ended unexpectedly.
56 * @MM_XML_ERROR_UNEXPECTED_NODE: A node different from the expected one
57 * was found while parsing the XML buffer.
58 * @MM_XML_ERROR_UNKNOWN_GTYPE: Failed to go from XML to #GType because the
59 * type seems to be unknown.
61 * Error codes for libmmanager XML operations.
64 typedef enum {
65 MM_XML_ERROR_UNSERIALIZE_FAILED,
66 MM_XML_ERROR_UNEXPECTED_EOF,
67 MM_XML_ERROR_UNEXPECTED_NODE,
68 MM_XML_ERROR_UNKNOWN_GTYPE
69 } MMXmlErrorEnum;
71 /**
72 * MMDBusErrorEnum:
73 * @MM_DBUS_ERROR_FAILED: An unspecified error occurred.
74 * @MM_DBUS_ERROR_BUS_UNAVAILABLE: Could not connect to the session bus.
75 * @MM_DBUS_ERROR_NULL_ATTRIBUTE: Failed validating the arguments.
76 * @MM_DBUS_ERROR_REMOTE_METHOD_FAILED: A remote method failed to execute.
77 * @MM_DBUS_ERROR_SERIALIZE_FAIL: An error occurred while serializing an
78 * object.
79 * @MM_DBUS_ERROR_UNSERIALIZE_FAIL: An error occurred while unserializing an
80 * object.
82 * Error codes for libmmanager DBus operations.
85 typedef enum {
86 MM_DBUS_ERROR_FAILED,
87 MM_DBUS_ERROR_BUS_UNAVAILABLE,
88 MM_DBUS_ERROR_NULL_ATTRIBUTE,
89 MM_DBUS_ERROR_REMOTE_METHOD_FAILED,
90 MM_DBUS_ERROR_SERIALIZE_FAIL,
91 MM_DBUS_ERROR_UNSERIALIZE_FAIL
92 } MMDBusErrorEnum;
94 /**
95 * MMSoErrorEnum:
96 * @MM_SO_ERROR_FAILED: An unspecified error occurred.
97 * @MM_SO_ERROR_NULL_PROVIDER: Error while validating a provider.
99 * Error codes for libmmanager Shared Object operations.
102 typedef enum {
103 MM_SO_ERROR_FAILED,
104 MM_SO_ERROR_NULL_PROVIDER
105 } MMSoErrorEnum;
107 #endif /* __MM_ERROR_H__ */