diff options
author | Mark Linimon <linimon@FreeBSD.org> | 2003-12-29 09:54:25 +0000 |
---|---|---|
committer | Mark Linimon <linimon@FreeBSD.org> | 2003-12-29 09:54:25 +0000 |
commit | b1ba755331d12fd3393d916075502601af5b0118 (patch) | |
tree | b0c9085161978c966d9e85517d6e2b818ecd5f81 /print/kcdlabel/files/patch-audiocd.h | |
parent | - Update to 3.7.1 (diff) |
Add two new KDE apps to deal with CDs:
kcdlabel creates covers, labels and booklets for your CD cases;
kover is a WYSIWYG CD cover printer.
PR: ports/60674, ports/60673
Submitted by: Markus Brueffer <brueffer@phoenix-systems.de>
Notes
Notes:
svn path=/head/; revision=96870
Diffstat (limited to 'print/kcdlabel/files/patch-audiocd.h')
-rw-r--r-- | print/kcdlabel/files/patch-audiocd.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/print/kcdlabel/files/patch-audiocd.h b/print/kcdlabel/files/patch-audiocd.h new file mode 100644 index 000000000000..45c723f47058 --- /dev/null +++ b/print/kcdlabel/files/patch-audiocd.h @@ -0,0 +1,27 @@ +--- kcdlabel/audiocd.h.orig Mon Dec 29 01:08:45 2003 ++++ kcdlabel/audiocd.h Mon Dec 29 02:15:45 2003 +@@ -30,7 +30,12 @@ + #include <qobject.h> + #include <qstring.h> + ++#ifdef __FreeBSD__ ++#include <sys/cdio.h> ++#define CDROM_LEADOUT 0xAA ++#else + #include <linux/cdrom.h> // specific to Linux !!! --> must be encapsulated in DEFINE IFDEF to enable compilation on other Un*x platforms... ++#endif + + /**Access all the audio CD functions and compute CDDB DiscID + *@author Pascal 'PeP' Panneels +@@ -74,7 +79,11 @@ + QString DiscID; // CDDB DiscID + int cdromfd; // device descriptor of the CDROM + unsigned int nr_tracks; // # of tracks ++#ifdef __FreeBSD__ ++ struct cd_toc_entry TOC[101]; // Table Of Content of the CD (max 99 tracks + lead-out + lead in) ++#else + struct cdrom_msf0 TOC[101]; // Table Of Content of the CD (max 99 tracks + lead-out + lead in) ++#endif + bool TOCAvailable; // true when the TOC is available + unsigned long ulDiscID; // computed disc id as an unsigned long + VectorIntType TrackOffsets; // offsets of each track |