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_TRACK_IMAGE_H_ 32 #define _BURN_TRACK_IMAGE_H_ 33 34 #include <glib-object.h> 35 36 #include <brasero-enums.h> 37 #include <brasero-track.h> 38 39 G_BEGIN_DECLS 40 41 #define BRASERO_TYPE_TRACK_IMAGE (brasero_track_image_get_type ()) 42 #define BRASERO_TRACK_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BRASERO_TYPE_TRACK_IMAGE, BraseroTrackImage)) 43 #define BRASERO_TRACK_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BRASERO_TYPE_TRACK_IMAGE, BraseroTrackImageClass)) 44 #define BRASERO_IS_TRACK_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BRASERO_TYPE_TRACK_IMAGE)) 45 #define BRASERO_IS_TRACK_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BRASERO_TYPE_TRACK_IMAGE)) 46 #define BRASERO_TRACK_IMAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BRASERO_TYPE_TRACK_IMAGE, BraseroTrackImageClass)) 47 48 typedef struct _BraseroTrackImageClass BraseroTrackImageClass; 49 typedef struct _BraseroTrackImage BraseroTrackImage; 50 51 struct _BraseroTrackImageClass 52 { 53 BraseroTrackClass parent_class; 54 55 BraseroBurnResult (*set_source) (BraseroTrackImage *track, 56 const gchar *image, 57 const gchar *toc, 58 BraseroImageFormat format); 59 60 BraseroBurnResult (*set_block_num) (BraseroTrackImage *track, 61 goffset blocks); 62 }; 63 64 struct _BraseroTrackImage 65 { 66 BraseroTrack parent_instance; 67 }; 68 69 GType brasero_track_image_get_type (void) G_GNUC_CONST; 70 71 BraseroTrackImage * 72 brasero_track_image_new (void); 73 74 BraseroBurnResult 75 brasero_track_image_set_source (BraseroTrackImage *track, 76 const gchar *image, 77 const gchar *toc, 78 BraseroImageFormat format); 79 80 BraseroBurnResult 81 brasero_track_image_set_block_num (BraseroTrackImage *track, 82 goffset blocks); 83 84 gchar * 85 brasero_track_image_get_source (BraseroTrackImage *track, 86 gboolean uri); 87 88 gchar * 89 brasero_track_image_get_toc_source (BraseroTrackImage *track, 90 gboolean uri); 91 92 BraseroImageFormat 93 brasero_track_image_get_format (BraseroTrackImage *track); 94 95 gboolean 96 brasero_track_image_need_byte_swap (BraseroTrackImage *track); 97 98 G_END_DECLS 99 100 #endif /* _BURN_TRACK_IMAGE_H_ */ 101