/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _MAIN_H
#define _MAIN_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include "device.h"
extern int debug;
extern int keep_disc_open;
extern int requested_speed;
extern int simulation;
extern int verbose;
extern char *image_file;
extern char *blanking_type;
extern int audio_type;
extern int extract_track_no;
extern char *extract_file;
extern char *alt_tmp_dir;
extern char *copy_src;
extern int vol_running;
extern int device_type;
extern int write_mode;
#define TAO_MODE 0
/*
* DVD+RW is listed differently from DVD+R since DVD+RW requires
* that we format the media prior to writing, this cannot be
* done for DVD+R since it is write once media, we treat the
* media as pre-formatted.
*/
int setup_target(int flag);
int hald_running(void);
LibHalContext *attach_to_hald(void);
void info(void);
void list(void);
void write_image(void);
void blank(void);
void extract_audio(void);
void copy_cd(void);
#ifdef __cplusplus
}
#endif
#endif /* _MAIN_H */