15b289ff88e342ee6aa2b4e3ded8f62b7e72862b
[mmediamanager.git] / libmmanager / mm-error.h
blob15b289ff88e342ee6aa2b4e3ded8f62b7e72862b
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 typedef enum {
32 MM_XML_ERROR_UNSERIALIZE_FAILED,
33 MM_XML_ERROR_UNEXPECTED_EOF,
34 MM_XML_ERROR_UNEXPECTED_NODE,
35 MM_XML_ERROR_UNKNOWN_GTYPE
36 } MMXmlErrorEnum;
38 typedef enum {
39 MM_DBUS_ERROR_FAILED,
40 MM_DBUS_ERROR_BUS_UNAVAILABLE,
41 MM_DBUS_ERROR_NULL_ATTRIBUTE,
42 MM_DBUS_ERROR_REMOTE_METHOD_FAILED,
43 MM_DBUS_ERROR_SERIALIZE_FAIL,
44 MM_DBUS_ERROR_UNSERIALIZE_FAIL
45 } MMDBusErrorEnum;
47 typedef enum {
48 MM_SO_ERROR_FAILED,
49 MM_SO_ERROR_NULL_PROVIDER
50 } MMSoErrorEnum;
52 #endif /* __MM_ERROR_H__ */