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

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

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

revision 1.9 by scresto, Tue Feb 8 02:32:57 2005 UTC revision 1.10 by scresto, Tue Feb 8 18:06:51 2005 UTC
# Line 96  void free_drives(gboolean Aremovemanu) Line 96  void free_drives(gboolean Aremovemanu)
96    if (g_slist_length(Glistdrives)==0) Glistdrives = NULL;    if (g_slist_length(Glistdrives)==0) Glistdrives = NULL;
97  }  }
98    
99    void get_current_matos(gboolean *Areadcd, gboolean *Awritecdr, gboolean *Awritecdrw, gboolean *Areaddvd, gboolean *Awritedvd)
100    {
101      GSList *Lcur;
102      Tdriveinfo *Ldrive;
103    
104      if (Areadcd) *Areadcd = FALSE;
105      if (Awritecdr) *Awritecdr = FALSE;
106      if (Awritecdrw) *Awritecdrw = FALSE;
107      if (Areaddvd) *Areaddvd = FALSE;
108      if (Awritedvd) *Awritedvd = FALSE;
109    
110      for (Lcur = Glistdrives; Lcur; Lcur = g_slist_next(Lcur)) {
111        Ldrive = (Tdriveinfo *)Lcur->data;
112    
113        if (DRIVE_READER(Ldrive) && Areadcd) *Areadcd = TRUE;
114        if (DRIVE_WRITER(Ldrive) && Awritecdr) *Awritecdr = TRUE;
115        if (DRIVE_CDRW_WRITER(Ldrive) && Awritecdrw) *Awritecdrw = TRUE;
116        if (DRIVE_DVDREADER(Ldrive) && Areaddvd) *Areaddvd = TRUE;
117        if (DRIVE_DVDWRITER(Ldrive) && Awritedvd) *Awritedvd = TRUE;
118      }
119    }
120    
121  void insert_or_update_drive(gchar *Adev, gchar *Amarque, gchar *Amodel, gchar *Aquoi, Tsearchdrive *Adrivedesc)  void insert_or_update_drive(gchar *Adev, gchar *Amarque, gchar *Amodel, gchar *Aquoi, Tsearchdrive *Adrivedesc)
122  {  {
123    /* on commence par construire l'identifiant */    /* on commence par construire l'identifiant */

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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