[BACK]Return to extern.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / cdio

Annotation of src/usr.bin/cdio/extern.h, Revision 1.5

1.1       espie       1: /* $OpenBSD $*/
                      2: /*
                      3:  * Copyright (c) 2002 Marc Espie.
                      4:  *
                      5:  * Redistribution and use in source and binary forms, with or without
                      6:  * modification, are permitted provided that the following conditions
                      7:  * are met:
                      8:  * 1. Redistributions of source code must retain the above copyright
                      9:  *    notice, this list of conditions and the following disclaimer.
                     10:  * 2. Redistributions in binary form must reproduce the above copyright
                     11:  *    notice, this list of conditions and the following disclaimer in the
                     12:  *    documentation and/or other materials provided with the distribution.
                     13:  *
                     14:  * THIS SOFTWARE IS PROVIDED BY THE OPENBSD PROJECT AND CONTRIBUTORS
                     15:  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
                     16:  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
                     17:  * A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OPENBSD
                     18:  * PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
                     19:  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
                     20:  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
                     21:  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
                     22:  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
                     23:  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
                     24:  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                     25:  */
                     26:
1.4       mjc        27: #include <sys/queue.h>
                     28:
1.1       espie      29: struct cd_toc_entry;
1.4       mjc        30: struct track_info {
                     31:        off_t sz;
                     32:        u_int blklen;
                     33:        char *file;
                     34:        SLIST_ENTRY(track_info) track_list;
                     35:        char type;
                     36: };
                     37: SLIST_HEAD(track_head, track_info) tracks;
1.1       espie      38:
                     39: extern unsigned long   entry2time(struct cd_toc_entry *);
                     40: extern unsigned long   entry2frames(struct cd_toc_entry *);
1.4       mjc        41: extern int              open_cd(char *, int);
1.1       espie      42: extern char **                 cddb(const char *, int, struct cd_toc_entry *, char *);
1.2       espie      43: extern unsigned long   cddb_discid(int, struct cd_toc_entry *);
1.1       espie      44: extern void            free_names(char **);
1.3       mjc        45: extern int             blank(void);
                     46: extern int             unit_ready(void);
                     47: extern int             synchronize_cache(void);
                     48: extern int             close_session(void);
1.5     ! mjc        49: extern int             get_disc_size(off_t *);
1.3       mjc        50: extern int             get_nwa(int *);
1.4       mjc        51: extern int             writetao(struct track_head *);
                     52: extern int             writetrack(struct track_info *);
1.3       mjc        53: extern int             mode_sense_write(unsigned char []);
                     54: extern int             mode_select_write(unsigned char []);
1.1       espie      55:
                     56: #define VERSION "2.1"
1.5     ! mjc        57: #define WAVHDRLEN 44