Commit Graph

430 Commits

Author SHA1 Message Date
rocky
33ae20b89d Add interfaces which allow opening a cdio object before running paranoia.
data_bigendianp is too neat to keep it private.
2005-01-22 03:43:03 +00:00
rocky
fb07d7d0fe Various doxygen improvements. 2005-01-20 04:51:14 +00:00
rocky
1b48133934 Turn a bunch of defines into an enumeration. Makes debugging a bit
nicer.
2005-01-20 04:46:25 +00:00
rocky
f7ebed2287 Add DRIVER_OP_UNINIT and change appropriate DRIVER_OP_ERROR's to
DRIVER_OP_UNINIT.
2005-01-20 00:36:38 +00:00
rocky
7796f6cce7 Try to regularize driver operation return codes via a new enumeation
return type. (I may regret this later as we return ioctl's int value
in some cases).

cdio.h: get/set_arg moved to device.
2005-01-19 09:23:24 +00:00
rocky
93d29803c0 Attempt SCSI-MMC speed setting (e.g. for M$). 2005-01-18 05:41:58 +00:00
rocky
e5bdc956e9 Add interface for setting speed and blocksize. Reinstated it in
cd-paranoia libraries and command.

Some more variable convention regularizations.
2005-01-18 00:57:19 +00:00
rocky
44b72c606c Redo bit masks for test flags. Should accomodate what is in (even if
not working) in cdparanoia.
2005-01-16 04:23:41 +00:00
rocky
069940d1a5 Remove a couple of unused SCSI fields. 2005-01-15 16:08:39 +00:00
rocky
aa50f5e09a Add regression-test mechanism. Right now we only have underrun testing.
Perhaps more later...
cd-paranoia: -x option added to specify what to test.
2005-01-15 16:05:44 +00:00
rocky
424b735b92 Add array to convert paranoia_mode_cb into a string. 2005-01-13 04:00:15 +00:00
rocky
15527b8cb1 Non-functional changes:
Small coding style changes: add _t to some types, p_/psz_ to some variables
  Update/add doxygen comments
  add missing regression test output
2005-01-12 11:34:51 +00:00
rocky
bb1bb5113d doc: add some paranoia documentation.
src: Cleaner way to get usage and allow it to be customized to a particular
     name
configure.ac: add --with-cd-paranoia-name to allow customization of the
cd-paranoia name.

More work is needed to get the binary renamed.
2005-01-11 04:00:26 +00:00
rocky
fe0fe0a17a toc.c: don't assume first sector is 1.
cdda.h: document TOC better.
p_block.c: revise getting paranoia first/last sector
2005-01-10 02:10:46 +00:00
rocky
6f7e9e182b cdio.{c,h}: moved various reading and device/driver routines out into the below
read.{c,h}: separate include for the reading routines.
disc.{c,h}: more moved here from corresponding cdio.
device.c: a place for device/driver related routines.
interface.c: break up line to make debugging easier.
2005-01-09 16:07:46 +00:00
rocky
c6e33b1a1c Put back some of the GNU/Linux-ism for detecting drive endian-ness.
The data-driven endian correction isn't working correctly.

Ultimately though this code should move down into libcdio (and get
removed from here.)
2005-01-08 20:39:40 +00:00
rocky
90f235fb44 Doxygen documentatoin on more routines. Remove some things that aren't
useable any more.
2005-01-06 23:34:13 +00:00
rocky
7a2a44a814 The first all libcdio cdda_interface. There are some gaps could be
filled.

cdda_inteface.h renamed to cdda.h

cdio_destroy moved from cdio.h to device.h
2005-01-05 04:16:11 +00:00
rocky
2c20dfb2ef Add device for drive(r)/device things. Reorganize more to pull things
out of cdio and into their respective units.
2005-01-04 10:58:03 +00:00
rocky
f226947ec6 Break out track and disc routines. (Disc needs more work)
Add more convenience track routines.
Set access-mode for image routines to be the image drivers - for uniformity.
Some name regularization.
And we're in 2005 now.
2005-01-04 04:33:36 +00:00
rocky
0538377177 Add Cdio_t, move some more stuff into track.h 2005-01-02 22:43:41 +00:00
rocky
a3c6f07673 Typo in CDIO_FRAMSIZE_RAW0 definition. 2005-01-01 14:19:19 +00:00
rocky
cc9b8fcb42 Track-related calls go here. 2004-12-31 05:48:09 +00:00
rocky
74045586bd Start to fill in cdio_get_preemphasis, cdio_get_copy_permit, and
cdio_get_channels. Internals reworked a little for this.
2004-12-31 05:47:36 +00:00
rocky
c51a6ba67e Add cd-paranoia's track flag routines: copy-permitted, pre-emphasis, channels.
Updates to drivers to set this properly is still needed.
2004-12-30 11:13:49 +00:00
rocky
0c35a965fc More integration/cleanup. Now uses cdio bytesex.h's BE/LE routines.
copystring -> strdup.

