Blame SOURCES/cdparanoia-10.2-#463009.patch

736bbe
Index: /trunk/cdparanoia/interface/test_interface.c
736bbe
===================================================================
736bbe
--- /trunk/cdparanoia/interface/test_interface.c (revision 15299)
736bbe
+++ /trunk/cdparanoia/interface/test_interface.c (revision 15338)
736bbe
@@ -67,7 +67,7 @@
736bbe
 
736bbe
   if(begin
736bbe
-    d->private->last_milliseconds=20;
736bbe
+    d->private_data->last_milliseconds=20;
736bbe
   else
736bbe
-    d->private->last_milliseconds=sectors;
736bbe
+    d->private_data->last_milliseconds=sectors;
736bbe
 
736bbe
 #ifdef CDDA_TEST_UNDERRUN
736bbe
Index: /trunk/cdparanoia/interface/cdda_interface.h
736bbe
===================================================================
736bbe
--- /trunk/cdparanoia/interface/cdda_interface.h (revision 15290)
736bbe
+++ /trunk/cdparanoia/interface/cdda_interface.h (revision 15338)
736bbe
@@ -85,5 +85,5 @@
736bbe
   int is_mmc;
736bbe
 
736bbe
-  cdda_private_data_t *private;
736bbe
+  cdda_private_data_t *private_data;
736bbe
   void         *reserved;
736bbe
   unsigned char inqbytes[4];
736bbe
Index: /trunk/cdparanoia/interface/interface.c
736bbe
===================================================================
736bbe
--- /trunk/cdparanoia/interface/interface.c (revision 15314)
736bbe
+++ /trunk/cdparanoia/interface/interface.c (revision 15338)
736bbe
@@ -40,7 +40,7 @@
736bbe
     if(d->cdda_fd!=-1)close(d->cdda_fd);
736bbe
     if(d->ioctl_fd!=-1 && d->ioctl_fd!=d->cdda_fd)close(d->ioctl_fd);
736bbe
-    if(d->private){
736bbe
-      if(d->private->sg_hd)free(d->private->sg_hd);
736bbe
-      free(d->private);
736bbe
+    if(d->private_data){
736bbe
+      if(d->private_data->sg_hd)free(d->private_data->sg_hd);
736bbe
+      free(d->private_data);
736bbe
     }
736bbe
 
736bbe
@@ -128,5 +128,5 @@
736bbe
       }	
736bbe
     }
736bbe
-    if(ms)*ms=d->private->last_milliseconds;
736bbe
+    if(ms)*ms=d->private_data->last_milliseconds;
736bbe
     return(sectors);
736bbe
   }
736bbe
Index: /trunk/cdparanoia/interface/scsi_interface.c
736bbe
===================================================================
736bbe
--- /trunk/cdparanoia/interface/scsi_interface.c (revision 15314)
736bbe
+++ /trunk/cdparanoia/interface/scsi_interface.c (revision 15338)
736bbe
@@ -16,11 +16,11 @@
736bbe
   struct timespec tv1;
736bbe
   struct timespec tv2;
736bbe
-  int ret1=clock_gettime(d->private->clock,&tv1);
736bbe
+  int ret1=clock_gettime(d->private_data->clock,&tv1);
736bbe
   int ret2=ioctl(fd, command,arg);
736bbe
-  int ret3=clock_gettime(d->private->clock,&tv2);
736bbe
+  int ret3=clock_gettime(d->private_data->clock,&tv2);
736bbe
   if(ret1<0 || ret3<0){
736bbe
-    d->private->last_milliseconds=-1;
736bbe
+    d->private_data->last_milliseconds=-1;
736bbe
   }else{
736bbe
-    d->private->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000. + (tv2.tv_nsec-tv1.tv_nsec)/1000000.;
736bbe
+    d->private_data->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000. + (tv2.tv_nsec-tv1.tv_nsec)/1000000.;
736bbe
   }
736bbe
   return ret2;
736bbe
@@ -97,5 +97,5 @@
736bbe
   fd_set fdset;
736bbe
   struct timeval tv;
736bbe
-  struct sg_header *sg_hd=d->private->sg_hd;
736bbe
+  struct sg_header *sg_hd=d->private_data->sg_hd;
736bbe
   int flag=0;
736bbe
 
