Search
lxdream.org :: lxdream/src/drivers/cd_linux.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/cd_linux.c
changeset 709:18c39a8e504c
prev678:35eb00945316
next720:b5594d1ac80a
author nkeynes
date Wed Jun 25 10:40:45 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Commit OSX CD-ROM driver work-in-progress
file annotate diff log raw
1.1 --- a/src/drivers/cd_linux.c Thu May 29 11:00:26 2008 +0000
1.2 +++ b/src/drivers/cd_linux.c Wed Jun 25 10:40:45 2008 +0000
1.3 @@ -60,7 +60,7 @@
1.4
1.5 struct gdrom_image_class cdrom_device_class = { "Linux", NULL,
1.6 linux_image_is_valid, linux_open_device };
1.7 -GList *gdrom_get_native_devices(void)
1.8 +GList *cdrom_get_native_devices(void)
1.9 {
1.10 GList *list = NULL;
1.11 struct fstab *ent;
1.12 @@ -76,7 +76,7 @@
1.13 int caps = ioctl(fd, CDROM_GET_CAPABILITY);
1.14 if( caps != -1 ) {
1.15 /* Appears to support CDROM functions */
1.16 - list = g_list_append( list, g_strdup(ent->fs_spec) );
1.17 + list = g_list_append( list, gdrom_device_new(ent->fs_spec, ent->fs_spec));
1.18 }
1.19 close(fd);
1.20 }
1.21 @@ -84,6 +84,11 @@
1.22 return list;
1.23 }
1.24
1.25 +gdrom_disc_t cdrom_open_device( const gchar *method, const gchar *path )
1.26 +{
1.27 + return NULL;
1.28 +}
1.29 +
1.30 static gboolean linux_image_is_valid( FILE *f )
1.31 {
1.32 struct stat st;
.