Search
lxdream.org :: lxdream/src/drivers/cd_none.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/cd_none.c
changeset 520:7d6f8584897f
next561:533f6b478071
author nkeynes
date Fri Nov 16 23:51:23 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Move native cd drivers under the drivers directory
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/drivers/cd_none.c Fri Nov 16 23:51:23 2007 +0000
1.3 @@ -0,0 +1,40 @@
1.4 +/**
1.5 + * $Id: cdnone.c,v 1.1 2007-11-04 05:07:49 nkeynes Exp $
1.6 + *
1.7 + * The "null" cdrom device driver. Just provides a couple of empty stubs.
1.8 + *
1.9 + * Copyright (c) 2005 Nathan Keynes.
1.10 + *
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.15 + *
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + */
1.21 +
1.22 +#include "gdrom/gdrom.h"
1.23 +
1.24 +static gboolean cdnone_image_is_valid( FILE *f );
1.25 +static gdrom_disc_t cdnone_open_device( const gchar *filename, FILE *f );
1.26 +
1.27 +struct gdrom_image_class cdrom_device_class = { "None", NULL,
1.28 + cdnone_image_is_valid, cdnone_open_device };
1.29 +
1.30 +GList *gdrom_get_native_devices(void)
1.31 +{
1.32 + return NULL;
1.33 +}
1.34 +
1.35 +static gboolean cdnone_image_is_valid( FILE *f )
1.36 +{
1.37 + return FALSE;
1.38 +}
1.39 +
1.40 +static gdrom_disc_t cdnone_open_device( const gchar *filename, FILE *f )
1.41 +{
1.42 + return NULL;
1.43 +}
.