Search
lxdream.org :: lxdream/src/gdrom/linux.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/linux.c
changeset 480:d28c2992f5ee
prev468:3a49695e081a
next489:45c8ddcf52cb
author nkeynes
date Wed Oct 31 11:53:35 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Fix miscellaneous warnings
file annotate diff log raw
1.1 --- a/src/gdrom/linux.c Sun Oct 28 07:23:46 2007 +0000
1.2 +++ b/src/gdrom/linux.c Wed Oct 31 11:53:35 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: linux.c,v 1.7 2007-10-28 07:23:46 nkeynes Exp $
1.6 + * $Id: linux.c,v 1.8 2007-10-31 11:53:35 nkeynes Exp $
1.7 *
1.8 * Linux cd-rom device driver.
1.9 *
1.10 @@ -15,6 +15,7 @@
1.11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.12 * GNU General Public License for more details.
1.13 */
1.14 +#include <unistd.h>
1.15 #include <stdlib.h>
1.16 #include <stdio.h>
1.17 #include <string.h>
1.18 @@ -211,7 +212,7 @@
1.19 return 0;
1.20 }
1.21
1.22 -static gdrom_error_t linux_play_audio( gdrom_disc_t disc, uint32_t lba, uint32_t endlba )
1.23 + gdrom_error_t linux_play_audio( gdrom_disc_t disc, uint32_t lba, uint32_t endlba )
1.24 {
1.25 int fd = fileno( ((gdrom_image_t)disc)->file );
1.26 uint32_t real_sector = lba - CD_MSF_OFFSET;
1.27 @@ -230,7 +231,7 @@
1.28 return linux_send_command( fd, cmd, NULL, &buflen, CGC_DATA_NONE );
1.29 }
1.30
1.31 -static gdrom_error_t linux_stop_audio( gdrom_disc_t disc )
1.32 +gdrom_error_t linux_stop_audio( gdrom_disc_t disc )
1.33 {
1.34 int fd = fileno( ((gdrom_image_t)disc)->file );
1.35 uint32_t buflen = 0;
.