Search
lxdream.org :: lxdream/src/drivers/cd_none.c
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/cd_none.c
changeset 678:35eb00945316
prev561:533f6b478071
next709:18c39a8e504c
author nkeynes
date Thu May 29 11:00:26 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Split gdrom.h into public and private gddriver.h
Reorganize gdrom mount to use a disc change hook
file annotate diff log raw
nkeynes@520
     1
/**
nkeynes@561
     2
 * $Id$
nkeynes@520
     3
 *
nkeynes@520
     4
 * The "null" cdrom device driver. Just provides a couple of empty stubs.
nkeynes@520
     5
 *
nkeynes@520
     6
 * Copyright (c) 2005 Nathan Keynes.
nkeynes@520
     7
 *
nkeynes@520
     8
 * This program is free software; you can redistribute it and/or modify
nkeynes@520
     9
 * it under the terms of the GNU General Public License as published by
nkeynes@520
    10
 * the Free Software Foundation; either version 2 of the License, or
nkeynes@520
    11
 * (at your option) any later version.
nkeynes@520
    12
 *
nkeynes@520
    13
 * This program is distributed in the hope that it will be useful,
nkeynes@520
    14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
nkeynes@520
    15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
nkeynes@520
    16
 * GNU General Public License for more details.
nkeynes@520
    17
 */
nkeynes@520
    18
nkeynes@678
    19
#include "gdrom/gddriver.h"
nkeynes@520
    20
nkeynes@520
    21
static gboolean cdnone_image_is_valid( FILE *f );
nkeynes@520
    22
static gdrom_disc_t cdnone_open_device( const gchar *filename, FILE *f );
nkeynes@520
    23
nkeynes@520
    24
struct gdrom_image_class cdrom_device_class = { "None", NULL,
nkeynes@520
    25
						cdnone_image_is_valid, cdnone_open_device };
nkeynes@520
    26
nkeynes@520
    27
GList *gdrom_get_native_devices(void)
nkeynes@520
    28
{
nkeynes@520
    29
    return NULL;
nkeynes@520
    30
}
nkeynes@520
    31
nkeynes@520
    32
static gboolean cdnone_image_is_valid( FILE *f )
nkeynes@520
    33
{
nkeynes@520
    34
    return FALSE;
nkeynes@520
    35
}
nkeynes@520
    36
nkeynes@520
    37
static gdrom_disc_t cdnone_open_device( const gchar *filename, FILE *f )
nkeynes@520
    38
{
nkeynes@520
    39
    return NULL;
nkeynes@520
    40
}
.