Commit Graph

481 Commits

Author SHA1 Message Date
rocky
d9e59ac065 LIBCDIO_CONFIG_H -> EXTERNAL_LIBCDIO_CONFIG_H so we don't get conflicting
includes with the local config.h.
2006-01-23 20:47:33 +00:00
rocky
68a10e4b57 Some small corrections to comments. 2006-01-23 20:33:42 +00:00
rocky
854636c5d9 Move some more #defines into an enumeration. 2006-01-23 20:30:28 +00:00
rocky
6a83b97a27 read.h needs <sys/types.h> Add it into cdio_config.h and include only
once.  Fixed based on observation and suggestion of Steve Schultz.
2006-01-21 12:02:55 +00:00
rocky
03b6269ee1 Use exception handling. Set some default parameters like number of blocks=1. 2006-01-18 21:31:37 +00:00
rocky
83cde259ec Add a default value for drive paramater of CloseTray(). 2006-01-18 21:01:59 +00:00
rocky
f337b18d7d Some typos. 2006-01-17 12:53:41 +00:00
rocky
1736ea9c4e Went the subclassed exception route (at the expense of lots of extra
code and possibly extra maintenance). It will match the Python
interface and it's I guess what Stroustrup recommends.
2006-01-17 02:09:32 +00:00
rocky
004152ec29 Convert routines in device.hpp into raising an exception rather than
giving a return code. Sort of a test. More may follow.
2006-01-15 10:39:15 +00:00
rocky
5ac663c6a2 Add cdio_driver_return_code_to_str() to give a string interpretation
of a driver return code.
2006-01-15 01:26:50 +00:00
rocky
f045387b19 Document behavior of eject and cdio_open* when no device is given. 2006-01-14 10:09:55 +00:00
rocky
f9e4c5149c Doxygen lint to change #define to \#define in comments.
Add more enumerations.
2006-01-14 09:44:53 +00:00
rocky
5796ff7478 #define mistake -- caught by SWIG, believe it or not. 2005-11-29 07:16:33 +00:00
rocky
4f84c6f31a Forgot to include mmc.hpp 2005-11-29 03:56:26 +00:00
rocky
baf2516278 Add C++ wrapper routines for MMC commands inside CdioDevice class.
Some comments/code in sample programs gone over and new onse added for
libcdio++.
2005-11-14 01:15:33 +00:00
rocky
91147fd391 include/cdio++ Add pre- and post- increment/decrement operators for
libcdio enums that it makes sense to iterate over.

