/[graveman]/graveman/current/src/cdrecord.c
ViewVC logotype

Diff of /graveman/current/src/cdrecord.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.30 by scresto, Tue May 17 01:16:34 2005 UTC revision 1.31 by scresto, Sun May 22 11:20:41 2005 UTC
# Line 40  Line 40 
40  #define CDRECORD_FIXATING "Fixating..."  #define CDRECORD_FIXATING "Fixating..."
41  #define CDRECORD_BLANKING "Blanking "  #define CDRECORD_BLANKING "Blanking "
42  #define CDRECORD_BAD_RECORDER "Sorry, no CD/DVD-Recorder or unsupported CD/DVD-Recorder found"  #define CDRECORD_BAD_RECORDER "Sorry, no CD/DVD-Recorder or unsupported CD/DVD-Recorder found"
43    #define CDRECORD_CANNOT_OPEN "Cannot open"
44    
45  /* support du materiel */  /* support du materiel */
46  #define CDRECORD_NOT_READ_CD "Does not read CD-R media"  #define CDRECORD_NOT_READ_CD "Does not read CD-R media"
# Line 101  Tsearchdrive listesearchdrives[] = { Line 102  Tsearchdrive listesearchdrives[] = {
102      { "dev=/dev/sg4", "/dev/sg4",  "SCSI-G", 94 },      { "dev=/dev/sg4", "/dev/sg4",  "SCSI-G", 94 },
103      { "dev=/dev/sg5", "/dev/sg5",  "SCSI-G", 94 },      { "dev=/dev/sg5", "/dev/sg5",  "SCSI-G", 94 },
104      { "dev=/dev/sg6", "/dev/sg6",  "SCSI-G", 94 },      { "dev=/dev/sg6", "/dev/sg6",  "SCSI-G", 94 },
105        { "dev=/dev/sga", "/dev/sga",  "SCSI-g", 96 },
106        { "dev=/dev/sgb", "/dev/sgb",  "SCSI-g", 96 },
107        { "dev=/dev/sgc", "/dev/sgc",  "SCSI-g", 96 },
108        { "dev=/dev/sgd", "/dev/sgd",  "SCSI-g", 96 },
109        { "dev=/dev/sge", "/dev/sge",  "SCSI-g", 96 },
110        { "dev=/dev/sgf", "/dev/sgf",  "SCSI-g", 96 },
111        { "dev=/dev/sgg", "/dev/sgg",  "SCSI-g", 96 },
112  #endif  #endif
113      { "dev=ATA:", "ATA:", "ATA", 60 }, /* ide sg */      { "dev=ATA:", "ATA:", "ATA", 60 }, /* ide sg */
114      { "dev=ATAPI:", "ATAPI:", "ATAPI", 40 }, /* ide */      { "dev=ATAPI:", "ATAPI:", "ATAPI", 40 }, /* ide */
# Line 184  gboolean scan_callback(GIOChannel *Astd, Line 191  gboolean scan_callback(GIOChannel *Astd,
191            
192    g_strstrip(Lbuffer);      g_strstrip(Lbuffer);  
193  _DEB("scan lecteur = %s\n", Lbuffer);  _DEB("scan lecteur = %s\n", Lbuffer);
194      if (strstr(Lbuffer, CDRECORD_CANNOT_OPEN)) {
195        *Lcont = 2;
196        return FALSE;
197      }
198    
199    if (cdrecord_extractlecteur(Lbuffer, &Ldev, &Lmarque, &Lmodel, &Lquoi) == TRUE) {    if (cdrecord_extractlecteur(Lbuffer, &Ldev, &Lmarque, &Lmodel, &Lquoi) == TRUE) {
200    
201      matos_insert_or_update_drive(Ldev, Lmarque, Lmodel, Lquoi, Ldrivedesc);      matos_insert_or_update_drive(Ldev, Lmarque, Lmodel, Lquoi, Ldrivedesc);
# Line 265  gboolean cdrecord_maj_drive_info(Tdrivei Line 277  gboolean cdrecord_maj_drive_info(Tdrivei
277    gint Lexit = 0;    gint Lexit = 0;
278    gboolean Lstatus;    gboolean Lstatus;
279    
   {  
     GSList *ab;  
 gchar *abla;  
 for (ab = Adrive->dev; ab; ab = g_slist_next(ab)) {  
   abla = ab->data;  
   fprintf(stderr, "==>%s\n", abla);  
 }  
   }  
   
280    Lcommandline = g_strdup_printf("%s -prcap dev=%s", conf_get_string("cdrecord"),    Lcommandline = g_strdup_printf("%s -prcap dev=%s", conf_get_string("cdrecord"),
281        Adev ? Adev : DRIVE_DEV(Adrive));        Adev ? Adev : DRIVE_DEV(Adrive));
282    

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26