Merge branch 'master' into 'master'
[brasero.git] / libbrasero-media / scsi-mmc1.h
blob65389c3ae0e9d179da41a88720bec02f29d9ecd6
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>
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.
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.
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.
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.
31 #include <glib.h>
33 #include "scsi-base.h"
34 #include "scsi-device.h"
35 #include "scsi-error.h"
36 #include "scsi-read-cd.h"
37 #include "scsi-read-disc-info.h"
38 #include "scsi-read-toc-pma-atip.h"
39 #include "scsi-read-track-information.h"
40 #include "scsi-mech-status.h"
42 #ifndef _BURN_MMC1_H
43 #define _BURN_MMC1_H
45 G_BEGIN_DECLS
47 BraseroScsiResult
48 brasero_mmc1_read_disc_information_std (BraseroDeviceHandle *handle,
49 BraseroScsiDiscInfoStd **info_return,
50 int *size,
51 BraseroScsiErrCode *error);
53 BraseroScsiResult
54 brasero_mmc1_read_toc_formatted (BraseroDeviceHandle *handle,
55 int track_num,
56 BraseroScsiFormattedTocData **data,
57 int *size,
58 BraseroScsiErrCode *error);
59 BraseroScsiResult
60 brasero_mmc1_read_toc_raw (BraseroDeviceHandle *handle,
61 int session_num,
62 BraseroScsiRawTocData **data,
63 int *size,
64 BraseroScsiErrCode *error);
65 BraseroScsiResult
66 brasero_mmc1_read_atip (BraseroDeviceHandle *handle,
67 BraseroScsiAtipData **data,
68 int *size,
69 BraseroScsiErrCode *error);
71 BraseroScsiResult
72 brasero_mmc1_read_track_info (BraseroDeviceHandle *handle,
73 int track_num,
74 BraseroScsiTrackInfo *track_info,
75 int *size,
76 BraseroScsiErrCode *error);
78 BraseroScsiResult
79 brasero_mmc1_read_block (BraseroDeviceHandle *handle,
80 gboolean user_data,
81 BraseroScsiBlockType type,
82 BraseroScsiBlockHeader header,
83 BraseroScsiBlockSubChannel channel,
84 int start,
85 int size,
86 unsigned char *buffer,
87 int buffer_len,
88 BraseroScsiErrCode *error);
89 BraseroScsiResult
90 brasero_mmc1_mech_status (BraseroDeviceHandle *handle,
91 BraseroScsiMechStatusHdr *hdr,
92 BraseroScsiErrCode *error);
94 G_END_DECLS
96 #endif /* _BURN_MMC1_H */