example/C++/OO/*: use these
example/*: match up C and C++ programs better.
2005-11-11 12:26:57 +00:00
rocky
edfc03ac78 *** empty log message *** 2005-11-10 11:23:42 +00:00
rocky
d7dd4a6c8a First cut at a C++ wrapper for libcdio libcdio++. What's not done are
audio and MMC commands. No doubt it may be a little rough and I expect
further changes.
2005-11-10 11:11:15 +00:00
rocky
d035ad1221 add read_sector{s}
cdtext.h: Small typo.
2005-11-10 00:44:40 +00:00
rocky
6f81e9252b Add interface to eject CD-ROM by device name.
eject.c: new routine to test/show this.
example/*.c iso2.cpp: Note in comment allowance of an optional argument.
2005-11-07 07:44:00 +00:00
rocky
f0e815c967 Small typos. 2005-11-06 22:50:37 +00:00
rocky
33b8449e7e More separation between posix_mode_t and mode_t. 2005-11-06 20:02:39 +00:00
rocky
18e8567d8a posix_mode_t -> mode_t 2005-11-06 19:26:12 +00:00
rocky
00fba6a2c0 Return type of iso9660_get_posix_mode should be mode_t (the OS-specific
version), not posix_mode_t (cdio's internally consistent version.
2005-11-06 19:15:43 +00:00
rocky
f7bd8503b6 I think mode_t (not posix_mode_t) is correct here. The goal is to use
in normal OS file operations.
2005-11-06 19:12:35 +00:00
rocky
6e4743c734 Break out POSIX-like definitions to posix.h
Add ISO9660 routines to convert to mode_t
Record whether XA or not in iso9660_stat_t.
And other definition shifting around.
2005-11-06 00:39:37 +00:00
rocky
765b1529ea A couple of corrections on udf_get_file_length(). 2005-11-02 03:49:15 +00:00
rocky
78883887df Add routine to get file length.
Fix bug in retrieving dirent for root.
Reduce overhead in udf_get_link_count()
2005-11-02 03:42:49 +00:00
rocky
e9851bf3a3 udf_find_file -> udf_fopen and made closer to fopen(). It also
simplifies things a little bit. Start testing.
2005-11-01 13:07:01 +00:00
rocky
00a3010210 Remove extraneous parameter on udf_opendir(). 2005-11-01 03:21:04 +00:00
rocky
7de9d148bf Rename some functions to be more like POSIX file reading, i.e. add
udf_opendir() and udf_readdir(). udf_file_entry_t -> udf_dirent_t.
2005-11-01 03:14:49 +00:00
rocky
8524d367b3 udf_times_to_stamp -> udf_timespec_to_stamp 2005-10-30 14:10:44 +00:00
rocky
8555f75652 Break off udf_file routines from udf.h 2005-10-30 07:36:15 +00:00
rocky
9ec9c5a991 Break of file routines into udf_file.{c,h}
udf1: Add link count
2005-10-30 07:35:36 +00:00
rocky
17de10953a Fill out file modes better and clean up interface more by trying to
funnel into POSIX file mode_t. FIXME: something needs to be done to
merge ISO9660 interfaces and UDF and probably the right thing is to
make it look like POSIX. Would be nice if there were a library
e.g. from GNU fileutils I could use to help.
2005-10-30 05:43:01 +00:00
rocky
031b7199e9 Add more access functions. 2005-10-29 14:43:50 +00:00
rocky
df6402a4fd OS/X's linker does not permit common symbols in shared libs. 2005-10-29 03:43:14 +00:00
rocky
5583cbccd7 More documentation of ecma 167. Some fields changed names. More
#defines removed/replaced by enum type and variables.
2005-10-27 11:18:56 +00:00
rocky
8881e6b50d File entry update fixed on udf_get_next().
More access functions added to return a UDF file entry
and to interpret a permission string.
2005-10-27 01:23:48 +00:00
rocky
401cb0f35a Typo. 2005-10-26 23:55:02 +00:00
rocky
645cbacbc2 Add some UDF time routines and time-conversion routines.
Note: udf_get_next() needs to advance file entry info
2005-10-26 02:05:53 +00:00
rocky
d10ea87088 Add routine to get volumeset id 2005-10-25 13:19:05 +00:00
rocky
fcd818f4ba Add silly volume identifier. More #defines removed in favor of enums. 2005-10-25 03:13:13 +00:00
rocky
b0306c811e UDF file is now opaque. Access routines then added.
Note: there are valgrind and free() errors that need going over.
2005-10-24 10:14:57 +00:00
rocky
e9be12e7e5 First inkling of code for UDF support. 2005-10-24 03:12:30 +00:00
rocky
50ad6d7559 udf.h: Mostly add a couple more routines and more fields in udf_file_t
ecma_167.h: more udf_ prefixes, add extern debugger symbols.
2005-10-21 12:33:46 +00:00
rocky
23f32e8757 Minor comment change. 2005-10-21 11:51:42 +00:00
rocky
b66cccbf43 Remove some #defines covered by enums. 2005-10-21 11:46:13 +00:00
rocky
7f4e8140ae Turn one more set of #define into an enum 2005-10-21 11:27:09 +00:00
rocky
fa0848bf90 Try to regularize naming better. More mmc_ -> cdio_mmc_
Add more debug variables to be able to get at enum values in a debugger.
2005-10-21 11:13:54 +00:00