devices.hpp: Add default values on some parameters.

cdio.hpp: Remove bogus class.
This commit is contained in:
rocky
2006-01-25 06:36:07 +00:00
parent 1aff2d5bfb
commit 9011bba7ef
2 changed files with 8 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
/* -*- C++ -*- /* -*- C++ -*-
$Id: cdio.hpp,v 1.5 2006/01/17 02:09:32 rocky Exp $ $Id: cdio.hpp,v 1.6 2006/01/25 06:36:07 rocky Exp $
Copyright (C) 2005, 2006 Rocky Bernstein <rocky@panix.com> Copyright (C) 2005, 2006 Rocky Bernstein <rocky@panix.com>
@@ -36,13 +36,8 @@
// makes sense. // makes sense.
#include <cdio++/enum.hpp> #include <cdio++/enum.hpp>
class Cdio { /* Things related to devices. No class or object is needed. */
public:
// Other member functions
#include "devices.hpp" #include "devices.hpp"
};
/** A class relating to CD-Text. Use invalid track number 0 to specify /** A class relating to CD-Text. Use invalid track number 0 to specify
CD-Text for the CD (as opposed to a specific track). CD-Text for the CD (as opposed to a specific track).

View File

@@ -1,7 +1,7 @@
/* -*- C++ -*- /* -*- C++ -*-
$Id: devices.hpp,v 1.1 2005/11/10 11:11:16 rocky Exp $ $Id: devices.hpp,v 1.2 2006/01/25 06:36:07 rocky Exp $
Copyright (C) 2005 Rocky Bernstein <rocky@panix.com> Copyright (C) 2005, 2006 Rocky Bernstein <rocky@panix.com>
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@@ -49,7 +49,7 @@ freeDeviceList (char * device_list[])
NULL even though there may be a hardware CD-ROM. NULL even though there may be a hardware CD-ROM.
*/ */
char ** char **
getDevices(driver_id_t driver_id) getDevices(driver_id_t driver_id=DRIVER_DEVICE)
{ {
return cdio_get_devices(driver_id); return cdio_get_devices(driver_id);
} }
@@ -86,7 +86,7 @@ getDevices (driver_id_t &driver_id)
*/ */
char ** char **
getDevices(/*in*/ char *ppsz_search_devices[], getDevices(/*in*/ char *ppsz_search_devices[],
cdio_fs_anal_t capabilities, bool b_any) cdio_fs_anal_t capabilities, bool b_any=false)
{ {
return cdio_get_devices_with_cap(ppsz_search_devices, capabilities, b_any); return cdio_get_devices_with_cap(ppsz_search_devices, capabilities, b_any);
} }
@@ -99,8 +99,8 @@ getDevices(/*in*/ char *ppsz_search_devices[],
*/ */
char ** char **
getDevices(/*in*/ char* ppsz_search_devices[], getDevices(/*in*/ char* ppsz_search_devices[],
cdio_fs_anal_t capabilities, bool b_any, cdio_fs_anal_t capabilities, /*out*/ driver_id_t &driver_id,
/*out*/ driver_id_t &driver_id) bool b_any=false)
{ {
return cdio_get_devices_with_cap_ret(ppsz_search_devices, capabilities, return cdio_get_devices_with_cap_ret(ppsz_search_devices, capabilities,
b_any, &driver_id); b_any, &driver_id);