cdrom.h
branchtrunk
changeset 0 d85c12073dea
child 2 6bcb44b9edb1
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/cdrom.h	Sat Dec 29 15:22:32 2007 +0100
     1.3 @@ -0,0 +1,39 @@
     1.4 +/* cdrom.h
     1.5 +Copyright (c) 2000-2002 Craig Condit, Stefan Hülswitt.
     1.6 +
     1.7 +Redistribution and use in source and binary forms, with or without
     1.8 +modification, are permitted provided that the following conditions are met: 
     1.9 +
    1.10 +1. Redistributions of source code must retain the above copyright notice,
    1.11 +   this list of conditions and the following disclaimer. 
    1.12 +2. Redistributions in binary form must reproduce the above copyright notice,
    1.13 +   this list of conditions and the following disclaimer in the documentation
    1.14 +   and/or other materials provided with the distribution. 
    1.15 +
    1.16 +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
    1.17 +OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1.18 +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    1.19 +DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
    1.20 +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    1.21 +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    1.22 +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
    1.23 +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    1.24 +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    1.25 +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.26 +SUCH DAMAGE.
    1.27 +*/
    1.28 +
    1.29 +#ifndef _CDBACKUP_CDROM_H
    1.30 +#define _CDBACKUP_CDROM_H
    1.31 +
    1.32 +extern struct toc_entry *toc;
    1.33 +extern long long cd_used, cd_avail;
    1.34 +
    1.35 +int open_cdr(char *device);
    1.36 +void close_cdr(int cd_fd);
    1.37 +int full_read(int fd, void *buf, int count);
    1.38 +int read_toc(int cd_fd, int trackinfos);
    1.39 +void free_toc();
    1.40 +void print_space();
    1.41 +
    1.42 +#endif