Imported Upstream version 1.1.11
[platform/upstream/cdrkit.git] / wodim / wm_session.c
1 /*
2  * This file has been modified for the cdrkit suite.
3  *
4  * The behaviour and appearence of the program code below can differ to a major
5  * extent from the version distributed by the original author(s).
6  *
7  * For details, see Changelog file distributed with the cdrkit package. If you
8  * received this file from another source then ask the distributing person for
9  * a log of modifications.
10  *
11  */
12
13 /* @(#)wm_session.c     1.4 02/07/07 Copyright 1995, 1997 J. Schilling */
14 /*
15  *      CDR write method abtraction layer
16  *      session at once / disk at once writing intercace routines
17  *
18  *      Copyright (c) 1995, 1997 J. Schilling
19  */
20 /*
21  * This program is free software; you can redistribute it and/or modify
22  * it under the terms of the GNU General Public License version 2
23  * as published by the Free Software Foundation.
24  *
25  * This program is distributed in the hope that it will be useful,
26  * but WITHOUT ANY WARRANTY; without even the implied warranty of
27  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28  * GNU General Public License for more details.
29  *
30  * You should have received a copy of the GNU General Public License along with
31  * this program; see the file COPYING.  If not, write to the Free Software
32  * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
33  */
34
35 #include <mconfig.h>
36 #include <stdio.h>
37 #include <stdxlib.h>
38 #include <unixstd.h>
39 #include <standard.h>
40 #include <utypes.h>
41
42 #include <usal/scsitransp.h>
43 #include "wodim.h"
44
45 extern  int     debug;
46 extern  int     verbose;
47 extern  int     lverbose;
48
49 extern  char    *buf;                   /* The transfer buffer */
50
51 int     write_session_data(SCSI *usalp, cdr_t *dp, track_t *trackp);