VirtualBox

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

Last change on this file since 44528 was 44528, checked in by vboxsync, 12 years ago

header (C) fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1/* $Id: VBoxUSBFilterMgr.h 44528 2013-02-04 14:27:54Z vboxsync $ */
2/** @file
3 * VirtualBox Ring-0 USB Filter Manager.
4 */
5
6/*
7 * Copyright (C) 2011 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#if defined(RT_OS_WINDOWS)
26typedef struct VBOXUSBFLTCTX *VBOXUSBFILTER_CONTEXT;
27#define VBOXUSBFILTER_CONTEXT_NIL NULL
28#else
29typedef RTPROCESS VBOXUSBFILTER_CONTEXT;
30#define VBOXUSBFILTER_CONTEXT_NIL NIL_RTPROCESS
31#endif
32
33int VBoxUSBFilterInit(void);
34void VBoxUSBFilterTerm(void);
35void VBoxUSBFilterRemoveOwner(VBOXUSBFILTER_CONTEXT Owner);
36int VBoxUSBFilterAdd(PCUSBFILTER pFilter, VBOXUSBFILTER_CONTEXT Owner, uintptr_t *puId);
37int VBoxUSBFilterRemove(VBOXUSBFILTER_CONTEXT Owner, uintptr_t uId);
38VBOXUSBFILTER_CONTEXT VBoxUSBFilterMatch(PCUSBFILTER pDevice, uintptr_t *puId);
39VBOXUSBFILTER_CONTEXT VBoxUSBFilterMatchEx(PCUSBFILTER pDevice, uintptr_t *puId, bool fRemoveFltIfOneShot, bool *pfFilter, bool *pfIsOneShot);
40VBOXUSBFILTER_CONTEXT VBoxUSBFilterGetOwner(uintptr_t uId);
41
42RT_C_DECLS_END
43
44#endif
Note: See TracBrowser for help on using the repository browser.

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