VirtualBox

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

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

(C) 2016

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1/* $Id: VBoxUSBFilterMgr.h 62490 2016-07-22 18:41:49Z vboxsync $ */
2/** @file
3 * VirtualBox Ring-0 USB Filter Manager.
4 */
5
6/*
7 * Copyright (C) 2007-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
18#ifndef ___VBoxUSBFilterMgr_h
19#define ___VBoxUSBFilterMgr_h
20
21#include <VBox/usbfilter.h>
22
23RT_C_DECLS_BEGIN
24
25/** @todo r=bird: VBOXUSBFILTER_CONTEXT isn't following the coding
26 * guildlines. Don't know which clueless dude did this... */
27#if defined(RT_OS_WINDOWS)
28typedef struct VBOXUSBFLTCTX *VBOXUSBFILTER_CONTEXT;
29#define VBOXUSBFILTER_CONTEXT_NIL NULL
30#else
31typedef RTPROCESS VBOXUSBFILTER_CONTEXT;
32#define VBOXUSBFILTER_CONTEXT_NIL NIL_RTPROCESS
33#endif
34
35int VBoxUSBFilterInit(void);
36void VBoxUSBFilterTerm(void);
37void VBoxUSBFilterRemoveOwner(VBOXUSBFILTER_CONTEXT Owner);
38int VBoxUSBFilterAdd(PCUSBFILTER pFilter, VBOXUSBFILTER_CONTEXT Owner, uintptr_t *puId);
39int VBoxUSBFilterRemove(VBOXUSBFILTER_CONTEXT Owner, uintptr_t uId);
40VBOXUSBFILTER_CONTEXT VBoxUSBFilterMatch(PCUSBFILTER pDevice, uintptr_t *puId);
41VBOXUSBFILTER_CONTEXT VBoxUSBFilterMatchEx(PCUSBFILTER pDevice, uintptr_t *puId, bool fRemoveFltIfOneShot, bool *pfFilter, bool *pfIsOneShot);
42VBOXUSBFILTER_CONTEXT VBoxUSBFilterGetOwner(uintptr_t uId);
43
44RT_C_DECLS_END
45
46#endif
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use