736bbe
@@ -186,5 +186,5 @@
736bbe
   int tret1,tret2;
736bbe
   int status = 0;
736bbe
-  struct sg_header *sg_hd=d->private->sg_hd;
736bbe
+  struct sg_header *sg_hd=d->private_data->sg_hd;
736bbe
   long writebytes=SG_OFF+cmd_len+in_size;
736bbe
 
736bbe
@@ -196,5 +196,5 @@
736bbe
   memset(sg_hd,0,sizeof(sg_hd)); 
736bbe
   memset(sense_buffer,0,SG_MAX_SENSE); 
736bbe
-  memcpy(d->private->sg_buffer,cmd,cmd_len+in_size);
736bbe
+  memcpy(d->private_data->sg_buffer,cmd,cmd_len+in_size);
736bbe
   sg_hd->twelve_byte = cmd_len == 12;
736bbe
   sg_hd->result = 0;
736bbe
@@ -210,5 +210,5 @@
736bbe
 
736bbe
   if(bytecheck && out_size>in_size){
736bbe
-    memset(d->private->sg_buffer+cmd_len+in_size,bytefill,out_size-in_size); 
736bbe
+    memset(d->private_data->sg_buffer+cmd_len+in_size,bytefill,out_size-in_size); 
736bbe
     /* the size does not remove cmd_len due to the way the kernel
736bbe
        driver copies buffers */
736bbe
@@ -244,5 +244,5 @@
736bbe
 
736bbe
   sigprocmask (SIG_BLOCK, &(d->sigset), NULL );
736bbe
-  tret1=clock_gettime(d->private->clock,&tv1);  
736bbe
+  tret1=clock_gettime(d->private_data->clock,&tv1);  
736bbe
   errno=0;
736bbe
   status = write(d->cdda_fd, sg_hd, writebytes );
736bbe
@@ -290,5 +290,5 @@
736bbe
   }
736bbe
 
736bbe
-  tret2=clock_gettime(d->private->clock,&tv2);  
736bbe
+  tret2=clock_gettime(d->private_data->clock,&tv2);  
736bbe
   errno=0;
736bbe
   status = read(d->cdda_fd, sg_hd, SG_OFF + out_size);
736bbe
@@ -314,5 +314,5 @@
736bbe
     long i,flag=0;
