freebsd-ports/audio/cdparanoia/files/patch-interface-cdda_interface.h
Markus Brueffer 2b26744354 - Use cdda_device_name of struct cdrom_drive to expose the path of the device
node. Previously this was only present in the Linux version and is needed for
  the upcomming update of KDE 3.5
- Bump PORTREVISION
- Take maintainership

Approved by:	maintainer
2006-01-06 18:32:01 +00:00

50 lines
1 KiB
C

--- interface/cdda_interface.h.orig Sat Mar 24 02:15:46 2001
+++ interface/cdda_interface.h Thu Jan 5 22:27:11 2006
@@ -21,6 +21,11 @@
#include <sys/types.h>
#include <signal.h>
+#ifdef __FreeBSD__
+#include <stdio.h>
+#include <camlib.h>
+#endif
+
#define MAXTRK 100
typedef struct TOC { /* structure of table of contents */
@@ -47,13 +52,19 @@
int opened; /* This struct may just represent a candidate for opening */
char *cdda_device_name;
+#ifdef Linux
char *ioctl_device_name;
int cdda_fd;
- int ioctl_fd;
- char *drive_model;
int drive_type;
+#elif defined(__FreeBSD__)
+ struct cam_device *dev;
+ union ccb *ccb;
+#endif
+
+ int ioctl_fd;
+ char *drive_model;
int interface;
int bigendianp;
int nsectors;
@@ -83,9 +94,13 @@
int is_mmc;
/* SCSI command buffer and offset pointers */
+#ifdef Linux
unsigned char *sg;
unsigned char *sg_buffer;
unsigned char inqbytes[4];
+#elif defined(__FreeBSD__)
+ unsigned char *sg_buffer;
+#endif
/* Scsi parameters and state */
unsigned char density;