1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ 2 /* 3 * Libbrasero-media 4 * Copyright (C) Philippe Rouquier 2005-2009 <bonfire-app@wanadoo.fr> 5 * 6 * Libbrasero-media 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-media authors hereby grant permission for non-GPL compatible 12 * GStreamer plugins to be used and distributed together with GStreamer 13 * and Libbrasero-media. This permission is above and beyond the permissions granted 14 * by the GPL license by which Libbrasero-media 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-media 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 #ifdef HAVE_CONFIG_H 32 # include <config.h> 33 #endif 34 35 #include <stdio.h> 36 37 #include <glib.h> 38 39 #include "burn-volume.h" 40 #include "burn-volume-source.h" 41 42 #ifndef _BURN_ISO9660_H 43 #define _BURN_ISO9660_H 44 45 G_BEGIN_DECLS 46 47 #define ISO9660_BLOCK_SIZE 2048 48 49 typedef enum { 50 BRASERO_ISO_FLAG_NONE = 0, 51 BRASERO_ISO_FLAG_RR = 1 52 } BraseroIsoFlag; 53 54 gboolean 55 brasero_iso9660_is_primary_descriptor (const gchar *buffer, 56 GError **error); 57 58 gboolean 59 brasero_iso9660_get_size (const gchar *block, 60 gint64 *nb_blocks, 61 GError **error); 62 63 gboolean 64 brasero_iso9660_get_label (const gchar *block, 65 gchar **label, 66 GError **error); 67 68 BraseroVolFile * 69 brasero_iso9660_get_contents (BraseroVolSrc *src, 70 const gchar *block, 71 gint64 *nb_blocks, 72 GError **error); 73 74 /** 75 * Address to -1 for root 76 */ 77 GList * 78 brasero_iso9660_get_directory_contents (BraseroVolSrc *vol, 79 const gchar *vol_desc, 80 gint address, 81 GError **error); 82 83 BraseroVolFile * 84 brasero_iso9660_get_file (BraseroVolSrc *src, 85 const gchar *path, 86 const gchar *block, 87 GError **error); 88 89 G_END_DECLS 90 91 #endif /* _BURN_ISO9660_H */ 92 93 94