VirtualBox

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

Last change on this file since 3330 was 2981, checked in by vboxsync, 17 years ago

InnoTek -> innotek: all the headers and comments.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 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 as published by the Free Software Foundation,
13 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14 * distribution. VirtualBox OSE is distributed in the hope that it will
15 * be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * If you received this file as part of a commercial VirtualBox
18 * distribution, then only the terms of your commercial VirtualBox
19 * license agreement apply instead of the previous paragraph.
20 */
21
22#ifndef __VBox_vrdpusb_h__
23#define __VBox_vrdpusb_h__
24
25#include <VBox/cdefs.h>
26#include <VBox/types.h>
27
28#ifdef IN_RING0
29# error "There are no VRDP APIs available in Ring-0 Host Context!"
30#endif
31#ifdef IN_GC
32# error "There are no VRDP APIs available Guest Context!"
33#endif
34
35#define REMOTE_USB_BACKEND_PREFIX_S "REMOTEUSB"
36#define REMOTE_USB_BACKEND_PREFIX_LEN 9
37
38/* Forward declaration. */
39struct _REMOTEUSBDEVICE;
40typedef struct _REMOTEUSBDEVICE *PREMOTEUSBDEVICE;
41
42/* Forward declaration. */
43struct _REMOTEUSBQURB;
44typedef struct _REMOTEUSBQURB *PREMOTEUSBQURB;
45
46/* Forward declaration. Actually a class. */
47struct _REMOTEUSBBACKEND;
48typedef struct _REMOTEUSBBACKEND *PREMOTEUSBBACKEND;
49
50/* Pointer to this structure is passed to pfnCreateProxyDevice
51 * as the device specific pointer, when creating remote devices.
52 */
53typedef struct _REMOTEUSBCALLBACK
54{
55 PREMOTEUSBBACKEND pInstance;
56
57 DECLCALLBACKMEMBER(int, pfnOpen) (PREMOTEUSBBACKEND pInstance, const char *pszAddress, size_t cbAddress, PREMOTEUSBDEVICE *ppDevice);
58 DECLCALLBACKMEMBER(void, pfnClose) (PREMOTEUSBDEVICE pDevice);
59 DECLCALLBACKMEMBER(int, pfnReset) (PREMOTEUSBDEVICE pDevice);
60 DECLCALLBACKMEMBER(int, pfnSetConfig) (PREMOTEUSBDEVICE pDevice, uint8_t u8Cfg);
61 DECLCALLBACKMEMBER(int, pfnClaimInterface) (PREMOTEUSBDEVICE pDevice, uint8_t u8Ifnum);
62 DECLCALLBACKMEMBER(int, pfnReleaseInterface) (PREMOTEUSBDEVICE pDevice, uint8_t u8Ifnum);
63 DECLCALLBACKMEMBER(int, pfnInterfaceSetting) (PREMOTEUSBDEVICE pDevice, uint8_t u8Ifnum, uint8_t u8Setting);
64 DECLCALLBACKMEMBER(int, pfnQueueURB) (PREMOTEUSBDEVICE pDevice, uint8_t u8Type, uint8_t u8Ep, uint8_t u8Direction, uint32_t u32Len, void *pvData, void *pvURB, PREMOTEUSBQURB *ppRemoteURB);
65 DECLCALLBACKMEMBER(int, pfnReapURB) (PREMOTEUSBDEVICE pDevice, uint32_t u32Millies, void **ppvURB, uint32_t *pu32Len, uint32_t *pu32Err);
66 DECLCALLBACKMEMBER(int, pfnClearHaltedEP) (PREMOTEUSBDEVICE pDevice, uint8_t u8Ep);
67 DECLCALLBACKMEMBER(void, pfnCancelURB) (PREMOTEUSBDEVICE pDevice, PREMOTEUSBQURB pRemoteURB);
68} REMOTEUSBCALLBACK;
69
70#endif /* __VBox_vrdpusb_h__ */
71
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