736bbe
     for(i=in_size;i
736bbe
-      if(d->private->sg_buffer[i]!=bytefill){
736bbe
+      if(d->private_data->sg_buffer[i]!=bytefill){
736bbe
 	flag=1;
736bbe
 	break;
736bbe
@@ -327,7 +327,7 @@
736bbe
   errno=0;
736bbe
   if(tret1<0 || tret2<0){
736bbe
-    d->private->last_milliseconds=-1;
736bbe
+    d->private_data->last_milliseconds=-1;
736bbe
   }else{
736bbe
-    d->private->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000 + (tv2.tv_nsec-tv1.tv_nsec)/1000000;
736bbe
+    d->private_data->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000 + (tv2.tv_nsec-tv1.tv_nsec)/1000000;
736bbe
   }
736bbe
   return(0);
736bbe
@@ -348,5 +348,5 @@
736bbe
   memset(&hdr,0,sizeof(hdr));
736bbe
   memset(sense,0,sizeof(sense));
736bbe
-  memcpy(d->private->sg_buffer,cmd+cmd_len,in_size);
736bbe
+  memcpy(d->private_data->sg_buffer,cmd+cmd_len,in_size);
736bbe
 
736bbe
   hdr.cmdp = cmd;
736bbe
@@ -356,5 +356,5 @@
736bbe
   hdr.timeout = 50000;
736bbe
   hdr.interface_id = 'S';
736bbe
-  hdr.dxferp =  d->private->sg_buffer;
736bbe
+  hdr.dxferp =  d->private_data->sg_buffer;
736bbe
   hdr.flags = SG_FLAG_DIRECT_IO;  /* direct IO if we can get it */
736bbe
 
736bbe
@@ -401,5 +401,5 @@
736bbe
     long i,flag=0;
736bbe
     for(i=in_size;i
736bbe
-      if(d->private->sg_buffer[i]!=bytefill){
736bbe
+      if(d->private_data->sg_buffer[i]!=bytefill){
736bbe
 	flag=1;
736bbe
 	break;
736bbe
@@ -413,5 +413,5 @@
736bbe
 
736bbe
   /* Can't rely on .duration because we can't be certain kernel has HZ set to something useful */
736bbe
-  /* d->private->last_milliseconds = hdr.duration; */
736bbe
+  /* d->private_data->last_milliseconds = hdr.duration; */
736bbe
 
736bbe
   errno = 0;
736bbe
@@ -446,7 +446,7 @@
736bbe
   handle_scsi_cmd(d, cmd, 6, 0, 56, 0,0, sense);
736bbe
 
736bbe
-  key = d->private->sg_buffer[2] & 0xf;
736bbe
-  ASC = d->private->sg_buffer[12];
736bbe
-  ASCQ = d->private->sg_buffer[13];
736bbe
+  key = d->private_data->sg_buffer[2] & 0xf;
736bbe
+  ASC = d->private_data->sg_buffer[12];
736bbe
+  ASCQ = d->private_data->sg_buffer[13];
736bbe
   
736bbe
   if(key == 2 && ASC == 4 && ASCQ == 1) return 0;
736bbe
@@ -493,5 +493,5 @@
736bbe
 
736bbe
   {
736bbe
-    unsigned char *b=d->private->sg_buffer;
736bbe
+    unsigned char *b=d->private_data->sg_buffer;
736bbe
     if(b[0])return(1); /* Handles only up to 256 bytes */
736bbe
     if(b[6])return(1); /* Handles only up to 256 bytes */
736bbe
@@ -605,6 +605,6 @@
736bbe
   if(mode_sense(d,12,0x01))return(-1);
736bbe
 
736bbe
-  d->orgdens = d->private->sg_buffer[4];
736bbe
-  return(d->orgsize = ((int)(d->private->sg_buffer[10])<<8)+d->private->sg_buffer[11]);
736bbe
+  d->orgdens = d->private_data->sg_buffer[4];
736bbe
+  return(d->orgsize = ((int)(d->private_data->sg_buffer[10])<<8)+d->private_data->sg_buffer[11]);
736bbe
 }
736bbe
 
736bbe
@@ -665,6 +665,6 @@
736bbe
   }
736bbe
 
736bbe
-  first=d->private->sg_buffer[2];
736bbe
-  last=d->private->sg_buffer[3];
736bbe
+  first=d->private_data->sg_buffer[2];
736bbe
+  last=d->private_data->sg_buffer[3];
736bbe
   tracks=last-first+1;
736bbe
 
736bbe
@@ -684,5 +684,5 @@
736bbe
     }
736bbe
     {
736bbe
-      scsi_TOC *toc=(scsi_TOC *)(d->private->sg_buffer+4);
736bbe
+      scsi_TOC *toc=(scsi_TOC *)(d->private_data->sg_buffer+4);
736bbe
 
736bbe
       d->disc_toc[i-first].bFlags=toc->bFlags;
736bbe
@@ -705,5 +705,5 @@
736bbe
   }
736bbe
   {
736bbe
-    scsi_TOC *toc=(scsi_TOC *)(d->private->sg_buffer+4);
736bbe
+    scsi_TOC *toc=(scsi_TOC *)(d->private_data->sg_buffer+4);
736bbe
     
736bbe
     d->disc_toc[i-first].bFlags=toc->bFlags;
736bbe
@@ -739,5 +739,5 @@
736bbe
 
736bbe
   /* copy to our structure and convert start sector */
736bbe
-  tracks = d->private->sg_buffer[1];
736bbe
+  tracks = d->private_data->sg_buffer[1];
736bbe
   if (tracks > MAXTRK) {
736bbe
     cderror(d,"003: CDROM reporting illegal number of tracks\n");
736bbe
@@ -755,31 +755,31 @@
736bbe
     }
736bbe
     
736bbe
-    d->disc_toc[i].bFlags = d->private->sg_buffer[10];
736bbe
+    d->disc_toc[i].bFlags = d->private_data->sg_buffer[10];
736bbe
     d->disc_toc[i].bTrack = i + 1;
736bbe
 
736bbe
     d->disc_toc[i].dwStartSector= d->adjust_ssize * 
736bbe
-	(((signed char)(d->private->sg_buffer[2])<<24) | 
736bbe
-	 (d->private->sg_buffer[3]<<16)|
736bbe
-	 (d->private->sg_buffer[4]<<8)|
736bbe
-	 (d->private->sg_buffer[5]));
736bbe
+	(((signed char)(d->private_data->sg_buffer[2])<<24) | 
736bbe
+	 (d->private_data->sg_buffer[3]<<16)|
736bbe
+	 (d->private_data->sg_buffer[4]<<8)|
736bbe
+	 (d->private_data->sg_buffer[5]));
736bbe
   }
736bbe
 
736bbe
   d->disc_toc[i].bFlags = 0;
736bbe
   d->disc_toc[i].bTrack = i + 1;
736bbe
-  memcpy (&foo, d->private->sg_buffer+2, 4);
736bbe
-  memcpy (&bar, d->private->sg_buffer+6, 4);
736bbe
+  memcpy (&foo, d->private_data->sg_buffer+2, 4);
736bbe
+  memcpy (&bar, d->private_data->sg_buffer+6, 4);
736bbe
   d->disc_toc[i].dwStartSector = d->adjust_ssize * (be32_to_cpu(foo) +
736bbe
 						    be32_to_cpu(bar));
736bbe
 
736bbe
   d->disc_toc[i].dwStartSector= d->adjust_ssize * 
736bbe
-    ((((signed char)(d->private->sg_buffer[2])<<24) | 
736bbe
-      (d->private->sg_buffer[3]<<16)|
736bbe
-      (d->private->sg_buffer[4]<<8)|
736bbe
-      (d->private->sg_buffer[5]))+
736bbe
+    ((((signed char)(d->private_data->sg_buffer[2])<<24) | 
736bbe
+      (d->private_data->sg_buffer[3]<<16)|
736bbe
+      (d->private_data->sg_buffer[4]<<8)|
736bbe
+      (d->private_data->sg_buffer[5]))+
736bbe
      
736bbe
-     ((((signed char)(d->private->sg_buffer[6])<<24) | 
736bbe
-       (d->private->sg_buffer[7]<<16)|
736bbe
-       (d->private->sg_buffer[8]<<8)|
736bbe
-       (d->private->sg_buffer[9]))));
736bbe
+     ((((signed char)(d->private_data->sg_buffer[6])<<24) | 
736bbe
+       (d->private_data->sg_buffer[7]<<16)|
736bbe
+       (d->private_data->sg_buffer[8]<<8)|
736bbe
+       (d->private_data->sg_buffer[9]))));
736bbe
 
736bbe
 
736bbe
@@ -818,5 +818,5 @@
736bbe
   if((ret=handle_scsi_cmd(d,cmd,10,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
736bbe
     return(ret);
736bbe
-  if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
+  if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
   return(0);
736bbe
 }
736bbe
@@ -837,5 +837,5 @@
736bbe
   if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
736bbe
     return(ret);
736bbe
-  if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
+  if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
   return(0);
736bbe
 }
736bbe
@@ -855,5 +855,5 @@
736bbe
   if((ret=handle_scsi_cmd(d,cmd,10,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
736bbe
     return(ret);
736bbe
-  if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
+  if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
   return(0);
736bbe
 }
736bbe
@@ -873,5 +873,5 @@
736bbe
   if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
736bbe
     return(ret);
736bbe
-  if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
+  if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
   return(0);
736bbe
 }
736bbe
@@ -891,5 +891,5 @@
736bbe
   if((ret=handle_scsi_cmd(d,cmd,10,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
736bbe
     return(ret);
736bbe
-  if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
+  if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
   return(0);
736bbe
 }
736bbe
@@ -909,5 +909,5 @@
736bbe
   if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
736bbe
     return(ret);
736bbe
-  if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
+  if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
   return(0);
736bbe
 }
736bbe
@@ -923,5 +923,5 @@
736bbe
   if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
736bbe
     return(ret);
736bbe
-  if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
+  if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
   return(0);
736bbe
 }
736bbe
@@ -937,5 +937,5 @@
736bbe
   if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
736bbe
     return(ret);
736bbe
-  if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
+  if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
   return(0);
736bbe
 }
736bbe
@@ -951,5 +951,5 @@
736bbe
   if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
736bbe
     return(ret);
736bbe
-  if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
+  if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
   return(0);
736bbe
 }
736bbe
@@ -965,5 +965,5 @@
736bbe
   if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
736bbe
     return(ret);
736bbe
-  if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
+  if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
   return(0);
736bbe
 }
736bbe
@@ -979,5 +979,5 @@
736bbe
   if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
736bbe
     return(ret);
736bbe
-  if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
+  if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
   return(0);
736bbe
 }
736bbe
@@ -993,5 +993,5 @@
736bbe
   if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
736bbe
     return(ret);
736bbe
-  if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
+  if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
   return(0);
736bbe
 }
736bbe
@@ -1027,5 +1027,5 @@
736bbe
   if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
736bbe
     return(ret);
736bbe
-  if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
+  if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
   return(0);
736bbe
 }
