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" |
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 */ |
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); |
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 |
|
|