VirtualBox

source: vbox/trunk/src/VBox/HostDrivers/VBoxUSB/VBoxUSBFilterMgr.h@ 76530

Last change on this file since 76530 was 76527, checked in by vboxsync, 6 years ago

HostDrivers: scm --fix-header-guards. bugref:9344

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1/* $Id: VBoxUSBFilterMgr.h 76527 2018-12-30 05:55:44Z vboxsync $ */
2/** @file
3 * VirtualBox Ring-0 USB Filter Manager.
4 */
5
6/*
7 * Copyright (C) 2007-2017 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#ifndef ___VBoxUSBFilterMgr_h
28#define ___VBoxUSBFilterMgr_h
29#ifndef RT_WITHOUT_PRAGMA_ONCE
30# pragma once
31#endif
32
33#include <VBox/usbfilter.h>
34
35RT_C_DECLS_BEGIN
36
37/** @todo r=bird: VBOXUSBFILTER_CONTEXT isn't following the coding
38 * guildlines. Don't know which clueless dude did this... */
39#if defined(RT_OS_WINDOWS)
40typedef struct VBOXUSBFLTCTX *VBOXUSBFILTER_CONTEXT;
41#define VBOXUSBFILTER_CONTEXT_NIL NULL
42#else
43typedef RTPROCESS VBOXUSBFILTER_CONTEXT;
44#define VBOXUSBFILTER_CONTEXT_NIL NIL_RTPROCESS
45#endif
46
47int VBoxUSBFilterInit(void);
48void VBoxUSBFilterTerm(void);
49void VBoxUSBFilterRemoveOwner(VBOXUSBFILTER_CONTEXT Owner);
50int VBoxUSBFilterAdd(PCUSBFILTER pFilter, VBOXUSBFILTER_CONTEXT Owner, uintptr_t *puId);
51int VBoxUSBFilterRemove(VBOXUSBFILTER_CONTEXT Owner, uintptr_t uId);
52VBOXUSBFILTER_CONTEXT VBoxUSBFilterMatch(PCUSBFILTER pDevice, uintptr_t *puId);
53VBOXUSBFILTER_CONTEXT VBoxUSBFilterMatchEx(PCUSBFILTER pDevice, uintptr_t *puId, bool fRemoveFltIfOneShot, bool *pfFilter, bool *pfIsOneShot);
54VBOXUSBFILTER_CONTEXT VBoxUSBFilterGetOwner(uintptr_t uId);
55
56RT_C_DECLS_END
57
58#endif
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