VirtualBox

source: vbox/trunk/include/VBox/vrdpusb.h@ 6981

Last change on this file since 6981 was 5999, checked in by vboxsync, 17 years ago

The Giant CDDL Dual-License Header Change.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.2 KB
Line 
1/** @file
2 * VBox Remote Desktop Protocol:
3 * Remote USB backend interface.
4 */
5
6/*
7 * Copyright (C) 2006-2007 innotek GmbH
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 ___VBox_vrdpusb_h
28#define ___VBox_vrdpusb_h
29
30#include <VBox/cdefs.h>
31#include <VBox/types.h>
32
33#ifdef IN_RING0
34# error "There are no VRDP APIs available in Ring-0 Host Context!"
35#endif
36#ifdef IN_GC
37# error "There are no VRDP APIs available Guest Context!"
38#endif
39
40#define REMOTE_USB_BACKEND_PREFIX_S "REMOTEUSB"
41#define REMOTE_USB_BACKEND_PREFIX_LEN 9
42
43/* Forward declaration. */
44struct _REMOTEUSBDEVICE;
45typedef struct _REMOTEUSBDEVICE *PREMOTEUSBDEVICE;
46
47/* Forward declaration. */
48struct _REMOTEUSBQURB;
49typedef struct _REMOTEUSBQURB *PREMOTEUSBQURB;
50
51/* Forward declaration. Actually a class. */
52struct _REMOTEUSBBACKEND;
53typedef struct _REMOTEUSBBACKEND *PREMOTEUSBBACKEND;
54
55/* Pointer to this structure is passed to pfnCreateProxyDevice
56 * as the device specific pointer, when creating remote devices.
57 */
58typedef struct _REMOTEUSBCALLBACK
59{
60 PREMOTEUSBBACKEND pInstance;
61
62 DECLCALLBACKMEMBER(int, pfnOpen) (PREMOTEUSBBACKEND pInstance, const char *pszAddress, size_t cbAddress, PREMOTEUSBDEVICE *ppDevice);
63 DECLCALLBACKMEMBER(void, pfnClose) (PREMOTEUSBDEVICE pDevice);
64 DECLCALLBACKMEMBER(int, pfnReset) (PREMOTEUSBDEVICE pDevice);
65 DECLCALLBACKMEMBER(int, pfnSetConfig) (PREMOTEUSBDEVICE pDevice, uint8_t u8Cfg);
66 DECLCALLBACKMEMBER(int, pfnClaimInterface) (PREMOTEUSBDEVICE pDevice, uint8_t u8Ifnum);
67 DECLCALLBACKMEMBER(int, pfnReleaseInterface) (PREMOTEUSBDEVICE pDevice, uint8_t u8Ifnum);
68 DECLCALLBACKMEMBER(int, pfnInterfaceSetting) (PREMOTEUSBDEVICE pDevice, uint8_t u8Ifnum, uint8_t u8Setting);
69 DECLCALLBACKMEMBER(int, pfnQueueURB) (PREMOTEUSBDEVICE pDevice, uint8_t u8Type, uint8_t u8Ep, uint8_t u8Direction, uint32_t u32Len, void *pvData, void *pvURB, PREMOTEUSBQURB *ppRemoteURB);
70 DECLCALLBACKMEMBER(int, pfnReapURB) (PREMOTEUSBDEVICE pDevice, uint32_t u32Millies, void **ppvURB, uint32_t *pu32Len, uint32_t *pu32Err);
71 DECLCALLBACKMEMBER(int, pfnClearHaltedEP) (PREMOTEUSBDEVICE pDevice, uint8_t u8Ep);
72 DECLCALLBACKMEMBER(void, pfnCancelURB) (PREMOTEUSBDEVICE pDevice, PREMOTEUSBQURB pRemoteURB);
73} REMOTEUSBCALLBACK;
74
75#endif
76
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