1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /*
3  * Libbrasero-burn
4  * Copyright (C) Philippe Rouquier 2005-2009 <bonfire-app@wanadoo.fr>
5  *
6  * Libbrasero-burn is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * The Libbrasero-burn authors hereby grant permission for non-GPL compatible
12  * GStreamer plugins to be used and distributed together with GStreamer
13  * and Libbrasero-burn. This permission is above and beyond the permissions granted
14  * by the GPL license by which Libbrasero-burn is covered. If you modify this code
15  * you may extend this exception to your version of the code, but you are not
16  * obligated to do so. If you do not wish to do so, delete this exception
17  * statement from your version.
18  *
19  * Libbrasero-burn is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22  * GNU Library General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License
25  * along with this program; if not, write to:
26  * 	The Free Software Foundation, Inc.,
27  * 	51 Franklin Street, Fifth Floor
28  * 	Boston, MA  02110-1301, USA.
29  */
30 
31 #ifndef _BRASERO_ERROR_H_
32 #define _BRASERO_ERROR_H_
33 
34 #include <glib.h>
35 
36 G_BEGIN_DECLS
37 
38 typedef enum {
39 	BRASERO_BURN_ERROR_NONE,
40 	BRASERO_BURN_ERROR_GENERAL,
41 
42 	BRASERO_BURN_ERROR_PLUGIN_MISBEHAVIOR,
43 
44 	BRASERO_BURN_ERROR_SLOW_DMA,
45 	BRASERO_BURN_ERROR_PERMISSION,
46 	BRASERO_BURN_ERROR_DRIVE_BUSY,
47 	BRASERO_BURN_ERROR_DISK_SPACE,
48 
49 	BRASERO_BURN_ERROR_EMPTY,
50 	BRASERO_BURN_ERROR_INPUT_INVALID,
51 
52 	BRASERO_BURN_ERROR_OUTPUT_NONE,
53 
54 	BRASERO_BURN_ERROR_FILE_INVALID,
55 	BRASERO_BURN_ERROR_FILE_FOLDER,
56 	BRASERO_BURN_ERROR_FILE_PLAYLIST,
57 	BRASERO_BURN_ERROR_FILE_NOT_FOUND,
58 	BRASERO_BURN_ERROR_FILE_NOT_LOCAL,
59 
60 	BRASERO_BURN_ERROR_WRITE_MEDIUM,
61 	BRASERO_BURN_ERROR_WRITE_IMAGE,
62 
63 	BRASERO_BURN_ERROR_IMAGE_INVALID,
64 	BRASERO_BURN_ERROR_IMAGE_JOLIET,
65 	BRASERO_BURN_ERROR_IMAGE_LAST_SESSION,
66 
67 	BRASERO_BURN_ERROR_MEDIUM_NONE,
68 	BRASERO_BURN_ERROR_MEDIUM_INVALID,
69 	BRASERO_BURN_ERROR_MEDIUM_SPACE,
70 	BRASERO_BURN_ERROR_MEDIUM_NO_DATA,
71 	BRASERO_BURN_ERROR_MEDIUM_NOT_WRITABLE,
72 	BRASERO_BURN_ERROR_MEDIUM_NOT_REWRITABLE,
73 	BRASERO_BURN_ERROR_MEDIUM_NEED_RELOADING,
74 
75 	BRASERO_BURN_ERROR_BAD_CHECKSUM,
76 
77 	BRASERO_BURN_ERROR_MISSING_APP_AND_PLUGIN,
78 
79 	/* these are not necessarily error */
80 	BRASERO_BURN_WARNING_CHECKSUM,
81 	BRASERO_BURN_WARNING_INSERT_AFTER_COPY,
82 
83 	BRASERO_BURN_ERROR_TMP_DIRECTORY,
84 	BRASERO_BURN_ERROR_ENCRYPTION_KEY
85 } BraseroBurnError;
86 
87 /**
88  * Error handling and defined return values
89  */
90 
91 GQuark brasero_burn_quark (void);
92 
93 #define BRASERO_BURN_ERROR				\
94 	brasero_burn_quark()
95 
96 G_END_DECLS
97 
98 #endif /* _BRASERO_ERROR_H_ */
99 
100