VirtualBox

source: vbox/trunk/src/VBox/Runtime/generic/cdrom-generic.cpp@ 62564

Last change on this file since 62564 was 62564, checked in by vboxsync, 8 years ago

IPRT: Mark unused parameters.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1/* $Id: cdrom-generic.cpp 62564 2016-07-26 14:43:03Z vboxsync $ */
2/** @file
3 * IPRT - CD/DVD/BD-ROM Drive, Generic.
4 */
5
6/*
7 * Copyright (C) 2012-2016 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * The contents of this file may alternatively be used under the terms
18 * of the Common Development and Distribution License Version 1.0
19 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20 * VirtualBox OSE distribution, in which case the provisions of the
21 * CDDL are applicable instead of those of the GPL.
22 *
23 * You may elect to license modified versions of this file under the
24 * terms and conditions of either the GPL or the CDDL or both.
25 */
26
27
28/*********************************************************************************************************************************
29* Header Files *
30*********************************************************************************************************************************/
31#include <iprt/cdrom.h>
32#include "internal/iprt.h"
33
34#include <iprt/assert.h>
35#include <iprt/err.h>
36
37
38RTDECL(int) RTCdromOpen(const char *psz, uint32_t fFlags, PRTCDROM phCdrom)
39{
40 RT_NOREF_PV(psz); RT_NOREF_PV(fFlags); RT_NOREF_PV(phCdrom);
41 return VERR_NOT_IMPLEMENTED;
42}
43
44
45RTDECL(uint32_t) RTCdromRetain(RTCDROM hCdrom)
46{
47 RT_NOREF_PV(hCdrom);
48 AssertFailedReturn(UINT32_MAX);
49}
50
51
52RTDECL(uint32_t) RTCdromRelease(RTCDROM hCdrom)
53{
54 RT_NOREF_PV(hCdrom);
55 AssertFailedReturn(UINT32_MAX);
56}
57
58
59RTDECL(int) RTCdromQueryMountPoint(RTCDROM hCdrom, char *pszMountPoint, size_t cbMountPoint)
60{
61 RT_NOREF_PV(hCdrom);
62 RT_NOREF_PV(pszMountPoint);
63 RT_NOREF_PV(cbMountPoint);
64 AssertFailedReturn(VERR_NOT_IMPLEMENTED);
65}
66
67
68RTDECL(int) RTCdromUnmount(RTCDROM hCdrom)
69{
70 RT_NOREF_PV(hCdrom);
71 AssertFailedReturn(VERR_NOT_IMPLEMENTED);
72}
73
74
75RTDECL(int) RTCdromEject(RTCDROM hCdrom, bool fForce)
76{
77 RT_NOREF_PV(hCdrom);
78 RT_NOREF_PV(fForce);
79 AssertFailedReturn(VERR_NOT_IMPLEMENTED);
80}
81
82
83RTDECL(int) RTCdromLock(RTCDROM hCdrom)
84{
85 RT_NOREF_PV(hCdrom);
86 AssertFailedReturn(VERR_NOT_IMPLEMENTED);
87}
88
89
90RTDECL(int) RTCdromUnlock(RTCDROM hCdrom)
91{
92 RT_NOREF_PV(hCdrom);
93 AssertFailedReturn(VERR_NOT_IMPLEMENTED);
94}
95
96
97RTDECL(unsigned) RTCdromCount(void)
98{
99 return 0;
100}
101
102RTDECL(int) RTCdromOrdinalToName(unsigned iCdrom, char *pszName, size_t cbName)
103{
104 RT_NOREF_PV(iCdrom);
105 if (cbName)
106 *pszName = '\0';
107 return VERR_OUT_OF_RANGE;
108}
109
110
111RTDECL(int) RTCdromOpenByOrdinal(unsigned iCdrom, uint32_t fFlags, PRTCDROM phCdrom)
112{
113 RT_NOREF_PV(iCdrom);
114 RT_NOREF_PV(fFlags);
115 RT_NOREF_PV(phCdrom);
116 return VERR_OUT_OF_RANGE;
117}
118
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette