Search
lxdream.org :: lxdream/src/gdrom/cdnone.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/cdnone.c
changeset 489:45c8ddcf52cb
author nkeynes
date Sun Nov 04 05:07:49 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Test for presence of linux/cdrom.h at configure time, and only build the
linux driver if it's found successfully
file annotate diff log raw
nkeynes@489
     1
/**
nkeynes@489
     2
 * $Id: cdnone.c,v 1.1 2007-11-04 05:07:49 nkeynes Exp $
nkeynes@489
     3
 *
nkeynes@489
     4
 * The "null" cdrom device driver. Just provides a couple of empty stubs.
nkeynes@489
     5
 *
nkeynes@489
     6
 * Copyright (c) 2005 Nathan Keynes.
nkeynes@489
     7
 *
nkeynes@489
     8
 * This program is free software; you can redistribute it and/or modify
nkeynes@489
     9
 * it under the terms of the GNU General Public License as published by
nkeynes@489
    10
 * the Free Software Foundation; either version 2 of the License, or
nkeynes@489
    11
 * (at your option) any later version.
nkeynes@489
    12
 *
nkeynes@489
    13
 * This program is distributed in the hope that it will be useful,
nkeynes@489
    14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
nkeynes@489
    15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
nkeynes@489
    16
 * GNU General Public License for more details.
nkeynes@489
    17
 */
nkeynes@489
    18
nkeynes@489
    19
#include "gdrom/gdrom.h"
nkeynes@489
    20
nkeynes@489
    21
static gboolean cdnone_image_is_valid( FILE *f );
nkeynes@489
    22
static gdrom_disc_t cdnone_open_device( const gchar *filename, FILE *f );
nkeynes@489
    23
nkeynes@489
    24
struct gdrom_image_class cdrom_device_class = { "None", NULL,
nkeynes@489
    25
						cdnone_image_is_valid, cdnone_open_device };
nkeynes@489
    26
nkeynes@489
    27
GList *gdrom_get_native_devices(void)
nkeynes@489
    28
{
nkeynes@489
    29
    return NULL;
nkeynes@489
    30
}
nkeynes@489
    31
nkeynes@489
    32
static gboolean cdnone_image_is_valid( FILE *f )
nkeynes@489
    33
{
nkeynes@489
    34
    return FALSE;
nkeynes@489
    35
}
nkeynes@489
    36
nkeynes@489
    37
static gdrom_disc_t cdnone_open_device( const gchar *filename, FILE *f )
nkeynes@489
    38
{
nkeynes@489
    39
    return NULL;
nkeynes@489
    40
}
.