scsi-mmc1.h 3.07 KB
Newer Older
1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2
/*
3
 * Libbrasero-media
4 5
 * Copyright (C) Philippe Rouquier 2005-2009 <bonfire-app@wanadoo.fr>
 *
6
 * Libbrasero-media is free software; you can redistribute it and/or modify
7 8 9
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (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 14
 * and Libbrasero-media. This permission is above and beyond the permissions granted
 * by the GPL license by which Libbrasero-media is covered. If you modify this code
15 16 17
 * you may extend this exception to your version of the code, but you are not
 * obligated to do so. If you do not wish to do so, delete this exception
 * statement from your version.
18
 * 
19
 * Libbrasero-media is distributed in the hope that it will be useful,
20 21 22 23 24
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Library General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
25 26 27 28
 * along with this program; if not, write to:
 * 	The Free Software Foundation, Inc.,
 * 	51 Franklin Street, Fifth Floor
 * 	Boston, MA  02110-1301, USA.
29 30
 */

31 32 33 34
#include <glib.h>

#include "scsi-base.h"
#include "scsi-device.h"
35
#include "scsi-error.h"
36
#include "scsi-read-cd.h"
37 38
#include "scsi-read-disc-info.h"
#include "scsi-read-toc-pma-atip.h"
Philippe Rouquier's avatar
Philippe Rouquier committed
39
#include "scsi-read-track-information.h"
40
#include "scsi-mech-status.h"
41 42 43 44 45 46 47

#ifndef _BURN_MMC1_H
#define _BURN_MMC1_H

G_BEGIN_DECLS

BraseroScsiResult
48
brasero_mmc1_read_disc_information_std (BraseroDeviceHandle *handle,
49 50 51 52 53
					BraseroScsiDiscInfoStd **info_return,
					int *size,
					BraseroScsiErrCode *error);

BraseroScsiResult
54
brasero_mmc1_read_toc_formatted (BraseroDeviceHandle *handle,
55 56 57 58
				 int track_num,
				 BraseroScsiFormattedTocData **data,
				 int *size,
				 BraseroScsiErrCode *error);
59
BraseroScsiResult
60
brasero_mmc1_read_toc_raw (BraseroDeviceHandle *handle,
61 62 63 64 65
			   int session_num,
			   BraseroScsiRawTocData **data,
			   int *size,
			   BraseroScsiErrCode *error);
BraseroScsiResult
66
brasero_mmc1_read_atip (BraseroDeviceHandle *handle,
67 68
			BraseroScsiAtipData **data,
			int *size,
69
			BraseroScsiErrCode *error);
70

71
BraseroScsiResult
72
brasero_mmc1_read_track_info (BraseroDeviceHandle *handle,
73 74
			      int track_num,
			      BraseroScsiTrackInfo *track_info,
75
			      int *size,
76 77
			      BraseroScsiErrCode *error);

78 79 80 81 82 83 84 85 86 87 88
BraseroScsiResult
brasero_mmc1_read_block (BraseroDeviceHandle *handle,
			 gboolean user_data,
			 BraseroScsiBlockType type,
			 BraseroScsiBlockHeader header,
			 BraseroScsiBlockSubChannel channel,
			 int start,
			 int size,
			 unsigned char *buffer,
			 int buffer_len,
			 BraseroScsiErrCode *error);
89 90 91 92
BraseroScsiResult
brasero_mmc1_mech_status (BraseroDeviceHandle *handle,
			  BraseroScsiMechStatusHdr *hdr,
			  BraseroScsiErrCode *error);
93

94 95 96 97 98
G_END_DECLS

#endif /* _BURN_MMC1_H */