diff options
author | pixel <pixel> | 2003-10-12 05:15:00 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-10-12 05:15:00 +0000 |
commit | 7787631c6ee37a489732c95cb0864422e3a3bdd1 (patch) | |
tree | 4f6374a3dcc58661ea7b116e2b87cdf84e14e414 /includes/cdreader.h | |
parent | 7cf5187c0a8cedba390a5455b63ed4ecf867be32 (diff) |
AT LAST!!!
Windows 2k/XP CD reading works using raw ioctls!!!!
HURRAY!!!!!!!!
Diffstat (limited to 'includes/cdreader.h')
-rw-r--r-- | includes/cdreader.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/includes/cdreader.h b/includes/cdreader.h index 8ebe362..acf6765 100644 --- a/includes/cdreader.h +++ b/includes/cdreader.h @@ -1,11 +1,11 @@ #ifndef __CDREADER_H__ #define __CDREADER_H__ -#ifdef __cplusplus #include <sys/types.h> #include <time.h> #include <BString.h> #include <Handle.h> +#include "cdabstract.h" class cdreader : public Handle { public: @@ -15,6 +15,9 @@ class cdreader : public Handle { virtual bool CanWrite() const; virtual bool CanRead() const; virtual bool CanSeek() const; +#if defined (_MSC_VER) || defined (__MINGW32__) + virtual void close() throw (GeneralException); +#endif virtual ssize_t read(void *buf, size_t count) throw (GeneralException); virtual off_t seek(off_t, int = SEEK_SET) throw (GeneralException); virtual String GetName() const; @@ -25,9 +28,9 @@ class cdreader : public Handle { private: String n; int sector; +#if defined (_MSC_VER) || defined (__MINGW32__) + HANDLE hF; +#endif }; -#else -#error This only works with a C++ compiler -#endif #endif |