Some int's changed to track_t. But I need to be careful *not* to change
cdda_interface.h.
2004-12-19 01:43:38 +00:00
rocky
6c14d28918 BIG REORGANIZATION.
Reorganize directory structure for inclusion of cd-paranoia. Works for
GNU/Linux. Other OS's may be broken. Regression test output needs to
be adjusted too.

Move:
lib/driver (split off of lib)
lib/iso9660 (split off of lib)

Add from paranoia:
lib/cdda_interface
lib/paranoia
src/paranoia

Also made some small changes to capability indentification to show
more reading capabilties and show that.

cd-info now shows the total disc size.
2004-12-18 17:29:32 +00:00
rocky
5cfd029197 Towards getting an AIX driver working. 2004-12-15 01:45:15 +00:00
rocky
d0ec7d55fd Small typo. 2004-12-04 12:01:48 +00:00
rocky
2334c3c7cc Move scsi mmc discmode determination to scsi-mmc.
Add discmode for CD-i.
2004-12-04 11:50:40 +00:00
rocky
1ca2253b95 Fix up ability to use in C++ programs.
Add some C++ example programs to make sure those compile.
2004-11-22 01:03:52 +00:00
rocky
e28ed9bd87 configure.ac: in 72cvs now.
iso9660.{c,h}: "new" is a reserved word in C++. Don't use it as a
parameter name
2004-11-21 22:32:03 +00:00
nboullis
74a383d80e "static inline __attribute__((deprecated))" functions are not available
in standard C; only use them with GCC 3 and above, and replace them with
simple #defines for other compilers.
2004-11-15 19:41:25 +00:00
rocky
976f6a6879 rename to_bcd8 and from_bcd8 to cdio_to_bcd8 and cdio_from_bcd8.
(N. Boullis)

lib/Makefile.am: avoid non-GNU ld options when --without-versioned-libs is
in effect.
2004-11-15 01:34:09 +00:00
rocky
64f2ad383d Mostly portability issues from or inspired by mog's changes for XBOX.
image/*.c: initialize func structure to 0 (NULL).

include/cdio/*.h: add "extern C" for C++ compilations where
appropriate.
2004-10-31 06:07:26 +00:00
rocky
9cdc89f3f3 cdio.h accidently got removed. 2004-10-28 10:08:56 +00:00
rocky
6564c84523 A small change which caused a hard-to-find bug in using Joliet filenames. 2004-10-28 00:03:17 +00:00
rocky
55de6dfdeb First attempt to extent Joliet to CD reading portion. 2004-10-24 23:42:39 +00:00
rocky
780afbabfd Various portability fixes when libiconv isn't available or is broken. 2004-10-24 03:29:31 +00:00
rocky
a492bb4ab6 First cut at Joliet support for ISO 9660 images. More work is needed
to integrate this into CD reading.
2004-10-23 20:55:08 +00:00
rocky
b80d83f07b iso9660.h, iso9660_fs.c: Add iso9660_ifs_is_xa() a routine to
determine if an iso image has XA attributes.

bytesex.h and bytesex_asm.h are now public. (Down the line should use
glib though.) Package  has been revised to the move.

iso-info.c: shows XA attributes what that it is available.
2004-10-22 01:13:38 +00:00
rocky
b946c03c2a small formatting change. 2004-10-10 20:36:10 +00:00
rocky
ee39520dfc Change some void * return types to what they really are. The void *
was helping to propagate the mistake of not
exporting CdioList in ds.h.  CVS:

----------------------------------------------------------------------
include/cdio/iso9660.h lib/iso9660_fs.c CVS:
----------------------------------------------------------------------
2004-10-09 23:20:52 +00:00
rocky
0dd6c21281 Make ds.h public. It should have been that way since it *is* public.
Eventually though we'll redo things using glib and then ds.h will get
removed.
2004-10-09 03:20:28 +00:00
rocky
82e74387c6 cdtext.h: minor doxygen improvemtn
others: make "make distcheck" work again.
2004-09-05 13:03:46 +00:00
rocky
d9c63df6ce Changes to make doxygen doc better. 2004-09-04 23:49:47 +00:00
rocky
c1905e6879 configure.ac: now in 0.71cvs
*.c: lint-like changes. Tested on Sun's SUNPRO cc compiler.
     Removed feild initialization lingo (even if it is C99).
2004-09-03 23:20:11 +00:00
rocky
91af2a7906 cd-info.c: bug in DVD test.
sector.h: redo the way the dvd and cd tests work. Isn't strictl necessary, but
   this is has fewer implicit dependencies.
2004-08-30 01:01:14 +00:00
rocky
1703e7dc00 sector.h: add routines for determining if discmode is DVD or CD.
cdtext*: adjust for bigendian or not. Check for double-byte characters.

cd-info.c: new option --dvd. Don't attempt to understand DVD unless this is
           given.
2004-08-30 00:26:59 +00:00
rocky
19991ded7b add psz_ to hwinfo type.
_cdio_linux.c: go back to using SCSI MMC drive cap routine.
2004-08-27 11:53:38 +00:00