Imported Upstream version 1.1.11
[platform/upstream/cdrkit.git] / libusal / scsihelp.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 /* @(#)scsihelp.c       1.4 04/01/14 Copyright 2002 J. Schilling */
14 /*
15  *      usal Library
16  *      Help subsystem
17  *
18  *      Copyright (c) 2002 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 <standard.h>
38 #include <schily.h>
39
40 #include <usal/scsitransp.h>
41
42 void    __usal_help(FILE *f, char *name, char *tcomment, char *tind, char *tspec,
43                                           char *texample, BOOL mayscan, BOOL bydev);
44
45 void
46 __usal_help(FILE *f, char *name, char *tcomment, char *tind, char *tspec, 
47                           char *texample, BOOL mayscan, BOOL bydev)
48 {
49         fprintf(f, "\nTransport name:           %s\n", name);
50         fprintf(f, "Transport descr.:   %s\n", tcomment);
51         fprintf(f, "Transp. layer ind.: %s\n", tind);
52         fprintf(f, "Target specifier:   %s\n", tspec);
53         fprintf(f, "Target example:             %s\n", texample);
54         fprintf(f, "SCSI Bus scanning:  %ssupported\n", mayscan? "":"not ");
55         fprintf(f, "Open via UNIX device:       %ssupported\n", bydev? "":"not ");
56 }