XMMS2
error.c
Go to the documentation of this file.
1 /* XMMS2 - X Music Multiplexer System
2  * Copyright (C) 2003-2011 XMMS2 Team
3  *
4  * PLUGINS ARE NOT CONSIDERED TO BE DERIVED WORK !!!
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  */
16 
17 
18 /**
19  * @file
20  * Error
21  *
22  */
23 
24 #include <glib.h>
25 #include <xmms/xmms_error.h>
26 
27 /** @defgroup Error Error
28  * @ingroup XMMSServer
29  * @brief Error reporting
30  * @{
31  */
32 
33 
34 /**
35  * Get the human readable error
36  */
37 const gchar *
39 {
40  g_return_val_if_fail (err, NULL);
41 
42  return err->message;
43 }
44 
45 /** @} */
const gchar * xmms_error_message_get(xmms_error_t *err)
Get the human readable error.
Definition: error.c:38
G_BEGIN_DECLS struct xmms_error_St xmms_error_t