Changeset 44249 in vbox for trunk/src/VBox
- Timestamp:
- Jan 8, 2013 11:08:44 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 83109
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/GuestControl/service.cpp
r42354 r44249 128 128 * Structure for holding a buffered host command. 129 129 */ 130 struct HostCmd 130 typedef struct VBOXGUESTCTRLHOSTCMD 131 131 { 132 132 /** The context ID this command belongs to. Will be extracted … … 140 140 141 141 /** The standard constructor. */ 142 HostCmd() : mContextID(0), mTries(0) {}142 VBOXGUESTCTRLHOSTCMD() : mContextID(0), mTries(0) {} 143 143 }; 144 144 /** The host cmd list + iterator type */ 145 typedef std::list< HostCmd> HostCmdList;146 typedef std::list< HostCmd>::iterator HostCmdListIter;147 typedef std::list< HostCmd>::const_iterator HostCmdListIterConst;145 typedef std::list< VBOXGUESTCTRLHOSTCMD > HostCmdList; 146 typedef std::list< VBOXGUESTCTRLHOSTCMD >::iterator HostCmdListIter; 147 typedef std::list< VBOXGUESTCTRLHOSTCMD >::const_iterator HostCmdListIterConst; 148 148 149 149 /** … … 281 281 int paramBufferAllocate(PVBOXGUESTCTRPARAMBUFFER pBuf, uint32_t uMsg, uint32_t cParms, VBOXHGCMSVCPARM paParms[]); 282 282 void paramBufferFree(PVBOXGUESTCTRPARAMBUFFER pBuf); 283 int paramBufferAssign(VBOXHGCMSVCPARM paDstParms[], uint32_t cDstParms, PVBOXGUESTCTRPARAMBUFFERpSrcBuf);283 int paramBufferAssign(VBOXHGCMSVCPARM paDstParms[], uint32_t cDstParms, const VBOXGUESTCTRPARAMBUFFER *pSrcBuf); 284 284 int prepareExecute(uint32_t cParms, VBOXHGCMSVCPARM paParms[]); 285 285 int clientConnect(uint32_t u32ClientID, void *pvClient); 286 286 int clientDisconnect(uint32_t u32ClientID, void *pvClient); 287 int assignHostCmdToGuest( HostCmd*pCmd, VBOXHGCMCALLHANDLE callHandle, uint32_t cParms, VBOXHGCMSVCPARM paParms[]);287 int assignHostCmdToGuest(const VBOXGUESTCTRLHOSTCMD *pCmd, VBOXHGCMCALLHANDLE callHandle, uint32_t cParms, VBOXHGCMSVCPARM paParms[]); 288 288 int retrieveNextHostCmd(uint32_t u32ClientID, VBOXHGCMCALLHANDLE callHandle, uint32_t cParms, VBOXHGCMSVCPARM paParms[]); 289 289 int cancelHostCmd(uint32_t u32ContextID); … … 415 415 * @param pSrcBuf Parameter buffer to assign. 416 416 */ 417 int Service::paramBufferAssign(VBOXHGCMSVCPARM paDstParms[], uint32_t cDstParms, PVBOXGUESTCTRPARAMBUFFERpSrcBuf)417 int Service::paramBufferAssign(VBOXHGCMSVCPARM paDstParms[], uint32_t cDstParms, const VBOXGUESTCTRPARAMBUFFER *pSrcBuf) 418 418 { 419 419 AssertPtr(pSrcBuf); … … 614 614 * @param paParms Array of parameters. 615 615 */ 616 int Service::assignHostCmdToGuest( HostCmd*pCmd, VBOXHGCMCALLHANDLE callHandle, uint32_t cParms, VBOXHGCMSVCPARM paParms[])616 int Service::assignHostCmdToGuest(const VBOXGUESTCTRLHOSTCMD *pCmd, VBOXHGCMCALLHANDLE callHandle, uint32_t cParms, VBOXHGCMSVCPARM paParms[]) 617 617 { 618 618 AssertPtrReturn(pCmd, VERR_INVALID_POINTER); … … 701 701 * Get the next unassigned host command in the list. 702 702 */ 703 HostCmd&curCmd = mHostCmds.front();703 VBOXGUESTCTRLHOSTCMD &curCmd = mHostCmds.front(); 704 704 rc = assignHostCmdToGuest(&curCmd, callHandle, cParms, paParms); 705 705 if (RT_SUCCESS(rc)) … … 883 883 if (mNumClients == 0) 884 884 return VERR_NOT_FOUND; 885 HostCmdnewCmd;885 VBOXGUESTCTRLHOSTCMD newCmd; 886 886 int rc = paramBufferAllocate(&newCmd.mParmBuf, eFunction, cParms, paParms); 887 887 if ( RT_SUCCESS(rc)
Note:
See TracChangeset
for help on using the changeset viewer.