Changeset 77115 in vbox
- Timestamp:
- Feb 1, 2019 1:25:13 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HostServices/GuestControlSvc.h
r76958 r77115 85 85 * Structure keeping the context of a host callback. 86 86 */ 87 typedef struct VB oxGuestCtrlHostCbCtx87 typedef struct VBOXGUESTCTRLHOSTCBCTX 88 88 { 89 89 /** HGCM message number. */ … … 94 94 * be 0 if not supported. */ 95 95 uint32_t uProtocol; 96 97 96 } VBOXGUESTCTRLHOSTCBCTX, *PVBOXGUESTCTRLHOSTCBCTX; 98 97 … … 100 99 * Structure for low level HGCM host callback from 101 100 * the guest. No deep copy. */ 102 typedef struct VBoxGuestCtrlHostCallback 103 { 104 VBoxGuestCtrlHostCallback(uint32_t cParms, VBOXHGCMSVCPARM paParms[]) 105 : mParms(cParms), mpaParms(paParms) { } 106 101 typedef struct VBOXGUESTCTRLHOSTCALLBACK 102 { 107 103 /** Number of HGCM parameters. */ 108 uint32_t mParms;104 uint32_t mParms; 109 105 /** Actual HGCM parameters. */ 110 106 PVBOXHGCMSVCPARM mpaParms; 111 112 107 } VBOXGUESTCTRLHOSTCALLBACK, *PVBOXGUESTCTRLHOSTCALLBACK; 113 108 114 115 /** @name Host message destiation flags. 109 /** @name Host message destination flags. 116 110 * 117 111 * This is ORed into the context ID parameter Main after extending it to 64-bit. -
trunk/src/VBox/HostServices/GuestControl/VBoxGuestControlSvc.cpp
r76963 r77115 2121 2121 if (mpfnHostCallback) 2122 2122 { 2123 VBOXGUESTCTRLHOSTCALLBACK data (cParms, paParms);2123 VBOXGUESTCTRLHOSTCALLBACK data = { cParms, paParms }; 2124 2124 rc = mpfnHostCallback(mpvHostData, u32Function, &data, sizeof(data)); 2125 2125 }
Note:
See TracChangeset
for help on using the changeset viewer.