/[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.7 by scresto, Sat Jan 29 18:33:37 2005 UTC revision 1.8 by scresto, Tue Feb 1 02:35:19 2005 UTC
# Line 65  Line 65 
65  /* definition de tous les type de bus */  /* definition de tous les type de bus */
66  Tsearchdrive listesearchdrives[] = {  Tsearchdrive listesearchdrives[] = {
67      { "", "", " ", 100 }, /* scsi (sg) */      { "", "", " ", 100 }, /* scsi (sg) */
     { "dev=ATA:", "ATA:", "ATA", 80 }, /* ide sg */  
     { "dev=ATAPI:", "ATAPI:", "ATAPI", 60 }, /* ide */  
68  #ifdef LINUX_IDE  /* pure ide devices with linux */  #ifdef LINUX_IDE  /* pure ide devices with linux */
69      { "dev=/dev/hda", "/dev/hda", "IDE", 40 },      { "dev=/dev/hda", "/dev/hda", "IDE", 40 },
70      { "dev=/dev/hdb", "/dev/hdb", "IDE", 40 },      { "dev=/dev/hdb", "/dev/hdb", "IDE", 40 },
71      { "dev=/dev/hdc", "/dev/hdc", "IDE", 40},      { "dev=/dev/hdc", "/dev/hdc", "IDE", 40},
72      { "dev=/dev/hdd", "/dev/hdd", "IDE", 40 },      { "dev=/dev/hdd", "/dev/hdd", "IDE", 40 },
     { "dev=/dev/hde", "/dev/hde", "IDE", 40 },  
     { "dev=/dev/hdf", "/dev/hdf", "IDE", 40 },  
     { "dev=/dev/hdg", "/dev/hdg", "IDE", 40 },  
     { "dev=/dev/hdh", "/dev/hdh", "IDE", 40 },  
     { "dev=/dev/hdi", "/dev/hdi", "IDE", 40 },  
     { "dev=/dev/hdj", "/dev/hdj", "IDE", 40 },  
     { "dev=/dev/hdk", "/dev/hdk", "IDE", 40 },  
     { "dev=/dev/hdl", "/dev/hdl", "IDE", 40 },  
     { "dev=/dev/hdm", "/dev/hdm", "IDE", 40 },  
     { "dev=/dev/hdn", "/dev/hdn", "IDE", 40 },  
     { "dev=/dev/hdo", "/dev/hdo", "IDE", 40 },  
     { "dev=/dev/hdp", "/dev/hdp", "IDE", 40 },  
     { "dev=/dev/hdq", "/dev/hdq", "IDE", 40 },  
     { "dev=/dev/hdr", "/dev/hdr", "IDE", 40 },  
     { "dev=/dev/hds", "/dev/hds", "IDE", 40 },  
     { "dev=/dev/hdt", "/dev/hdt", "IDE", 40 },  
73  #endif  #endif
74        { "dev=ATA:", "ATA:", "ATA", 80 }, /* ide sg */
75        { "dev=ATAPI:", "ATAPI:", "ATAPI", 60 }, /* ide */
76      { NULL, NULL, NULL, 0}      { NULL, NULL, NULL, 0}
77    };    };
78    
# Line 327  gboolean burn_from_image(gchar *Aop, GHa Line 311  gboolean burn_from_image(gchar *Aop, GHa
311    GIOChannel *Lcom, *Lcomerr;    GIOChannel *Lcom, *Lcomerr;
312    guint Lcomevent, Lcomerrevent;    guint Lcomevent, Lcomerrevent;
313    gint *Lcont = (gint *) g_hash_table_lookup(Ahash, "cont");    gint *Lcont = (gint *) g_hash_table_lookup(Ahash, "cont");
314      gboolean *Labort = (gboolean *) g_hash_table_lookup(Ahash, "gabort");
315    GtkWindow *Lwindow = GTK_WINDOW(g_hash_table_lookup(Ahash, "window_burn"));    GtkWindow *Lwindow = GTK_WINDOW(g_hash_table_lookup(Ahash, "window_burn"));
316    gboolean Lsimul = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(sc_hash_table_lookupv(Ahash, "%ssimul", Aop)));    gboolean Lsimul = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(sc_hash_table_lookupv(Ahash, "%ssimul", Aop)));
317    gint Lnbrgravure = gtk_spin_button_get_value(GTK_SPIN_BUTTON(sc_hash_table_lookupv(Ahash, "nbrcd%s", Aop)));      gint Lnbrgravure = gtk_spin_button_get_value(GTK_SPIN_BUTTON(sc_hash_table_lookupv(Ahash, "nbrcd%s", Aop)));  
# Line 374  gboolean burn_from_image(gchar *Aop, GHa Line 359  gboolean burn_from_image(gchar *Aop, GHa
359        Lrep = gtk_dialog_run(GTK_DIALOG(Lconfirm));        Lrep = gtk_dialog_run(GTK_DIALOG(Lconfirm));
360        gtk_widget_destroy(Lconfirm);        gtk_widget_destroy(Lconfirm);
361        if (Lrep == GTK_RESPONSE_NO) {        if (Lrep == GTK_RESPONSE_NO) {
         gboolean *Labort = (gboolean *) g_hash_table_lookup(Ahash, "gabort");  
362          /* si c'est non alors on arrete */          /* si c'est non alors on arrete */
363          *Labort = TRUE;          *Labort = TRUE;
364          Lstatus = TRUE;          Lstatus = TRUE;
# Line 444  gboolean burn_from_image(gchar *Aop, GHa Line 428  gboolean burn_from_image(gchar *Aop, GHa
428      Lcomerrevent = g_io_add_watch (Lcomerr, (G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_PRI),      Lcomerrevent = g_io_add_watch (Lcomerr, (G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_PRI),
429                                        cdrecord_grave_callback, Ahash);                                        cdrecord_grave_callback, Ahash);
430            
431      while (*Lcont > 0) {      while (*Lcont > 0 && *Labort == FALSE) {
432        gtk_main_iteration();            gtk_main_iteration();    
433      }      }
434      g_source_remove(Lcomevent);      g_source_remove(Lcomevent);
# Line 485  gboolean burn_from_image(gchar *Aop, GHa Line 469  gboolean burn_from_image(gchar *Aop, GHa
469        Lrep = gtk_dialog_run(GTK_DIALOG(Lconfirm));        Lrep = gtk_dialog_run(GTK_DIALOG(Lconfirm));
470        gtk_widget_destroy(Lconfirm);        gtk_widget_destroy(Lconfirm);
471        if (Lrep == GTK_RESPONSE_NO) {        if (Lrep == GTK_RESPONSE_NO) {
         gboolean *Labort = (gboolean *) g_hash_table_lookup(Ahash, "gabort");  
472          /* si c'est non alors on arrete */          /* si c'est non alors on arrete */
473          *Labort = TRUE;          *Labort = TRUE;
474          Lstatus = TRUE;          Lstatus = TRUE;
# Line 704  gboolean gravepiste(GHashTable *Ahash, G Line 687  gboolean gravepiste(GHashTable *Ahash, G
687    GtkWidget *Lgraveur = g_hash_table_lookup(Ahash, "dstaudiocombo");    GtkWidget *Lgraveur = g_hash_table_lookup(Ahash, "dstaudiocombo");
688    gchar **Lrepertoire = (gchar **)g_hash_table_lookup(Ahash, "tmpdir");    gchar **Lrepertoire = (gchar **)g_hash_table_lookup(Ahash, "tmpdir");
689    gboolean *Loperationstatus = (gboolean *)g_hash_table_lookup(Ahash, "operationstatus");    gboolean *Loperationstatus = (gboolean *)g_hash_table_lookup(Ahash, "operationstatus");
690      gboolean *Labort = (gboolean *) g_hash_table_lookup(Ahash, "gabort");
691    gchar *Lbuftitle = NULL;    gchar *Lbuftitle = NULL;
692    gchar **Lcmd;    gchar **Lcmd;
693    gchar *Lcommandline;    gchar *Lcommandline;
# Line 754  gboolean gravepiste(GHashTable *Ahash, G Line 738  gboolean gravepiste(GHashTable *Ahash, G
738        Lrep = gtk_dialog_run(GTK_DIALOG(Lconfirm));        Lrep = gtk_dialog_run(GTK_DIALOG(Lconfirm));
739        gtk_widget_destroy(Lconfirm);        gtk_widget_destroy(Lconfirm);
740        if (Lrep == GTK_RESPONSE_NO) {        if (Lrep == GTK_RESPONSE_NO) {
         gboolean *Labort = (gboolean *) g_hash_table_lookup(Ahash, "gabort");  
741          /* si c'est non alors on arrete */          /* si c'est non alors on arrete */
742          *Labort = TRUE;          *Labort = TRUE;
743          Lstatus = TRUE;          Lstatus = TRUE;
# Line 813  _DEB("execution [%s]\n", Lcommandline); Line 796  _DEB("execution [%s]\n", Lcommandline);
796      Lcomerrevent = g_io_add_watch (Lcomerr, (G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_PRI),      Lcomerrevent = g_io_add_watch (Lcomerr, (G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_PRI),
797                                          cdrecord_grave_callback, Ahash);                                            cdrecord_grave_callback, Ahash);  
798            
799      while (*Lcont>0) {      while (*Lcont>0 && *Labort == FALSE) {
800        gtk_main_iteration();        gtk_main_iteration();
801      }      }
802    
# Line 853  _DEB("execution [%s]\n", Lcommandline); Line 836  _DEB("execution [%s]\n", Lcommandline);
836        Lrep = gtk_dialog_run(GTK_DIALOG(Lconfirm));        Lrep = gtk_dialog_run(GTK_DIALOG(Lconfirm));
837        gtk_widget_destroy(Lconfirm);        gtk_widget_destroy(Lconfirm);
838        if (Lrep == GTK_RESPONSE_NO) {        if (Lrep == GTK_RESPONSE_NO) {
         gboolean *Labort = (gboolean *) g_hash_table_lookup(Ahash, "gabort");  
839          /* si c'est non alors on arrete */          /* si c'est non alors on arrete */
840          *Labort = TRUE;          *Labort = TRUE;
841          Lstatus = TRUE;          Lstatus = TRUE;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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