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 _BURN_IMAGES_FORMAT_H
32 #define _BURN_IMAGES_FORMAT_H
33 
34 #include <glib.h>
35 
36 #include "burn-basics.h"
37 
38 G_BEGIN_DECLS
39 
40 BraseroImageFormat
41 brasero_image_format_identify_cuesheet (const gchar *path,
42 					GCancellable *cancel,
43 					GError **error);
44 
45 gchar *
46 brasero_image_format_get_default_path (BraseroImageFormat format,
47 				       const gchar *name);
48 
49 gchar *
50 brasero_image_format_fix_path_extension (BraseroImageFormat format,
51 					 gboolean check_existence,
52 					 const gchar *path);
53 gchar *
54 brasero_image_format_get_complement (BraseroImageFormat format,
55 				     const gchar *path);
56 
57 gboolean
58 brasero_image_format_get_cdrdao_size (gchar *uri,
59 				      guint64 *sectors,
60 				      guint64 *size_img,
61 				      GCancellable *cancel,
62 				      GError **error);
63 gboolean
64 brasero_image_format_get_cue_size (gchar *uri,
65 				   guint64 *blocks,
66 				   guint64 *size_img,
67 				   GCancellable *cancel,
68 				   GError **error);
69 gboolean
70 brasero_image_format_get_iso_size (gchar *uri,
71 				   guint64 *blocks,
72 				   guint64 *size_img,
73 				   GCancellable *cancel,
74 				   GError **error);
75 gboolean
76 brasero_image_format_get_clone_size (gchar *uri,
77 				     guint64 *blocks,
78 				     guint64 *size_img,
79 				     GCancellable *cancel,
80 				     GError **error);
81 
82 gboolean
83 brasero_image_format_cue_bin_byte_swap (gchar *uri,
84 					GCancellable *cancel,
85 					GError **error);
86 G_END_DECLS
87 
88 #endif /* _BURN_IMAGES_FORMAT_H */
89 
90 
91