libvisual  0.5.0
lv_error.h
1 /* Libvisual - The audio visualisation framework.
2  *
3  * Copyright (C) 2012 Libvisual team
4  * 2004-2006 Dennis Smit
5  *
6  * Authors: Dennis Smit <ds@nerds-incorporated.org>
7  * Chong Kai Xiong <kaixiong@codeleft.sg>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU Lesser General Public License as
11  * published by the Free Software Foundation; either version 2.1
12  * of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22  */
23 
24 #ifndef _LV_ERROR_H
25 #define _LV_ERROR_H
26 
27 #include <libvisual/lv_defines.h>
28 
42 typedef void (*VisErrorHandlerFunc) (const char *error_msg, void *priv);
43 
44 LV_BEGIN_DECLS
45 
53 LV_API void visual_error_raise (const char *error_msg);
54 
63 LV_API void visual_error_set_handler (VisErrorHandlerFunc handler, void *priv);
64 
65 LV_END_DECLS
66 
71 #endif /* _LV_ERROR_H */