VirtualBox

source: vbox/trunk/src/VBox/Devices/Storage/HBDMgmt-generic.cpp

Last change on this file was 98103, checked in by vboxsync, 16 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
Line 
1/* $Id: HBDMgmt-generic.cpp 98103 2023-01-17 14:15:46Z vboxsync $ */
2/** @file
3 * VBox storage devices: Host block device management API.
4 */
5
6/*
7 * Copyright (C) 2015-2023 Oracle and/or its affiliates.
8 *
9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.virtualbox.org.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * SPDX-License-Identifier: GPL-3.0-only
26 */
27#include <VBox/cdefs.h>
28#include <iprt/errcore.h>
29#include <iprt/assert.h>
30
31#include "HBDMgmt.h"
32
33DECLHIDDEN(int) HBDMgrCreate(PHBDMGR phHbdMgr)
34{
35 AssertPtrReturn(phHbdMgr, VERR_INVALID_POINTER);
36 *phHbdMgr = NIL_HBDMGR;
37 return VINF_SUCCESS;
38}
39
40DECLHIDDEN(void) HBDMgrDestroy(HBDMGR hHbdMgr)
41{
42 NOREF(hHbdMgr);
43}
44
45DECLHIDDEN(bool) HBDMgrIsBlockDevice(const char *pszFilename)
46{
47 NOREF(pszFilename);
48 return false;
49}
50
51DECLHIDDEN(int) HBDMgrClaimBlockDevice(HBDMGR hHbdMgr, const char *pszFilename)
52{
53 NOREF(hHbdMgr);
54 NOREF(pszFilename);
55 return VINF_SUCCESS;
56}
57
58DECLHIDDEN(int) HBDMgrUnclaimBlockDevice(HBDMGR hHbdMgr, const char *pszFilename)
59{
60 NOREF(hHbdMgr);
61 NOREF(pszFilename);
62 return VINF_SUCCESS;
63}
64
65DECLHIDDEN(bool) HBDMgrIsBlockDeviceClaimed(HBDMGR hHbdMgr, const char *pszFilename)
66{
67 NOREF(hHbdMgr);
68 NOREF(pszFilename);
69 return false;
70}
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use