736bbe
@@ -1040,5 +1040,5 @@
736bbe
   if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
736bbe
     return(ret);
736bbe
-  if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
+  if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
   return(0);
736bbe
 }
736bbe
@@ -1053,5 +1053,5 @@
736bbe
   if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
736bbe
     return(ret);
736bbe
-  if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
+  if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
736bbe
   return(0);
736bbe
 }
736bbe
@@ -1276,5 +1276,5 @@
736bbe
   long i;
736bbe
   for(i=2351;i>=0;i--)
736bbe
-    if(d->private->sg_buffer[i]!=(unsigned char)'\177')
736bbe
+    if(d->private_data->sg_buffer[i]!=(unsigned char)'\177')
736bbe
       return(((i+3)>>2)<<2);
736bbe
 
736bbe
@@ -1285,5 +1285,5 @@
736bbe
   long i,flag=0;
736bbe
   for(i=0;i<2352;i++)
736bbe
-    if(d->private->sg_buffer[i]!=0){
736bbe
+    if(d->private_data->sg_buffer[i]!=0){
736bbe
       flag=1;
736bbe
       break;
736bbe
@@ -1622,5 +1622,5 @@
736bbe
   if(mode_sense(d,22,0x2A)==0){
736bbe
   
736bbe
-    b=d->private->sg_buffer;
736bbe
+    b=d->private_data->sg_buffer;
736bbe
     b+=b[3]+4;
736bbe
     
736bbe
@@ -1670,5 +1670,5 @@
736bbe
     return(NULL);
736bbe
   }
736bbe
-  return (d->private->sg_buffer);
736bbe
+  return (d->private_data->sg_buffer);
736bbe
 }
736bbe
 
736bbe
@@ -1726,6 +1726,6 @@
736bbe
 
736bbe
   d->error_retry=1;
736bbe
-  d->private->sg_hd=realloc(d->private->sg_hd,d->nsectors*CD_FRAMESIZE_RAW + SG_OFF + 128);
736bbe
-  d->private->sg_buffer=((unsigned char *)d->private->sg_hd)+SG_OFF;
736bbe
+  d->private_data->sg_hd=realloc(d->private_data->sg_hd,d->nsectors*CD_FRAMESIZE_RAW + SG_OFF + 128);
736bbe
+  d->private_data->sg_buffer=((unsigned char *)d->private_data->sg_hd)+SG_OFF;
736bbe
   d->report_all=1;
736bbe
   return(0);
736bbe
Index: /trunk/cdparanoia/interface/cooked_interface.c
736bbe
===================================================================
736bbe
--- /trunk/cdparanoia/interface/cooked_interface.c (revision 15202)
736bbe
+++ /trunk/cdparanoia/interface/cooked_interface.c (revision 15338)
736bbe
@@ -14,11 +14,11 @@
736bbe
   struct timespec tv1;
736bbe
   struct timespec tv2;
736bbe
-  int ret1=clock_gettime(d->private->clock,&tv1);
736bbe
+  int ret1=clock_gettime(d->private_data->clock,&tv1);
736bbe
   int ret2=ioctl(fd, command,arg);
736bbe
-  int ret3=clock_gettime(d->private->clock,&tv2);
736bbe
+  int ret3=clock_gettime(d->private_data->clock,&tv2);
736bbe
   if(ret1<0 || ret3<0){
736bbe
-    d->private->last_milliseconds=-1;
736bbe
+    d->private_data->last_milliseconds=-1;
736bbe
   }else{
736bbe
-    d->private->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000. + (tv2.tv_nsec-tv1.tv_nsec)/1000000.;
736bbe
+    d->private_data->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000. + (tv2.tv_nsec-tv1.tv_nsec)/1000000.;
736bbe
   }
736bbe
   return ret2;
736bbe
Index: /trunk/cdparanoia/interface/scan_devices.c
736bbe
===================================================================
736bbe
--- /trunk/cdparanoia/interface/scan_devices.c (revision 15202)
736bbe
+++ /trunk/cdparanoia/interface/scan_devices.c (revision 15338)
736bbe
@@ -265,9 +265,9 @@
736bbe
   d->bigendianp=-1; /* We don't know yet... */
736bbe
   d->nsectors=-1;
736bbe
-  d->private=calloc(1,sizeof(*d->private));
736bbe
+  d->private_data=calloc(1,sizeof(*d->private_data));
736bbe
   {
736bbe
     /* goddamnit */
736bbe
     struct timespec tv;
736bbe
-    d->private->clock=(clock_gettime(CLOCK_MONOTONIC,&tv)<0?CLOCK_REALTIME:CLOCK_MONOTONIC);
736bbe
+    d->private_data->clock=(clock_gettime(CLOCK_MONOTONIC,&tv)<0?CLOCK_REALTIME:CLOCK_MONOTONIC);
736bbe
   }
736bbe
   idmessage(messagedest,messages,"\t\tCDROM sensed: %s\n",description);
736bbe
@@ -675,13 +675,13 @@
736bbe
   d->nsectors=-1;
736bbe
   d->messagedest = messagedest;
736bbe
-  d->private=calloc(1,sizeof(*d->private));
736bbe
+  d->private_data=calloc(1,sizeof(*d->private_data));
736bbe
   {
736bbe
     /* goddamnit */
736bbe
     struct timespec tv;
736bbe
-    d->private->clock=(clock_gettime(CLOCK_MONOTONIC,&tv)<0?CLOCK_REALTIME:CLOCK_MONOTONIC);
736bbe
+    d->private_data->clock=(clock_gettime(CLOCK_MONOTONIC,&tv)<0?CLOCK_REALTIME:CLOCK_MONOTONIC);
736bbe
   }
736bbe
   if(use_sgio){
736bbe
     d->interface=SGIO_SCSI;
736bbe
-    d->private->sg_buffer=(unsigned char *)(d->private->sg_hd=malloc(MAX_BIG_BUFF_SIZE));
736bbe
+    d->private_data->sg_buffer=(unsigned char *)(d->private_data->sg_hd=malloc(MAX_BIG_BUFF_SIZE));
736bbe
     g_fd=d->cdda_fd=dup(d->ioctl_fd);
736bbe
   }else{
736bbe
@@ -697,6 +697,6 @@
736bbe
 
736bbe
     /* malloc our big buffer for scsi commands */
736bbe
-    d->private->sg_hd=malloc(MAX_BIG_BUFF_SIZE);
736bbe
-    d->private->sg_buffer=((unsigned char *)d->private->sg_hd)+SG_OFF;
736bbe
+    d->private_data->sg_hd=malloc(MAX_BIG_BUFF_SIZE);
736bbe
+    d->private_data->sg_buffer=((unsigned char *)d->private_data->sg_hd)+SG_OFF;
736bbe
   }
736bbe
 
736bbe
@@ -773,7 +773,7 @@
736bbe
   if(g_fd!=-1)close(g_fd);
736bbe
   if(d){
736bbe
-    if(d->private){
736bbe
-      if(d->private->sg_hd)free(d->private->sg_hd);
736bbe
-      free(d->private);
736bbe
+    if(d->private_data){
736bbe
+      if(d->private_data->sg_hd)free(d->private_data->sg_hd);
736bbe
+      free(d->private_data);
736bbe
     }
736bbe
     free(d);
736bbe
@@ -822,5 +822,5 @@
736bbe
   d->bigendianp=-1; /* We don't know yet... */
736bbe
   d->nsectors=-1;
736bbe
-  d->private=calloc(1,sizeof(*d->private));
736bbe
+  d->private_data=calloc(1,sizeof(*d->private_data));
736bbe
   d->drive_model=copystring("File based test interface");
736bbe
   idmessage(messagedest,messages,"\t\tCDROM sensed: %s\n",d->drive_model);