1 | /*
|
---|
2 | * Copyright (C) 2010 Oracle Corporation
|
---|
3 | *
|
---|
4 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
5 | * available from http://www.virtualbox.org. This file is free software;
|
---|
6 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
7 | * General Public License (GPL) as published by the Free Software
|
---|
8 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
9 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
10 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
11 | */
|
---|
12 | #ifndef ___VBoxVideoCm_h___
|
---|
13 | #define ___VBoxVideoCm_h___
|
---|
14 |
|
---|
15 | typedef struct VBOXVIDEOCM_MGR
|
---|
16 | {
|
---|
17 | KEVENT SynchEvent;
|
---|
18 | /* session list */
|
---|
19 | LIST_ENTRY SessionList;
|
---|
20 | } VBOXVIDEOCM_MGR, *PVBOXVIDEOCM_MGR;
|
---|
21 |
|
---|
22 | typedef struct VBOXVIDEOCM_CTX
|
---|
23 | {
|
---|
24 | LIST_ENTRY SessionEntry;
|
---|
25 | struct VBOXVIDEOCM_SESSION *pSession;
|
---|
26 | uint64_t u64UmData;
|
---|
27 | } VBOXVIDEOCM_CTX, *PVBOXVIDEOCM_CTX;
|
---|
28 |
|
---|
29 | void vboxVideoCmCtxInitEmpty(PVBOXVIDEOCM_CTX pContext);
|
---|
30 |
|
---|
31 | NTSTATUS vboxVideoCmCtxAdd(PVBOXVIDEOCM_MGR pMgr, PVBOXVIDEOCM_CTX pContext, HANDLE hUmEvent, uint64_t u64UmData);
|
---|
32 | NTSTATUS vboxVideoCmCtxRemove(PVBOXVIDEOCM_MGR pMgr, PVBOXVIDEOCM_CTX pContext);
|
---|
33 | NTSTATUS vboxVideoCmInit(PVBOXVIDEOCM_MGR pMgr);
|
---|
34 | NTSTATUS vboxVideoCmTerm(PVBOXVIDEOCM_MGR pMgr);
|
---|
35 |
|
---|
36 | void* vboxVideoCmCmdCreate(PVBOXVIDEOCM_CTX pContext, uint32_t cbSize);
|
---|
37 | void* vboxVideoCmCmdReinitForContext(void *pvCmd, PVBOXVIDEOCM_CTX pContext);
|
---|
38 | void vboxVideoCmCmdRetain(void *pvCmd);
|
---|
39 | void vboxVideoCmCmdRelease(void *pvCmd);
|
---|
40 | #define VBOXVIDEOCM_SUBMITSIZE_DEFAULT (~0UL)
|
---|
41 | void vboxVideoCmCmdSubmit(void *pvCmd, uint32_t cbSize);
|
---|
42 |
|
---|
43 | NTSTATUS vboxVideoCmEscape(PVBOXVIDEOCM_CTX pContext, PVBOXDISPIFESCAPE_GETVBOXVIDEOCMCMD pCmd, uint32_t cbCmd);
|
---|
44 |
|
---|
45 | #endif /* #ifndef ___VBoxVideoCm_h___ */
|
---|