Keep on documenting objects.
[mmediamanager.git] / libmmanager / mm-error.h
blob569cf7d34ed7cce6daf7617f60961acad4d6d07b
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 */
27 #define MM_XML_ERROR_QUARK g_quark_from_static_string ("MMXmlError")
28 #define MM_DBUS_ERROR_QUARK g_quark_from_static_string ("MMDBusError")
29 #define MM_SO_ERROR_QUARK g_quark_from_static_string ("MMSoError")
31 /**
32 * MMXmlErrorEnum:
33 * @MM_XML_ERROR_UNSERIALIZE_FAILED: An unspecified error occurred.
34 * @MM_XML_ERROR_UNEXPECTED_EOF: The XML buffer ended unexpectedly.
35 * @MM_XML_ERROR_UNEXPECTED_NODE: A node different from the expected one
36 * was found while parsing the XML buffer.
37 * @MM_XML_ERROR_UNKNOWN_GTYPE: Failed to go from XML to #GType because the
38 * type seems to be unknown.
40 * Error codes for libmmanager XML operations.
43 typedef enum {
44 MM_XML_ERROR_UNSERIALIZE_FAILED,
45 MM_XML_ERROR_UNEXPECTED_EOF,
46 MM_XML_ERROR_UNEXPECTED_NODE,
47 MM_XML_ERROR_UNKNOWN_GTYPE
48 } MMXmlErrorEnum;
50 /**
51 * MMDBusErrorEnum:
52 * @MM_DBUS_ERROR_FAILED: An unspecified error occurred.
53 * @MM_DBUS_ERROR_BUS_UNAVAILABLE: Could not connect to the session bus.
54 * @MM_DBUS_ERROR_NULL_ATTRIBUTE: Failed validating the arguments.
55 * @MM_DBUS_ERROR_REMOTE_METHOD_FAILED: A remote method failed to execute.
56 * @MM_DBUS_ERROR_SERIALIZE_FAIL: An error occurred while serializing an
57 * object.
58 * @MM_DBUS_ERROR_UNSERIALIZE_FAIL: An error occurred while unserializing an
59 * object.
61 * Error codes for libmmanager DBus operations.
64 typedef enum {
65 MM_DBUS_ERROR_FAILED,
66 MM_DBUS_ERROR_BUS_UNAVAILABLE,
67 MM_DBUS_ERROR_NULL_ATTRIBUTE,
68 MM_DBUS_ERROR_REMOTE_METHOD_FAILED,
69 MM_DBUS_ERROR_SERIALIZE_FAIL,
70 MM_DBUS_ERROR_UNSERIALIZE_FAIL
71 } MMDBusErrorEnum;
73 /**
74 * MMSoErrorEnum:
75 * @MM_SO_ERROR_FAILED: An unspecified error occurred.
76 * @MM_SO_ERROR_NULL_PROVIDER: Error while validating a provider.
78 * Error codes for libmmanager Shared Object operations.
81 typedef enum {
82 MM_SO_ERROR_FAILED,
83 MM_SO_ERROR_NULL_PROVIDER
84 } MMSoErrorEnum;
86 #endif /* __MM_ERROR_H__ */