Changeset 80995 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Sep 25, 2019 7:07:18 AM (5 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedClipboard
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-darwin.cpp
r80858 r80995 54 54 55 55 /** 56 * Checks if something is present on the clipboard and calls sh aredClipboardSvcReportMsg.56 * Checks if something is present on the clipboard and calls shclSvcReportMsg. 57 57 * 58 58 * @returns IPRT status code (ignored). … … 76 76 formatData.uFormats = fFormats; 77 77 78 rc = sh aredClipboardSvcFormatsReport(pCtx->pClient, &formatData);78 rc = shclSvcFormatsReport(pCtx->pClient, &formatData); 79 79 } 80 80 … … 117 117 118 118 119 int Sh aredClipboardSvcImplInit(void)119 int ShClSvcImplInit(void) 120 120 { 121 121 Log(("vboxClipboardInit\n")); … … 137 137 } 138 138 139 void Sh aredClipboardSvcImplDestroy(void)139 void ShClSvcImplDestroy(void) 140 140 { 141 141 /* … … 156 156 } 157 157 158 int Sh aredClipboardSvcImplConnect(PSHCLCLIENT pClient, bool fHeadless)158 int ShClSvcImplConnect(PSHCLCLIENT pClient, bool fHeadless) 159 159 { 160 160 RT_NOREF(fHeadless); … … 172 172 173 173 /* Initially sync the host clipboard content with the client. */ 174 int rc = Sh aredClipboardSvcImplSync(pClient);175 176 VBoxSvcClipboardUnlock(); 177 return rc; 178 } 179 180 int Sh aredClipboardSvcImplSync(PSHCLCLIENT pClient)174 int rc = ShClSvcImplSync(pClient); 175 176 VBoxSvcClipboardUnlock(); 177 return rc; 178 } 179 180 int ShClSvcImplSync(PSHCLCLIENT pClient) 181 181 { 182 182 /* Sync the host clipboard content with the client. */ … … 190 190 } 191 191 192 int Sh aredClipboardSvcImplDisconnect(PSHCLCLIENT pClient)192 int ShClSvcImplDisconnect(PSHCLCLIENT pClient) 193 193 { 194 194 VBoxSvcClipboardLock(); … … 201 201 } 202 202 203 int Sh aredClipboardSvcImplFormatAnnounce(PSHCLCLIENT pClient,204 203 int ShClSvcImplFormatAnnounce(PSHCLCLIENT pClient, 204 PSHCLCLIENTCMDCTX pCmdCtx, PSHCLFORMATDATA pFormats) 205 205 { 206 206 RT_NOREF(pCmdCtx); … … 225 225 dataReq.cbSize = _64K; /** @todo Make this more dynamic. */ 226 226 227 return sh aredClipboardSvcDataReadRequest(pClient, &dataReq, NULL /* puEvent */);227 return shclSvcDataReadRequest(pClient, &dataReq, NULL /* puEvent */); 228 228 } 229 229 … … 236 236 * @param pcbActual Where to write the actual size of the written data. 237 237 */ 238 int Sh aredClipboardSvcImplReadData(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx,239 238 int ShClSvcImplReadData(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx, 239 PSHCLDATABLOCK pData, uint32_t *pcbActual) 240 240 { 241 241 RT_NOREF(pCmdCtx); … … 262 262 * @param pData Data block to write to clipboard. 263 263 */ 264 int Sh aredClipboardSvcImplWriteData(PSHCLCLIENT pClient,265 264 int ShClSvcImplWriteData(PSHCLCLIENT pClient, 265 PSHCLCLIENTCMDCTX pCmdCtx, PSHCLDATABLOCK pData) 266 266 { 267 267 RT_NOREF(pCmdCtx); … … 277 277 278 278 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 279 int Sh aredClipboardSvcImplTransferReadDir(PSHCLCLIENT pClient, PSHCLDIRDATA pDirData)279 int ShClSvcImplTransferReadDir(PSHCLCLIENT pClient, PSHCLDIRDATA pDirData) 280 280 { 281 281 RT_NOREF(pClient, pDirData); … … 283 283 } 284 284 285 int Sh aredClipboardSvcImplTransferWriteDir(PSHCLCLIENT pClient, PSHCLDIRDATA pDirData)285 int ShClSvcImplTransferWriteDir(PSHCLCLIENT pClient, PSHCLDIRDATA pDirData) 286 286 { 287 287 RT_NOREF(pClient, pDirData); … … 289 289 } 290 290 291 int Sh aredClipboardSvcImplTransferReadFileHdr(PSHCLCLIENT pClient, PSHCLFILEHDR pFileHdr)291 int ShClSvcImplTransferReadFileHdr(PSHCLCLIENT pClient, PSHCLFILEHDR pFileHdr) 292 292 { 293 293 RT_NOREF(pClient, pFileHdr); … … 295 295 } 296 296 297 int Sh aredClipboardSvcImplTransferWriteFileHdr(PSHCLCLIENT pClient, PSHCLFILEHDR pFileHdr)297 int ShClSvcImplTransferWriteFileHdr(PSHCLCLIENT pClient, PSHCLFILEHDR pFileHdr) 298 298 { 299 299 RT_NOREF(pClient, pFileHdr); … … 301 301 } 302 302 303 int Sh aredClipboardSvcImplTransferReadFileData(PSHCLCLIENT pClient, PSHCLFILEDATA pFileData)303 int ShClSvcImplTransferReadFileData(PSHCLCLIENT pClient, PSHCLFILEDATA pFileData) 304 304 { 305 305 RT_NOREF(pClient, pFileData); … … 307 307 } 308 308 309 int Sh aredClipboardSvcImplTransferWriteFileData(PSHCLCLIENT pClient, PSHCLFILEDATA pFileData)309 int ShClSvcImplTransferWriteFileData(PSHCLCLIENT pClient, PSHCLFILEDATA pFileData) 310 310 { 311 311 RT_NOREF(pClient, pFileData); -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-internal.h
r80990 r80995 179 179 * The service functions. Locking is between the service thread and the platform-dependent (window) thread. 180 180 */ 181 int sh aredClipboardSvcDataReadRequest(PSHCLCLIENT pClient, PSHCLDATAREQ pDataReq, PSHCLEVENTID puEvent);182 int sh aredClipboardSvcDataReadSignal(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx, PSHCLDATABLOCK pData);183 int sh aredClipboardSvcFormatsReport(PSHCLCLIENT pClient, PSHCLFORMATDATA pFormats);184 185 uint32_t sh aredClipboardSvcGetMode(void);186 int sh aredClipboardSvcSetSource(PSHCLCLIENT pClient, SHCLSOURCE enmSource);187 188 void sh aredClipboardSvcMsgQueueReset(PSHCLCLIENT pClient);189 PSHCLCLIENTMSG sh aredClipboardSvcMsgAlloc(uint32_t uMsg, uint32_t cParms);190 void sh aredClipboardSvcMsgFree(PSHCLCLIENTMSG pMsg);191 void sh aredClipboardSvcMsgSetPeekReturn(PSHCLCLIENTMSG pMsg, PVBOXHGCMSVCPARM paDstParms, uint32_t cDstParms);192 int sh aredClipboardSvcMsgAdd(PSHCLCLIENT pClient, PSHCLCLIENTMSG pMsg, bool fAppend);193 int sh aredClipboardSvcMsgPeek(PSHCLCLIENT pClient, VBOXHGCMCALLHANDLE hCall, uint32_t cParms, VBOXHGCMSVCPARM paParms[], bool fWait);194 int sh aredClipboardSvcMsgGet(PSHCLCLIENT pClient, VBOXHGCMCALLHANDLE hCall, uint32_t cParms, VBOXHGCMSVCPARM paParms[]);195 196 int sh aredClipboardSvcClientWakeup(PSHCLCLIENT pClient);181 int shclSvcDataReadRequest(PSHCLCLIENT pClient, PSHCLDATAREQ pDataReq, PSHCLEVENTID puEvent); 182 int shclSvcDataReadSignal(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx, PSHCLDATABLOCK pData); 183 int shclSvcFormatsReport(PSHCLCLIENT pClient, PSHCLFORMATDATA pFormats); 184 185 uint32_t shclSvcGetMode(void); 186 int shclSvcSetSource(PSHCLCLIENT pClient, SHCLSOURCE enmSource); 187 188 void shclSvcMsgQueueReset(PSHCLCLIENT pClient); 189 PSHCLCLIENTMSG shclSvcMsgAlloc(uint32_t uMsg, uint32_t cParms); 190 void shclSvcMsgFree(PSHCLCLIENTMSG pMsg); 191 void shclSvcMsgSetPeekReturn(PSHCLCLIENTMSG pMsg, PVBOXHGCMSVCPARM paDstParms, uint32_t cDstParms); 192 int shclSvcMsgAdd(PSHCLCLIENT pClient, PSHCLCLIENTMSG pMsg, bool fAppend); 193 int shclSvcMsgPeek(PSHCLCLIENT pClient, VBOXHGCMCALLHANDLE hCall, uint32_t cParms, VBOXHGCMSVCPARM paParms[], bool fWait); 194 int shclSvcMsgGet(PSHCLCLIENT pClient, VBOXHGCMCALLHANDLE hCall, uint32_t cParms, VBOXHGCMSVCPARM paParms[]); 195 196 int shclSvcClientWakeup(PSHCLCLIENT pClient); 197 197 198 198 # ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 199 int sh aredClipboardSvcTransferStart(PSHCLCLIENT pClient,200 201 202 int sh aredClipboardSvcTransferStop(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer);203 bool sh aredClipboardSvcTransferMsgIsAllowed(uint32_t uMode, uint32_t uMsg);199 int shclSvcTransferStart(PSHCLCLIENT pClient, 200 SHCLTRANSFERDIR enmDir, SHCLSOURCE enmSource, 201 PSHCLTRANSFER *ppTransfer); 202 int shclSvcTransferStop(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer); 203 bool shclSvcTransferMsgIsAllowed(uint32_t uMode, uint32_t uMsg); 204 204 # endif /* VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */ 205 205 … … 207 207 * Platform-dependent implementations. 208 208 */ 209 int Sh aredClipboardSvcImplInit(void);210 void Sh aredClipboardSvcImplDestroy(void);211 212 int Sh aredClipboardSvcImplConnect(PSHCLCLIENT pClient, bool fHeadless);213 int Sh aredClipboardSvcImplDisconnect(PSHCLCLIENT pClient);214 int Sh aredClipboardSvcImplFormatAnnounce(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx, PSHCLFORMATDATA pFormats);209 int ShClSvcImplInit(void); 210 void ShClSvcImplDestroy(void); 211 212 int ShClSvcImplConnect(PSHCLCLIENT pClient, bool fHeadless); 213 int ShClSvcImplDisconnect(PSHCLCLIENT pClient); 214 int ShClSvcImplFormatAnnounce(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx, PSHCLFORMATDATA pFormats); 215 215 /** @todo Document: Can return VINF_HGCM_ASYNC_EXECUTE to defer returning read data.*/ 216 int Sh aredClipboardSvcImplReadData(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx, PSHCLDATABLOCK pData, uint32_t *pcbActual);217 int Sh aredClipboardSvcImplWriteData(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx, PSHCLDATABLOCK pData);216 int ShClSvcImplReadData(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx, PSHCLDATABLOCK pData, uint32_t *pcbActual); 217 int ShClSvcImplWriteData(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx, PSHCLDATABLOCK pData); 218 218 /** 219 219 * Synchronise the contents of the host clipboard with the guest, called by the HGCM layer 220 220 * after a save and restore of the guest. 221 221 */ 222 int Sh aredClipboardSvcImplSync(PSHCLCLIENT pClient);222 int ShClSvcImplSync(PSHCLCLIENT pClient); 223 223 224 224 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 225 int sharedClipboardSvcTransferIfaceOpen(PSHCLPROVIDERCTX pCtx); 226 int sharedClipboardSvcTransferIfaceClose(PSHCLPROVIDERCTX pCtx); 227 228 int sharedClipboardSvcTransferIfaceGetRoots(PSHCLPROVIDERCTX pCtx, PSHCLROOTLIST *ppRootList); 229 230 int sharedClipboardSvcTransferIfaceListOpen(PSHCLPROVIDERCTX pCtx, PSHCLLISTOPENPARMS pOpenParms, PSHCLLISTHANDLE phList); 231 int sharedClipboardSvcTransferIfaceListClose(PSHCLPROVIDERCTX pCtx, SHCLLISTHANDLE hList); 232 int sharedClipboardSvcTransferIfaceListHdrRead(PSHCLPROVIDERCTX pCtx, SHCLLISTHANDLE hList, PSHCLLISTHDR pListHdr); 233 int sharedClipboardSvcTransferIfaceListHdrWrite(PSHCLPROVIDERCTX pCtx, SHCLLISTHANDLE hList, PSHCLLISTHDR pListHdr); 234 int sharedClipboardSvcTransferIfaceListEntryRead(PSHCLPROVIDERCTX pCtx, SHCLLISTHANDLE hList, PSHCLLISTENTRY pListEntry); 235 int sharedClipboardSvcTransferIfaceListEntryWrite(PSHCLPROVIDERCTX pCtx, SHCLLISTHANDLE hList, PSHCLLISTENTRY pListEntry); 236 237 int sharedClipboardSvcTransferIfaceObjOpen(PSHCLPROVIDERCTX pCtx, PSHCLOBJOPENCREATEPARMS pCreateParms, 238 PSHCLOBJHANDLE phObj); 239 int sharedClipboardSvcTransferIfaceObjClose(PSHCLPROVIDERCTX pCtx, SHCLOBJHANDLE hObj); 240 int sharedClipboardSvcTransferIfaceObjRead(PSHCLPROVIDERCTX pCtx, SHCLOBJHANDLE hObj, 241 void *pvData, uint32_t cbData, uint32_t fFlags, uint32_t *pcbRead); 242 int sharedClipboardSvcTransferIfaceObjWrite(PSHCLPROVIDERCTX pCtx, SHCLOBJHANDLE hObj, 243 void *pvData, uint32_t cbData, uint32_t fFlags, uint32_t *pcbWritten); 225 int shclSvcTransferAreaDetach(PSHCLCLIENTSTATE pClientState, PSHCLTRANSFER pTransfer); 226 int shclSvcTransferHandler(PSHCLCLIENT pClient, VBOXHGCMCALLHANDLE callHandle, uint32_t u32Function, 227 uint32_t cParms, VBOXHGCMSVCPARM paParms[], uint64_t tsArrival); 228 int shclSvcTransferHostHandler(uint32_t u32Function, uint32_t cParms, VBOXHGCMSVCPARM paParms[]); 229 230 int shclSvcTransferIfaceOpen(PSHCLPROVIDERCTX pCtx); 231 int shclSvcTransferIfaceClose(PSHCLPROVIDERCTX pCtx); 232 233 int shclSvcTransferIfaceGetRoots(PSHCLPROVIDERCTX pCtx, PSHCLROOTLIST *ppRootList); 234 235 int shclSvcTransferIfaceListOpen(PSHCLPROVIDERCTX pCtx, PSHCLLISTOPENPARMS pOpenParms, PSHCLLISTHANDLE phList); 236 int shclSvcTransferIfaceListClose(PSHCLPROVIDERCTX pCtx, SHCLLISTHANDLE hList); 237 int shclSvcTransferIfaceListHdrRead(PSHCLPROVIDERCTX pCtx, SHCLLISTHANDLE hList, PSHCLLISTHDR pListHdr); 238 int shclSvcTransferIfaceListHdrWrite(PSHCLPROVIDERCTX pCtx, SHCLLISTHANDLE hList, PSHCLLISTHDR pListHdr); 239 int shclSvcTransferIfaceListEntryRead(PSHCLPROVIDERCTX pCtx, SHCLLISTHANDLE hList, PSHCLLISTENTRY pListEntry); 240 int shclSvcTransferIfaceListEntryWrite(PSHCLPROVIDERCTX pCtx, SHCLLISTHANDLE hList, PSHCLLISTENTRY pListEntry); 241 242 int shclSvcTransferIfaceObjOpen(PSHCLPROVIDERCTX pCtx, PSHCLOBJOPENCREATEPARMS pCreateParms, 243 PSHCLOBJHANDLE phObj); 244 int shclSvcTransferIfaceObjClose(PSHCLPROVIDERCTX pCtx, SHCLOBJHANDLE hObj); 245 int shclSvcTransferIfaceObjRead(PSHCLPROVIDERCTX pCtx, SHCLOBJHANDLE hObj, 246 void *pvData, uint32_t cbData, uint32_t fFlags, uint32_t *pcbRead); 247 int shclSvcTransferIfaceObjWrite(PSHCLPROVIDERCTX pCtx, SHCLOBJHANDLE hObj, 248 void *pvData, uint32_t cbData, uint32_t fFlags, uint32_t *pcbWritten); 244 249 245 250 DECLCALLBACK(void) VBoxSvcClipboardTransferPrepareCallback(PSHCLTRANSFERCALLBACKDATA pData); … … 250 255 DECLCALLBACK(void) VBoxSvcClipboardTransferErrorCallback(PSHCLTRANSFERCALLBACKDATA pData, int rc); 251 256 252 int Sh aredClipboardSvcImplTransferCreate(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer);253 int Sh aredClipboardSvcImplTransferDestroy(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer);257 int ShClSvcImplTransferCreate(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer); 258 int ShClSvcImplTransferDestroy(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer); 254 259 #endif /*VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */ 255 260 -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-transfers.cpp
r80990 r80995 48 48 * Prototypes * 49 49 *********************************************************************************************************************************/ 50 static int sh aredClipboardSvcTransferSetListOpen(uint32_t cParms, VBOXHGCMSVCPARM paParms[],51 52 static int sh aredClipboardSvcTransferSetListClose(uint32_t cParms, VBOXHGCMSVCPARM paParms[],53 50 static int shclSvcTransferSetListOpen(uint32_t cParms, VBOXHGCMSVCPARM paParms[], 51 PSHCLMSGCTX pMsgCtx, PSHCLLISTOPENPARMS pOpenParms); 52 static int shclSvcTransferSetListClose(uint32_t cParms, VBOXHGCMSVCPARM paParms[], 53 PSHCLMSGCTX pMsgCtx, SHCLLISTHANDLE hList); 54 54 55 55 … … 58 58 *********************************************************************************************************************************/ 59 59 60 DECLCALLBACK(int) sh aredClipboardSvcTransferIfaceOpen(PSHCLPROVIDERCTX pCtx)60 DECLCALLBACK(int) shclSvcTransferIfaceOpen(PSHCLPROVIDERCTX pCtx) 61 61 { 62 62 RT_NOREF(pCtx); … … 66 66 } 67 67 68 DECLCALLBACK(int) sh aredClipboardSvcTransferIfaceClose(PSHCLPROVIDERCTX pCtx)68 DECLCALLBACK(int) shclSvcTransferIfaceClose(PSHCLPROVIDERCTX pCtx) 69 69 { 70 70 RT_NOREF(pCtx); … … 74 74 } 75 75 76 DECLCALLBACK(int) sh aredClipboardSvcTransferIfaceGetRoots(PSHCLPROVIDERCTX pCtx, PSHCLROOTLIST *ppRootList)76 DECLCALLBACK(int) shclSvcTransferIfaceGetRoots(PSHCLPROVIDERCTX pCtx, PSHCLROOTLIST *ppRootList) 77 77 { 78 78 LogFlowFuncEnter(); … … 83 83 int rc; 84 84 85 PSHCLCLIENTMSG pMsgHdr = sh aredClipboardSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_ROOT_LIST_HDR_READ,86 85 PSHCLCLIENTMSG pMsgHdr = shclSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_ROOT_LIST_HDR_READ, 86 VBOX_SHCL_CPARMS_ROOT_LIST_HDR_READ); 87 87 if (pMsgHdr) 88 88 { … … 93 93 HGCMSvcSetU32(&pMsgHdr->paParms[1], 0 /* fRoots */); 94 94 95 rc = sh aredClipboardSvcMsgAdd(pClient, pMsgHdr, true /* fAppend */);95 rc = shclSvcMsgAdd(pClient, pMsgHdr, true /* fAppend */); 96 96 if (RT_SUCCESS(rc)) 97 97 { … … 99 99 AssertRC(rc2); 100 100 101 rc = sh aredClipboardSvcClientWakeup(pClient);101 rc = shclSvcClientWakeup(pClient); 102 102 if (RT_SUCCESS(rc)) 103 103 { … … 124 124 for (uint32_t i = 0; i < pSrcRootListHdr->cRoots; i++) 125 125 { 126 PSHCLCLIENTMSG pMsgEntry = sh aredClipboardSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_ROOT_LIST_ENTRY_READ,127 126 PSHCLCLIENTMSG pMsgEntry = shclSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_ROOT_LIST_ENTRY_READ, 127 VBOX_SHCL_CPARMS_ROOT_LIST_ENTRY_READ_REQ); 128 128 129 129 uEvent = SharedClipboardEventIDGenerate(&pCtx->pTransfer->Events); … … 138 138 AssertRC(rc2); 139 139 140 rc = sh aredClipboardSvcMsgAdd(pClient, pMsgEntry, true /* fAppend */);140 rc = shclSvcMsgAdd(pClient, pMsgEntry, true /* fAppend */); 141 141 if (RT_FAILURE(rc)) 142 142 break; … … 192 192 } 193 193 194 DECLCALLBACK(int) sh aredClipboardSvcTransferIfaceListOpen(PSHCLPROVIDERCTX pCtx,195 194 DECLCALLBACK(int) shclSvcTransferIfaceListOpen(PSHCLPROVIDERCTX pCtx, 195 PSHCLLISTOPENPARMS pOpenParms, PSHCLLISTHANDLE phList) 196 196 { 197 197 LogFlowFuncEnter(); … … 202 202 int rc; 203 203 204 PSHCLCLIENTMSG pMsg = sh aredClipboardSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_LIST_OPEN,205 204 PSHCLCLIENTMSG pMsg = shclSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_LIST_OPEN, 205 VBOX_SHCL_CPARMS_LIST_OPEN); 206 206 if (pMsg) 207 207 { … … 209 209 210 210 pMsg->Ctx.uContextID = VBOX_SHCL_CONTEXTID_MAKE(pClient->State.uSessionID, pCtx->pTransfer->State.uID, 211 212 213 rc = sh aredClipboardSvcTransferSetListOpen(pMsg->cParms, pMsg->paParms, &pMsg->Ctx, pOpenParms);214 if (RT_SUCCESS(rc)) 215 { 216 rc = sh aredClipboardSvcMsgAdd(pClient, pMsg, true /* fAppend */);211 uEvent); 212 213 rc = shclSvcTransferSetListOpen(pMsg->cParms, pMsg->paParms, &pMsg->Ctx, pOpenParms); 214 if (RT_SUCCESS(rc)) 215 { 216 rc = shclSvcMsgAdd(pClient, pMsg, true /* fAppend */); 217 217 if (RT_SUCCESS(rc)) 218 218 { … … 220 220 AssertRC(rc2); 221 221 222 rc = sh aredClipboardSvcClientWakeup(pClient);222 rc = shclSvcClientWakeup(pClient); 223 223 if (RT_SUCCESS(rc)) 224 224 { … … 251 251 } 252 252 253 DECLCALLBACK(int) sh aredClipboardSvcTransferIfaceListClose(PSHCLPROVIDERCTX pCtx, SHCLLISTHANDLE hList)253 DECLCALLBACK(int) shclSvcTransferIfaceListClose(PSHCLPROVIDERCTX pCtx, SHCLLISTHANDLE hList) 254 254 { 255 255 LogFlowFuncEnter(); … … 260 260 int rc; 261 261 262 PSHCLCLIENTMSG pMsg = sh aredClipboardSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_LIST_CLOSE,263 262 PSHCLCLIENTMSG pMsg = shclSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_LIST_CLOSE, 263 VBOX_SHCL_CPARMS_LIST_CLOSE); 264 264 if (pMsg) 265 265 { … … 267 267 268 268 pMsg->Ctx.uContextID = VBOX_SHCL_CONTEXTID_MAKE(pClient->State.uSessionID, pCtx->pTransfer->State.uID, 269 270 271 rc = sh aredClipboardSvcTransferSetListClose(pMsg->cParms, pMsg->paParms, &pMsg->Ctx, hList);272 if (RT_SUCCESS(rc)) 273 { 274 rc = sh aredClipboardSvcMsgAdd(pClient, pMsg, true /* fAppend */);269 uEvent); 270 271 rc = shclSvcTransferSetListClose(pMsg->cParms, pMsg->paParms, &pMsg->Ctx, hList); 272 if (RT_SUCCESS(rc)) 273 { 274 rc = shclSvcMsgAdd(pClient, pMsg, true /* fAppend */); 275 275 if (RT_SUCCESS(rc)) 276 276 { … … 278 278 AssertRC(rc2); 279 279 280 rc = sh aredClipboardSvcClientWakeup(pClient);280 rc = shclSvcClientWakeup(pClient); 281 281 if (RT_SUCCESS(rc)) 282 282 { … … 298 298 } 299 299 300 DECLCALLBACK(int) sh aredClipboardSvcTransferIfaceListHdrRead(PSHCLPROVIDERCTX pCtx,301 300 DECLCALLBACK(int) shclSvcTransferIfaceListHdrRead(PSHCLPROVIDERCTX pCtx, 301 SHCLLISTHANDLE hList, PSHCLLISTHDR pListHdr) 302 302 { 303 303 LogFlowFuncEnter(); … … 308 308 int rc; 309 309 310 PSHCLCLIENTMSG pMsg = sh aredClipboardSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_LIST_HDR_READ,311 310 PSHCLCLIENTMSG pMsg = shclSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_LIST_HDR_READ, 311 VBOX_SHCL_CPARMS_LIST_HDR_READ_REQ); 312 312 if (pMsg) 313 313 { … … 319 319 HGCMSvcSetU32(&pMsg->paParms[2], 0 /* fFlags */); 320 320 321 rc = sh aredClipboardSvcMsgAdd(pClient, pMsg, true /* fAppend */);321 rc = shclSvcMsgAdd(pClient, pMsg, true /* fAppend */); 322 322 if (RT_SUCCESS(rc)) 323 323 { … … 325 325 AssertRC(rc2); 326 326 327 rc = sh aredClipboardSvcClientWakeup(pClient);327 rc = shclSvcClientWakeup(pClient); 328 328 if (RT_SUCCESS(rc)) 329 329 { 330 330 PSHCLEVENTPAYLOAD pPayload; 331 331 rc = SharedClipboardEventWait(&pCtx->pTransfer->Events, uEvent, 332 332 pCtx->pTransfer->uTimeoutMs, &pPayload); 333 333 if (RT_SUCCESS(rc)) 334 334 { … … 349 349 } 350 350 351 DECLCALLBACK(int) sh aredClipboardSvcTransferIfaceListHdrWrite(PSHCLPROVIDERCTX pCtx,352 351 DECLCALLBACK(int) shclSvcTransferIfaceListHdrWrite(PSHCLPROVIDERCTX pCtx, 352 SHCLLISTHANDLE hList, PSHCLLISTHDR pListHdr) 353 353 { 354 354 RT_NOREF(pCtx, hList, pListHdr); … … 359 359 } 360 360 361 DECLCALLBACK(int) sh aredClipboardSvcTransferIfaceListEntryRead(PSHCLPROVIDERCTX pCtx,362 361 DECLCALLBACK(int) shclSvcTransferIfaceListEntryRead(PSHCLPROVIDERCTX pCtx, 362 SHCLLISTHANDLE hList, PSHCLLISTENTRY pListEntry) 363 363 { 364 364 LogFlowFuncEnter(); … … 369 369 int rc; 370 370 371 PSHCLCLIENTMSG pMsg = sh aredClipboardSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_LIST_ENTRY_READ,372 371 PSHCLCLIENTMSG pMsg = shclSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_LIST_ENTRY_READ, 372 VBOX_SHCL_CPARMS_LIST_ENTRY_READ); 373 373 if (pMsg) 374 374 { … … 376 376 377 377 HGCMSvcSetU32(&pMsg->paParms[0], VBOX_SHCL_CONTEXTID_MAKE(pClient->State.uSessionID, 378 378 pCtx->pTransfer->State.uID, uEvent)); 379 379 HGCMSvcSetU64(&pMsg->paParms[1], hList); 380 380 HGCMSvcSetU32(&pMsg->paParms[2], 0 /* fInfo */); 381 381 382 rc = sh aredClipboardSvcMsgAdd(pClient, pMsg, true /* fAppend */);382 rc = shclSvcMsgAdd(pClient, pMsg, true /* fAppend */); 383 383 if (RT_SUCCESS(rc)) 384 384 { … … 386 386 AssertRC(rc2); 387 387 388 rc = sh aredClipboardSvcClientWakeup(pClient);388 rc = shclSvcClientWakeup(pClient); 389 389 if (RT_SUCCESS(rc)) 390 390 { … … 409 409 } 410 410 411 DECLCALLBACK(int) sh aredClipboardSvcTransferIfaceListEntryWrite(PSHCLPROVIDERCTX pCtx,412 411 DECLCALLBACK(int) shclSvcTransferIfaceListEntryWrite(PSHCLPROVIDERCTX pCtx, 412 SHCLLISTHANDLE hList, PSHCLLISTENTRY pListEntry) 413 413 { 414 414 RT_NOREF(pCtx, hList, pListEntry); … … 419 419 } 420 420 421 int sh aredClipboardSvcTransferIfaceObjOpen(PSHCLPROVIDERCTX pCtx, PSHCLOBJOPENCREATEPARMS pCreateParms,422 421 int shclSvcTransferIfaceObjOpen(PSHCLPROVIDERCTX pCtx, PSHCLOBJOPENCREATEPARMS pCreateParms, 422 PSHCLOBJHANDLE phObj) 423 423 { 424 424 LogFlowFuncEnter(); … … 429 429 int rc; 430 430 431 PSHCLCLIENTMSG pMsg = sh aredClipboardSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_OBJ_OPEN,432 431 PSHCLCLIENTMSG pMsg = shclSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_OBJ_OPEN, 432 VBOX_SHCL_CPARMS_OBJ_OPEN); 433 433 if (pMsg) 434 434 { … … 446 446 HGCMSvcSetU32(&pMsg->paParms[4], pCreateParms->fCreate); 447 447 448 rc = sh aredClipboardSvcMsgAdd(pClient, pMsg, true /* fAppend */);448 rc = shclSvcMsgAdd(pClient, pMsg, true /* fAppend */); 449 449 if (RT_SUCCESS(rc)) 450 450 { … … 452 452 AssertRC(rc2); 453 453 454 rc = sh aredClipboardSvcClientWakeup(pClient);454 rc = shclSvcClientWakeup(pClient); 455 455 if (RT_SUCCESS(rc)) 456 456 { … … 480 480 } 481 481 482 int sh aredClipboardSvcTransferIfaceObjClose(PSHCLPROVIDERCTX pCtx, SHCLOBJHANDLE hObj)482 int shclSvcTransferIfaceObjClose(PSHCLPROVIDERCTX pCtx, SHCLOBJHANDLE hObj) 483 483 { 484 484 LogFlowFuncEnter(); … … 489 489 int rc; 490 490 491 PSHCLCLIENTMSG pMsg = sh aredClipboardSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_OBJ_CLOSE,492 491 PSHCLCLIENTMSG pMsg = shclSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_OBJ_CLOSE, 492 VBOX_SHCL_CPARMS_OBJ_CLOSE); 493 493 if (pMsg) 494 494 { … … 499 499 HGCMSvcSetU64(&pMsg->paParms[1], hObj); 500 500 501 rc = sh aredClipboardSvcMsgAdd(pClient, pMsg, true /* fAppend */);501 rc = shclSvcMsgAdd(pClient, pMsg, true /* fAppend */); 502 502 if (RT_SUCCESS(rc)) 503 503 { … … 505 505 AssertRC(rc2); 506 506 507 rc = sh aredClipboardSvcClientWakeup(pClient);507 rc = shclSvcClientWakeup(pClient); 508 508 if (RT_SUCCESS(rc)) 509 509 { … … 533 533 } 534 534 535 int sh aredClipboardSvcTransferIfaceObjRead(PSHCLPROVIDERCTX pCtx, SHCLOBJHANDLE hObj,536 535 int shclSvcTransferIfaceObjRead(PSHCLPROVIDERCTX pCtx, SHCLOBJHANDLE hObj, 536 void *pvData, uint32_t cbData, uint32_t fFlags, uint32_t *pcbRead) 537 537 { 538 538 LogFlowFuncEnter(); … … 543 543 int rc; 544 544 545 PSHCLCLIENTMSG pMsg = sh aredClipboardSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_OBJ_READ,546 545 PSHCLCLIENTMSG pMsg = shclSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_OBJ_READ, 546 VBOX_SHCL_CPARMS_OBJ_READ_REQ); 547 547 if (pMsg) 548 548 { … … 555 555 HGCMSvcSetU32(&pMsg->paParms[3], fFlags); 556 556 557 rc = sh aredClipboardSvcMsgAdd(pClient, pMsg, true /* fAppend */);557 rc = shclSvcMsgAdd(pClient, pMsg, true /* fAppend */); 558 558 if (RT_SUCCESS(rc)) 559 559 { … … 561 561 AssertRC(rc2); 562 562 563 rc = sh aredClipboardSvcClientWakeup(pClient);563 rc = shclSvcClientWakeup(pClient); 564 564 if (RT_SUCCESS(rc)) 565 565 { … … 592 592 } 593 593 594 int sh aredClipboardSvcTransferIfaceObjWrite(PSHCLPROVIDERCTX pCtx, SHCLOBJHANDLE hObj,595 594 int shclSvcTransferIfaceObjWrite(PSHCLPROVIDERCTX pCtx, SHCLOBJHANDLE hObj, 595 void *pvData, uint32_t cbData, uint32_t fFlags, uint32_t *pcbWritten) 596 596 { 597 597 LogFlowFuncEnter(); … … 602 602 int rc; 603 603 604 PSHCLCLIENTMSG pMsg = sh aredClipboardSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_OBJ_WRITE,605 604 PSHCLCLIENTMSG pMsg = shclSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_OBJ_WRITE, 605 VBOX_SHCL_CPARMS_OBJ_WRITE); 606 606 if (pMsg) 607 607 { … … 614 614 HGCMSvcSetU64(&pMsg->paParms[3], fFlags); 615 615 616 rc = sh aredClipboardSvcMsgAdd(pClient, pMsg, true /* fAppend */);616 rc = shclSvcMsgAdd(pClient, pMsg, true /* fAppend */); 617 617 if (RT_SUCCESS(rc)) 618 618 { … … 620 620 AssertRC(rc2); 621 621 622 rc = sh aredClipboardSvcClientWakeup(pClient);622 rc = shclSvcClientWakeup(pClient); 623 623 if (RT_SUCCESS(rc)) 624 624 { … … 659 659 * @param pReply Where to store the reply. 660 660 */ 661 static int sh aredClipboardSvcTransferGetReply(uint32_t cParms, VBOXHGCMSVCPARM paParms[],662 661 static int shclSvcTransferGetReply(uint32_t cParms, VBOXHGCMSVCPARM paParms[], 662 PSHCLREPLY pReply) 663 663 { 664 664 int rc; … … 735 735 * @param pRootLstHdr Where to store the transfer root list header on success. 736 736 */ 737 static int sh aredClipboardSvcTransferGetRootListHdr(uint32_t cParms, VBOXHGCMSVCPARM paParms[],738 737 static int shclSvcTransferGetRootListHdr(uint32_t cParms, VBOXHGCMSVCPARM paParms[], 738 PSHCLROOTLISTHDR pRootLstHdr) 739 739 { 740 740 int rc; … … 761 761 * @param pListEntry Where to store the root list entry. 762 762 */ 763 static int sh aredClipboardSvcTransferGetRootListEntry(uint32_t cParms, VBOXHGCMSVCPARM paParms[],764 763 static int shclSvcTransferGetRootListEntry(uint32_t cParms, VBOXHGCMSVCPARM paParms[], 764 PSHCLROOTLISTENTRY pListEntry) 765 765 { 766 766 int rc; … … 798 798 * @param pOpenParms Where to store the open parameters of the request. 799 799 */ 800 static int sh aredClipboardSvcTransferGetListOpen(uint32_t cParms, VBOXHGCMSVCPARM paParms[],801 800 static int shclSvcTransferGetListOpen(uint32_t cParms, VBOXHGCMSVCPARM paParms[], 801 PSHCLLISTOPENPARMS pOpenParms) 802 802 { 803 803 int rc; … … 845 845 * @param pOpenParms List open parameters to set. 846 846 */ 847 static int sh aredClipboardSvcTransferSetListOpen(uint32_t cParms, VBOXHGCMSVCPARM paParms[],848 847 static int shclSvcTransferSetListOpen(uint32_t cParms, VBOXHGCMSVCPARM paParms[], 848 PSHCLMSGCTX pMsgCtx, PSHCLLISTOPENPARMS pOpenParms) 849 849 { 850 850 int rc; … … 878 878 * @param hList Handle of list to close. 879 879 */ 880 static int sh aredClipboardSvcTransferSetListClose(uint32_t cParms, VBOXHGCMSVCPARM paParms[],881 880 static int shclSvcTransferSetListClose(uint32_t cParms, VBOXHGCMSVCPARM paParms[], 881 PSHCLMSGCTX pMsgCtx, SHCLLISTHANDLE hList) 882 882 { 883 883 int rc; … … 906 906 * @param pListHdr Where to store the list header. 907 907 */ 908 static int sh aredClipboardSvcTransferGetListHdr(uint32_t cParms, VBOXHGCMSVCPARM paParms[],909 908 static int shclSvcTransferGetListHdr(uint32_t cParms, VBOXHGCMSVCPARM paParms[], 909 PSHCLLISTHANDLE phList, PSHCLLISTHDR pListHdr) 910 910 { 911 911 int rc; … … 945 945 * @param pListHdr Pointer to data to set to the HGCM parameters. 946 946 */ 947 static int sh aredClipboardSvcTransferSetListHdr(uint32_t cParms, VBOXHGCMSVCPARM paParms[],948 947 static int shclSvcTransferSetListHdr(uint32_t cParms, VBOXHGCMSVCPARM paParms[], 948 PVBOXSHCLMSGCTX pMsgCtx, PSHCLLISTHDR pListHdr) 949 949 { 950 950 int rc; … … 980 980 * @param pListEntry Where to store the list entry. 981 981 */ 982 static int sh aredClipboardSvcTransferGetListEntry(uint32_t cParms, VBOXHGCMSVCPARM paParms[],983 982 static int shclSvcTransferGetListEntry(uint32_t cParms, VBOXHGCMSVCPARM paParms[], 983 PSHCLLISTHANDLE phList, PSHCLLISTENTRY pListEntry) 984 984 { 985 985 int rc; … … 1026 1026 * @param pListEntry Pointer to data to set to the HGCM parameters. 1027 1027 */ 1028 static int sh aredClipboardSvcTransferSetListEntry(uint32_t cParms, VBOXHGCMSVCPARM paParms[],1029 1028 static int shclSvcTransferSetListEntry(uint32_t cParms, VBOXHGCMSVCPARM paParms[], 1029 PVBOXSHCLMSGCTX pMsgCtx, PSHCLLISTENTRY pListEntry) 1030 1030 { 1031 1031 int rc; … … 1058 1058 * @param pDataChunk Where to store the object data chunk data. 1059 1059 */ 1060 static int sh aredClipboardSvcTransferGetObjDataChunk(uint32_t cParms, VBOXHGCMSVCPARM paParms[], PSHCLOBJDATACHUNK pDataChunk)1060 static int shclSvcTransferGetObjDataChunk(uint32_t cParms, VBOXHGCMSVCPARM paParms[], PSHCLOBJDATACHUNK pDataChunk) 1061 1061 { 1062 1062 AssertPtrReturn(paParms, VERR_INVALID_PARAMETER); … … 1096 1096 * @param pRc Where to store the received error code. 1097 1097 */ 1098 static int sh aredClipboardSvcTransferGetError(uint32_t cParms, VBOXHGCMSVCPARM paParms[], int *pRc)1098 static int shclSvcTransferGetError(uint32_t cParms, VBOXHGCMSVCPARM paParms[], int *pRc) 1099 1099 { 1100 1100 AssertPtrReturn(paParms, VERR_INVALID_PARAMETER); … … 1123 1123 * @param paParms Array function parameters supplied. 1124 1124 */ 1125 static int sh aredClipboardSvcTransferHandleReply(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer,1126 1125 static int shclSvcTransferHandleReply(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer, 1126 uint32_t cParms, VBOXHGCMSVCPARM paParms[]) 1127 1127 { 1128 1128 RT_NOREF(pClient); … … 1134 1134 if (pReply) 1135 1135 { 1136 rc = sh aredClipboardSvcTransferGetReply(cParms, paParms, pReply);1136 rc = shclSvcTransferGetReply(cParms, paParms, pReply); 1137 1137 if (RT_SUCCESS(rc)) 1138 1138 { … … 1208 1208 * @param tsArrival Timestamp of arrival. 1209 1209 */ 1210 int sh aredClipboardSvcTransferHandler(PSHCLCLIENT pClient,1211 1212 1213 1214 1215 1210 int shclSvcTransferHandler(PSHCLCLIENT pClient, 1211 VBOXHGCMCALLHANDLE callHandle, 1212 uint32_t u32Function, 1213 uint32_t cParms, 1214 VBOXHGCMSVCPARM paParms[], 1215 uint64_t tsArrival) 1216 1216 { 1217 1217 RT_NOREF(callHandle, paParms, tsArrival); … … 1222 1222 #if 0 1223 1223 /* Check if we've the right mode set. */ 1224 if (!sh aredClipboardSvcTransferMsgIsAllowed(sharedClipboardSvcGetMode(), u32Function))1224 if (!shclSvcTransferMsgIsAllowed(shclSvcGetMode(), u32Function)) 1225 1225 { 1226 1226 LogFunc(("Wrong clipboard mode, denying access\n")); … … 1317 1317 if (RT_SUCCESS(rc)) 1318 1318 { 1319 rc = sh aredClipboardSvcTransferAreaRegister(&pClient->State, pTransfer);1319 rc = shclSvcTransferAreaRegister(&pClient->State, pTransfer); 1320 1320 if (RT_SUCCESS(rc)) 1321 1321 { … … 1325 1325 creationCtx.enmSource = pClient->State.enmSource; 1326 1326 1327 creationCtx.Interface.pfnTransferOpen = sh aredClipboardSvcTransferOpen;1328 creationCtx.Interface.pfnTransferClose = sh aredClipboardSvcTransferClose;1329 creationCtx.Interface.pfnListOpen = sh aredClipboardSvcTransferListOpen;1330 creationCtx.Interface.pfnListClose = sh aredClipboardSvcTransferListClose;1331 creationCtx.Interface.pfnObjOpen = sh aredClipboardSvcTransferObjOpen;1332 creationCtx.Interface.pfnObjClose = sh aredClipboardSvcTransferObjClose;1327 creationCtx.Interface.pfnTransferOpen = shclSvcTransferOpen; 1328 creationCtx.Interface.pfnTransferClose = shclSvcTransferClose; 1329 creationCtx.Interface.pfnListOpen = shclSvcTransferListOpen; 1330 creationCtx.Interface.pfnListClose = shclSvcTransferListClose; 1331 creationCtx.Interface.pfnObjOpen = shclSvcTransferObjOpen; 1332 creationCtx.Interface.pfnObjClose = shclSvcTransferObjClose; 1333 1333 1334 1334 if (enmDir == SHCLTRANSFERDIR_READ) 1335 1335 { 1336 creationCtx.Interface.pfnRootsGet = sh aredClipboardSvcTransferGetRoots;1337 creationCtx.Interface.pfnListHdrRead = sh aredClipboardSvcTransferListHdrRead;1338 creationCtx.Interface.pfnListEntryRead = sh aredClipboardSvcTransferListEntryRead;1339 creationCtx.Interface.pfnObjRead = sh aredClipboardSvcTransferObjRead;1336 creationCtx.Interface.pfnRootsGet = shclSvcTransferGetRoots; 1337 creationCtx.Interface.pfnListHdrRead = shclSvcTransferListHdrRead; 1338 creationCtx.Interface.pfnListEntryRead = shclSvcTransferListEntryRead; 1339 creationCtx.Interface.pfnObjRead = shclSvcTransferObjRead; 1340 1340 } 1341 1341 else … … 1366 1366 if (RT_SUCCESS(rc)) 1367 1367 { 1368 rc = Sh aredClipboardSvcImplTransferCreate(pClient, pTransfer);1368 rc = ShClSvcImplTransferCreate(pClient, pTransfer); 1369 1369 if (RT_SUCCESS(rc)) 1370 rc = Sh aredClipboardSvcImplFormatAnnounce(pClient, VBOX_SHCL_FMT_URI_LIST);1370 rc = ShClSvcImplFormatAnnounce(pClient, VBOX_SHCL_FMT_URI_LIST); 1371 1371 } 1372 1372 1373 1373 if (RT_FAILURE(rc)) 1374 1374 { 1375 Sh aredClipboardSvcImplTransferDestroy(pClient, pTransfer);1375 ShClSvcImplTransferDestroy(pClient, pTransfer); 1376 1376 SharedClipboardTransferDestroy(pTransfer); 1377 1377 } … … 1390 1390 case VBOX_SHCL_GUEST_FN_REPLY: 1391 1391 { 1392 rc = sh aredClipboardSvcTransferHandleReply(pClient, pTransfer, cParms, paParms);1392 rc = shclSvcTransferHandleReply(pClient, pTransfer, cParms, paParms); 1393 1393 break; 1394 1394 } … … 1402 1402 { 1403 1403 SHCLROOTLISTHDR lstHdr; 1404 rc = sh aredClipboardSvcTransferGetRootListHdr(cParms, paParms, &lstHdr);1404 rc = shclSvcTransferGetRootListHdr(cParms, paParms, &lstHdr); 1405 1405 if (RT_SUCCESS(rc)) 1406 1406 { … … 1446 1446 { 1447 1447 SHCLROOTLISTENTRY lstEntry; 1448 rc = sh aredClipboardSvcTransferGetRootListEntry(cParms, paParms, &lstEntry);1448 rc = shclSvcTransferGetRootListEntry(cParms, paParms, &lstEntry); 1449 1449 if (RT_SUCCESS(rc)) 1450 1450 { … … 1469 1469 { 1470 1470 SHCLLISTOPENPARMS listOpenParms; 1471 rc = sh aredClipboardSvcTransferGetListOpen(cParms, paParms, &listOpenParms);1471 rc = shclSvcTransferGetListOpen(cParms, paParms, &listOpenParms); 1472 1472 if (RT_SUCCESS(rc)) 1473 1473 { … … 1509 1509 rc = SharedClipboardTransferListGetHeader(pTransfer, hList, &hdrList); 1510 1510 /*if (RT_SUCCESS(rc)) 1511 rc = sh aredClipboardSvcTransferSetListHdr(cParms, paParms, &hdrList);*/1511 rc = shclSvcTransferSetListHdr(cParms, paParms, &hdrList);*/ 1512 1512 } 1513 1513 break; … … 1521 1521 { 1522 1522 SHCLLISTHANDLE hList; 1523 rc = sh aredClipboardSvcTransferGetListHdr(cParms, paParms, &hList, &hdrList);1523 rc = shclSvcTransferGetListHdr(cParms, paParms, &hList, &hdrList); 1524 1524 if (RT_SUCCESS(rc)) 1525 1525 { … … 1564 1564 { 1565 1565 SHCLLISTHANDLE hList; 1566 rc = sh aredClipboardSvcTransferGetListEntry(cParms, paParms, &hList, &entryList);1566 rc = shclSvcTransferGetListEntry(cParms, paParms, &hList, &entryList); 1567 1567 if (RT_SUCCESS(rc)) 1568 1568 { … … 1605 1605 { 1606 1606 SHCLOBJDATACHUNK dataChunk; 1607 rc = sh aredClipboardSvcTransferGetObjDataChunk(cParms, paParms, &dataChunk);1607 rc = shclSvcTransferGetObjDataChunk(cParms, paParms, &dataChunk); 1608 1608 if (RT_SUCCESS(rc)) 1609 1609 { … … 1805 1805 { 1806 1806 int rcGuest; 1807 rc = sh aredClipboardSvcTransferGetError(cParms,paParms, &rcGuest);1807 rc = shclSvcTransferGetError(cParms,paParms, &rcGuest); 1808 1808 if (RT_SUCCESS(rc)) 1809 1809 LogRel(("Shared Clipboard: Transfer error: %Rrc\n", rcGuest)); … … 1821 1821 1822 1822 /** 1823 * transfer host handler for the Shared Clipboard host service.1823 * Transfer host handler for the Shared Clipboard host service. 1824 1824 * 1825 1825 * @returns VBox status code. … … 1828 1828 * @param paParms Array function parameters supplied. 1829 1829 */ 1830 int sh aredClipboardSvcTransferHostHandler(uint32_t u32Function,1831 1832 1830 int shclSvcTransferHostHandler(uint32_t u32Function, 1831 uint32_t cParms, 1832 VBOXHGCMSVCPARM paParms[]) 1833 1833 { 1834 1834 RT_NOREF(cParms, paParms); … … 1860 1860 * @param pTransfer Shared Clipboard transfer to register a clipboard area for. 1861 1861 */ 1862 int sh aredClipboardSvcTransferAreaRegister(PSHCLCLIENTSTATE pClientState, PSHCLTRANSFER pTransfer)1862 int shclSvcTransferAreaRegister(PSHCLCLIENTSTATE pClientState, PSHCLTRANSFER pTransfer) 1863 1863 { 1864 1864 RT_NOREF(pClientState); … … 1909 1909 * @param pTransfer Shared Clipboard transfer to unregister a clipboard area from. 1910 1910 */ 1911 int sh aredClipboardSvcTransferAreaUnregister(PSHCLCLIENTSTATE pClientState, PSHCLTRANSFER pTransfer)1911 int shclSvcTransferAreaUnregister(PSHCLCLIENTSTATE pClientState, PSHCLTRANSFER pTransfer) 1912 1912 { 1913 1913 RT_NOREF(pClientState); … … 1957 1957 * @param uID ID of clipboard area to to attach to. Specify 0 to attach to the most recent one. 1958 1958 */ 1959 int sh aredClipboardSvcTransferAreaAttach(PSHCLCLIENTSTATE pClientState, PSHCLTRANSFER pTransfer,1960 1959 int shclSvcTransferAreaAttach(PSHCLCLIENTSTATE pClientState, PSHCLTRANSFER pTransfer, 1960 SHCLAREAID uID) 1961 1961 { 1962 1962 RT_NOREF(pClientState); … … 2005 2005 * @param pTransfer Shared Clipboard transfer to detach a clipboard area from. 2006 2006 */ 2007 int sh aredClipboardSvcTransferAreaDetach(PSHCLCLIENTSTATE pClientState, PSHCLTRANSFER pTransfer)2007 int shclSvcTransferAreaDetach(PSHCLCLIENTSTATE pClientState, PSHCLTRANSFER pTransfer) 2008 2008 { 2009 2009 RT_NOREF(pClientState); … … 2047 2047 * @param puEvent Where to store the created wait event. Optional. 2048 2048 */ 2049 int sh aredClipboardSvcTransferSendStatus(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer, SHCLTRANSFERSTATUS uStatus,2050 2049 int shclSvcTransferSendStatus(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer, SHCLTRANSFERSTATUS uStatus, 2050 int rcTransfer, PSHCLEVENTID puEvent) 2051 2051 { 2052 2052 AssertPtrReturn(pClient, VERR_INVALID_POINTER); … … 2054 2054 /* puEvent is optional. */ 2055 2055 2056 PSHCLCLIENTMSG pMsgReadData = sh aredClipboardSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_STATUS,2057 2056 PSHCLCLIENTMSG pMsgReadData = shclSvcMsgAlloc(VBOX_SHCL_HOST_MSG_TRANSFER_STATUS, 2057 VBOX_SHCL_CPARMS_TRANSFER_STATUS); 2058 2058 if (!pMsgReadData) 2059 2059 return VERR_NO_MEMORY; … … 2068 2068 HGCMSvcSetU32(&pMsgReadData->paParms[4], 0 /* fFlags, unused */); 2069 2069 2070 int rc = sh aredClipboardSvcMsgAdd(pClient, pMsgReadData, true /* fAppend */);2070 int rc = shclSvcMsgAdd(pClient, pMsgReadData, true /* fAppend */); 2071 2071 if (RT_SUCCESS(rc)) 2072 2072 { … … 2074 2074 if (RT_SUCCESS(rc)) 2075 2075 { 2076 rc = sh aredClipboardSvcClientWakeup(pClient);2076 rc = shclSvcClientWakeup(pClient); 2077 2077 if (RT_SUCCESS(rc)) 2078 2078 { … … 2101 2101 * @param ppTransfer Where to return the created transfer on success. Optional. 2102 2102 */ 2103 int sh aredClipboardSvcTransferStart(PSHCLCLIENT pClient,2104 2105 2103 int shclSvcTransferStart(PSHCLCLIENT pClient, 2104 SHCLTRANSFERDIR enmDir, SHCLSOURCE enmSource, 2105 PSHCLTRANSFER *ppTransfer) 2106 2106 { 2107 2107 AssertPtrReturn(pClient, VERR_INVALID_POINTER); … … 2127 2127 if (enmDir == SHCLTRANSFERDIR_READ) 2128 2128 { 2129 rc = sh aredClipboardSvcTransferAreaRegister(&pClient->State, pTransfer);2129 rc = shclSvcTransferAreaRegister(&pClient->State, pTransfer); 2130 2130 if (RT_SUCCESS(rc)) 2131 2131 { 2132 creationCtx.Interface.pfnTransferOpen = sh aredClipboardSvcTransferIfaceOpen;2133 creationCtx.Interface.pfnTransferClose = sh aredClipboardSvcTransferIfaceClose;2134 2135 creationCtx.Interface.pfnRootsGet = sh aredClipboardSvcTransferIfaceGetRoots;2136 2137 creationCtx.Interface.pfnListOpen = sh aredClipboardSvcTransferIfaceListOpen;2138 creationCtx.Interface.pfnListClose = sh aredClipboardSvcTransferIfaceListClose;2139 creationCtx.Interface.pfnListHdrRead = sh aredClipboardSvcTransferIfaceListHdrRead;2140 creationCtx.Interface.pfnListEntryRead = sh aredClipboardSvcTransferIfaceListEntryRead;2141 2142 creationCtx.Interface.pfnObjOpen = sh aredClipboardSvcTransferIfaceObjOpen;2143 creationCtx.Interface.pfnObjClose = sh aredClipboardSvcTransferIfaceObjClose;2144 creationCtx.Interface.pfnObjRead = sh aredClipboardSvcTransferIfaceObjRead;2132 creationCtx.Interface.pfnTransferOpen = shclSvcTransferIfaceOpen; 2133 creationCtx.Interface.pfnTransferClose = shclSvcTransferIfaceClose; 2134 2135 creationCtx.Interface.pfnRootsGet = shclSvcTransferIfaceGetRoots; 2136 2137 creationCtx.Interface.pfnListOpen = shclSvcTransferIfaceListOpen; 2138 creationCtx.Interface.pfnListClose = shclSvcTransferIfaceListClose; 2139 creationCtx.Interface.pfnListHdrRead = shclSvcTransferIfaceListHdrRead; 2140 creationCtx.Interface.pfnListEntryRead = shclSvcTransferIfaceListEntryRead; 2141 2142 creationCtx.Interface.pfnObjOpen = shclSvcTransferIfaceObjOpen; 2143 creationCtx.Interface.pfnObjClose = shclSvcTransferIfaceObjClose; 2144 creationCtx.Interface.pfnObjRead = shclSvcTransferIfaceObjRead; 2145 2145 } 2146 2146 } 2147 2147 else if (enmDir == SHCLTRANSFERDIR_WRITE) 2148 2148 { 2149 creationCtx.Interface.pfnListHdrWrite = sh aredClipboardSvcTransferIfaceListHdrWrite;2150 creationCtx.Interface.pfnListEntryWrite = sh aredClipboardSvcTransferIfaceListEntryWrite;2151 creationCtx.Interface.pfnObjWrite = sh aredClipboardSvcTransferIfaceObjWrite;2149 creationCtx.Interface.pfnListHdrWrite = shclSvcTransferIfaceListHdrWrite; 2150 creationCtx.Interface.pfnListEntryWrite = shclSvcTransferIfaceListEntryWrite; 2151 creationCtx.Interface.pfnObjWrite = shclSvcTransferIfaceObjWrite; 2152 2152 } 2153 2153 else … … 2162 2162 if (RT_SUCCESS(rc)) 2163 2163 { 2164 rc = Sh aredClipboardSvcImplTransferCreate(pClient, pTransfer);2164 rc = ShClSvcImplTransferCreate(pClient, pTransfer); 2165 2165 if (RT_SUCCESS(rc)) 2166 2166 { … … 2172 2172 { 2173 2173 SHCLEVENTID uEvent; 2174 rc = sh aredClipboardSvcTransferSendStatus(pClient, pTransfer,2175 2176 2174 rc = shclSvcTransferSendStatus(pClient, pTransfer, 2175 SHCLTRANSFERSTATUS_INITIALIZED, VINF_SUCCESS, 2176 &uEvent); 2177 2177 if (RT_SUCCESS(rc)) 2178 2178 { … … 2241 2241 * @param pTransfer Transfer to stop. 2242 2242 */ 2243 int sh aredClipboardSvcTransferStop(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer)2243 int shclSvcTransferStop(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer) 2244 2244 { 2245 2245 int rc = SharedClipboardTransferClose(pTransfer); … … 2247 2247 { 2248 2248 SHCLEVENTID uEvent; 2249 rc = sh aredClipboardSvcTransferSendStatus(pClient, pTransfer,2250 2251 2249 rc = shclSvcTransferSendStatus(pClient, pTransfer, 2250 SHCLTRANSFERSTATUS_STOPPED, VINF_SUCCESS, 2251 &uEvent); 2252 2252 if (RT_SUCCESS(rc)) 2253 2253 { -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-utils.cpp
r80858 r80995 107 107 LogFlowFunc(("VBOX_SHCL_HOST_MSG_TRANSFER_TRANSFER_START\n")); 108 108 109 if ( sh aredClipboardSvcGetMode() != VBOX_SHCL_MODE_HOST_TO_GUEST110 && sh aredClipboardSvcGetMode() != VBOX_SHCL_MODE_BIDIRECTIONAL)109 if ( shclSvcGetMode() != VBOX_SHCL_MODE_HOST_TO_GUEST 110 && shclSvcGetMode() != VBOX_SHCL_MODE_BIDIRECTIONAL) 111 111 { 112 112 LogFlowFunc(("Wrong clipboard mode, skipping\n")); … … 130 130 } 131 131 132 bool sh aredClipboardSvcTransferReturnMsg(PSHCLCLIENT pClient, uint32_t cParms, VBOXHGCMSVCPARM paParms[])132 bool shclSvcTransferReturnMsg(PSHCLCLIENT pClient, uint32_t cParms, VBOXHGCMSVCPARM paParms[]) 133 133 { 134 134 RT_NOREF(pClient, cParms, paParms); -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp
r80990 r80995 179 179 180 180 SHCLEVENTID uEvent = 0; 181 int rc = sh aredClipboardSvcDataReadRequest(pCtx->pClient, &dataReq, &uEvent);181 int rc = shclSvcDataReadRequest(pCtx->pClient, &dataReq, &uEvent); 182 182 if (RT_SUCCESS(rc)) 183 183 { … … 231 231 rc = vboxClipboardSvcWinSyncInternal(pCtx); 232 232 if (RT_SUCCESS(rc)) 233 rc = sh aredClipboardSvcSetSource(pCtx->pClient, SHCLSOURCE_LOCAL);233 rc = shclSvcSetSource(pCtx->pClient, SHCLSOURCE_LOCAL); 234 234 } 235 235 else … … 273 273 rc = vboxClipboardSvcWinSyncInternal(pCtx); 274 274 if (RT_SUCCESS(rc)) 275 sh aredClipboardSvcSetSource(pCtx->pClient, SHCLSOURCE_LOCAL);275 shclSvcSetSource(pCtx->pClient, SHCLSOURCE_LOCAL); 276 276 } 277 277 else … … 357 357 { 358 358 PSHCLTRANSFER pTransfer; 359 int rc = sh aredClipboardSvcTransferStart(pCtx->pClient,360 361 359 int rc = shclSvcTransferStart(pCtx->pClient, 360 SHCLTRANSFERDIR_READ, SHCLSOURCE_REMOTE, 361 &pTransfer); 362 362 if (RT_SUCCESS(rc)) 363 363 { … … 591 591 && Formats.uFormats != VBOX_SHCL_FMT_NONE) 592 592 { 593 rc = sh aredClipboardSvcFormatsReport(pCtx->pClient, &Formats);593 rc = shclSvcFormatsReport(pCtx->pClient, &Formats); 594 594 } 595 595 } … … 605 605 */ 606 606 607 int Sh aredClipboardSvcImplInit(void)607 int ShClSvcImplInit(void) 608 608 { 609 609 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS … … 621 621 } 622 622 623 void Sh aredClipboardSvcImplDestroy(void)623 void ShClSvcImplDestroy(void) 624 624 { 625 625 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS … … 629 629 } 630 630 631 int Sh aredClipboardSvcImplConnect(PSHCLCLIENT pClient, bool fHeadless)631 int ShClSvcImplConnect(PSHCLCLIENT pClient, bool fHeadless) 632 632 { 633 633 RT_NOREF(fHeadless); … … 656 656 657 657 /* Sync the host clipboard content with the client. */ 658 rc = Sh aredClipboardSvcImplSync(pClient);658 rc = ShClSvcImplSync(pClient); 659 659 } 660 660 else … … 665 665 } 666 666 667 int Sh aredClipboardSvcImplSync(PSHCLCLIENT pClient)667 int ShClSvcImplSync(PSHCLCLIENT pClient) 668 668 { 669 669 /* Sync the host clipboard content with the client. */ … … 671 671 } 672 672 673 int Sh aredClipboardSvcImplDisconnect(PSHCLCLIENT pClient)673 int ShClSvcImplDisconnect(PSHCLCLIENT pClient) 674 674 { 675 675 AssertPtrReturn(pClient, VERR_INVALID_POINTER); … … 712 712 } 713 713 714 int Sh aredClipboardSvcImplFormatAnnounce(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx,715 714 int ShClSvcImplFormatAnnounce(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx, 715 PSHCLFORMATDATA pFormats) 716 716 { 717 717 AssertPtrReturn(pClient, VERR_INVALID_POINTER); … … 737 737 } 738 738 739 int Sh aredClipboardSvcImplReadData(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx,740 739 int ShClSvcImplReadData(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx, 740 PSHCLDATABLOCK pData, uint32_t *pcbActual) 741 741 { 742 742 AssertPtrReturn(pClient, VERR_INVALID_POINTER); … … 848 848 } 849 849 850 int Sh aredClipboardSvcImplWriteData(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx,851 850 int ShClSvcImplWriteData(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx, 851 PSHCLDATABLOCK pData) 852 852 { 853 853 LogFlowFuncEnter(); 854 854 855 int rc = sh aredClipboardSvcDataReadSignal(pClient, pCmdCtx, pData);855 int rc = shclSvcDataReadSignal(pClient, pCmdCtx, pData); 856 856 857 857 LogFlowFuncLeaveRC(rc); … … 860 860 861 861 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 862 int Sh aredClipboardSvcImplTransferCreate(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer)862 int ShClSvcImplTransferCreate(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer) 863 863 { 864 864 RT_NOREF(pClient, pTransfer); … … 869 869 } 870 870 871 int Sh aredClipboardSvcImplTransferDestroy(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer)871 int ShClSvcImplTransferDestroy(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer) 872 872 { 873 873 LogFlowFuncEnter(); -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-x11.cpp
r80990 r80995 74 74 formatData.uFormats = u32Formats; 75 75 76 int rc2 = sh aredClipboardSvcFormatsReport(pCtx->pClient, &formatData);76 int rc2 = shclSvcFormatsReport(pCtx->pClient, &formatData); 77 77 AssertRC(rc2); 78 78 } … … 82 82 * @note Host glue code 83 83 */ 84 int Sh aredClipboardSvcImplInit(void)84 int ShClSvcImplInit(void) 85 85 { 86 86 LogFlowFuncEnter(); … … 92 92 * @note host glue code 93 93 */ 94 void Sh aredClipboardSvcImplDestroy(void)94 void ShClSvcImplDestroy(void) 95 95 { 96 96 LogFlowFuncEnter(); … … 102 102 * the clipboard and leave ownership to X11. 103 103 */ 104 int Sh aredClipboardSvcImplConnect(PSHCLCLIENT pClient, bool fHeadless)104 int ShClSvcImplConnect(PSHCLCLIENT pClient, bool fHeadless) 105 105 { 106 106 int rc = VINF_SUCCESS; … … 144 144 * @note Host glue code 145 145 */ 146 int Sh aredClipboardSvcImplSync(PSHCLCLIENT pClient)146 int ShClSvcImplSync(PSHCLCLIENT pClient) 147 147 { 148 148 LogFlowFuncEnter(); … … 156 156 formatData.uFormats = VBOX_SHCL_FMT_NONE; 157 157 158 return sh aredClipboardSvcFormatsReport(pClient, &formatData);158 return shclSvcFormatsReport(pClient, &formatData); 159 159 } 160 160 … … 163 163 * @note Host glue code 164 164 */ 165 int Sh aredClipboardSvcImplDisconnect(PSHCLCLIENT pClient)165 int ShClSvcImplDisconnect(PSHCLCLIENT pClient) 166 166 { 167 167 LogFlowFuncEnter(); … … 176 176 /* If there is a currently pending request, release it immediately. */ 177 177 SHCLDATABLOCK dataBlock = { 0, NULL, 0 }; 178 Sh aredClipboardSvcImplWriteData(pClient, NULL, &dataBlock);178 ShClSvcImplWriteData(pClient, NULL, &dataBlock); 179 179 180 180 int rc = ClipStopX11(pCtx->pBackend); … … 201 201 * @param pFormats Clipboard formats the guest is offering. 202 202 */ 203 int Sh aredClipboardSvcImplFormatAnnounce(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx,204 203 int ShClSvcImplFormatAnnounce(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx, 204 PSHCLFORMATDATA pFormats) 205 205 { 206 206 RT_NOREF(pCmdCtx); … … 247 247 * 248 248 */ 249 int Sh aredClipboardSvcImplReadData(PSHCLCLIENT pClient,250 249 int ShClSvcImplReadData(PSHCLCLIENT pClient, 250 PSHCLCLIENTCMDCTX pCmdCtx, PSHCLDATABLOCK pData, uint32_t *pcbActual) 251 251 { 252 252 RT_NOREF(pCmdCtx); … … 301 301 * @param pData Data block to write to clipboard. 302 302 */ 303 int Sh aredClipboardSvcImplWriteData(PSHCLCLIENT pClient,304 303 int ShClSvcImplWriteData(PSHCLCLIENT pClient, 304 PSHCLCLIENTCMDCTX pCmdCtx, PSHCLDATABLOCK pData) 305 305 { 306 306 LogFlowFunc(("pClient=%p, pv=%p, cb=%RU32, uFormat=%02X\n", 307 307 pClient, pData->pvData, pData->cbData, pData->uFormat)); 308 308 309 int rc = sh aredClipboardSvcDataReadSignal(pClient, pCmdCtx, pData);309 int rc = shclSvcDataReadSignal(pClient, pCmdCtx, pData); 310 310 311 311 LogFlowFuncLeaveRC(rc); … … 370 370 371 371 SHCLEVENTID uEvent; 372 int rc = sh aredClipboardSvcDataReadRequest(pCtx->pClient, &dataReq, &uEvent);372 int rc = shclSvcDataReadRequest(pCtx->pClient, &dataReq, &uEvent); 373 373 if (RT_SUCCESS(rc)) 374 374 { … … 392 392 393 393 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 394 int Sh aredClipboardSvcImplTransferCreate(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer)394 int ShClSvcImplTransferCreate(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer) 395 395 { 396 396 RT_NOREF(pClient, pTransfer); … … 398 398 } 399 399 400 int Sh aredClipboardSvcImplTransferDestroy(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer)400 int ShClSvcImplTransferDestroy(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer) 401 401 { 402 402 RT_NOREF(pClient, pTransfer); -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp
r80990 r80995 224 224 * Prototypes * 225 225 *********************************************************************************************************************************/ 226 static int sh aredClipboardSvcClientStateInit(PSHCLCLIENTSTATE pClientState, uint32_t uClientID);227 static int sh aredClipboardSvcClientStateDestroy(PSHCLCLIENTSTATE pClientState);228 static void sh aredClipboardSvcClientStateReset(PSHCLCLIENTSTATE pClientState);226 static int shclSvcClientStateInit(PSHCLCLIENTSTATE pClientState, uint32_t uClientID); 227 static int shclSvcClientStateDestroy(PSHCLCLIENTSTATE pClientState); 228 static void shclSvcClientStateReset(PSHCLCLIENTSTATE pClientState); 229 229 230 230 … … 251 251 252 252 253 uint32_t sh aredClipboardSvcGetMode(void)253 uint32_t shclSvcGetMode(void) 254 254 { 255 255 return g_uMode; … … 260 260 uint32_t TestClipSvcGetMode(void) 261 261 { 262 return sh aredClipboardSvcGetMode();262 return shclSvcGetMode(); 263 263 } 264 264 #endif … … 270 270 } 271 271 272 static int sh aredClipboardSvcModeSet(uint32_t uMode)272 static int shclSvcModeSet(uint32_t uMode) 273 273 { 274 274 int rc = VERR_NOT_SUPPORTED; … … 317 317 * @param pClient Pointer to the client data structure to reset message queue for. 318 318 */ 319 void sh aredClipboardSvcMsgQueueReset(PSHCLCLIENT pClient)319 void shclSvcMsgQueueReset(PSHCLCLIENT pClient) 320 320 { 321 321 LogFlowFuncEnter(); … … 335 335 * @param cParms Number of HGCM parameters to allocate. 336 336 */ 337 PSHCLCLIENTMSG sh aredClipboardSvcMsgAlloc(uint32_t uMsg, uint32_t cParms)337 PSHCLCLIENTMSG shclSvcMsgAlloc(uint32_t uMsg, uint32_t cParms) 338 338 { 339 339 PSHCLCLIENTMSG pMsg = (PSHCLCLIENTMSG)RTMemAlloc(sizeof(SHCLCLIENTMSG)); … … 360 360 * The pointer will be invalid after calling this function. 361 361 */ 362 void sh aredClipboardSvcMsgFree(PSHCLCLIENTMSG pMsg)362 void shclSvcMsgFree(PSHCLCLIENTMSG pMsg) 363 363 { 364 364 if (!pMsg) … … 381 381 * @remarks ASSUMES the parameters has been cleared by clientMsgPeek. 382 382 */ 383 void sh aredClipboardSvcMsgSetPeekReturn(PSHCLCLIENTMSG pMsg, PVBOXHGCMSVCPARM paDstParms, uint32_t cDstParms)383 void shclSvcMsgSetPeekReturn(PSHCLCLIENTMSG pMsg, PVBOXHGCMSVCPARM paDstParms, uint32_t cDstParms) 384 384 { 385 385 Assert(cDstParms >= 2); … … 411 411 * @param cDstParms The number of peek parameters (at least two). 412 412 */ 413 int sh aredClipboardSvcMsgSetGetHostMsgOldReturn(PSHCLCLIENTMSG pMsg, PVBOXHGCMSVCPARM paDstParms, uint32_t cDstParms)413 int shclSvcMsgSetGetHostMsgOldReturn(PSHCLCLIENTMSG pMsg, PVBOXHGCMSVCPARM paDstParms, uint32_t cDstParms) 414 414 { 415 415 AssertPtrReturn(pMsg, VERR_INVALID_POINTER); … … 468 468 * @param fAppend Whether to append or prepend the message to the queue. 469 469 */ 470 int sh aredClipboardSvcMsgAdd(PSHCLCLIENT pClient, PSHCLCLIENTMSG pMsg, bool fAppend)470 int shclSvcMsgAdd(PSHCLCLIENT pClient, PSHCLCLIENTMSG pMsg, bool fAppend) 471 471 { 472 472 AssertPtrReturn(pMsg, VERR_INVALID_POINTER); … … 501 501 * immediately. 502 502 */ 503 int sh aredClipboardSvcMsgPeek(PSHCLCLIENT pClient, VBOXHGCMCALLHANDLE hCall, uint32_t cParms, VBOXHGCMSVCPARM paParms[],504 503 int shclSvcMsgPeek(PSHCLCLIENT pClient, VBOXHGCMCALLHANDLE hCall, uint32_t cParms, VBOXHGCMSVCPARM paParms[], 504 bool fWait) 505 505 { 506 506 /* … … 548 548 if (pFirstMsg) 549 549 { 550 sh aredClipboardSvcMsgSetPeekReturn(pFirstMsg, paParms, cParms);550 shclSvcMsgSetPeekReturn(pFirstMsg, paParms, cParms); 551 551 LogFlowFunc(("[Client %RU32] VBOX_SHCL_GUEST_FN_MSG_PEEK_XXX -> VINF_SUCCESS (idMsg=%u (%s), cParms=%u)\n", 552 552 pClient->State.uClientID, pFirstMsg->uMsg, VBoxShClHostMsgToStr(pFirstMsg->uMsg), … … 590 590 * @param paParms Array of parameters. 591 591 */ 592 int sh aredClipboardSvcMsgGetOld(PSHCLCLIENT pClient, VBOXHGCMCALLHANDLE hCall, uint32_t cParms, VBOXHGCMSVCPARM paParms[])592 int shclSvcMsgGetOld(PSHCLCLIENT pClient, VBOXHGCMCALLHANDLE hCall, uint32_t cParms, VBOXHGCMSVCPARM paParms[]) 593 593 { 594 594 int rc; … … 614 614 pFirstMsg->cParms)); 615 615 616 rc = sh aredClipboardSvcMsgSetGetHostMsgOldReturn(pFirstMsg, paParms, cParms);616 rc = shclSvcMsgSetGetHostMsgOldReturn(pFirstMsg, paParms, cParms); 617 617 if (RT_SUCCESS(rc)) 618 618 { … … 622 622 { 623 623 pClient->queueMsg.removeFirst(); 624 sh aredClipboardSvcMsgFree(pFirstMsg);624 shclSvcMsgFree(pFirstMsg); 625 625 626 626 rc = VINF_HGCM_ASYNC_EXECUTE; /* The caller must not complete it. */ … … 666 666 * @param paParms Array of parameters. 667 667 */ 668 int sh aredClipboardSvcMsgGet(PSHCLCLIENT pClient, VBOXHGCMCALLHANDLE hCall, uint32_t cParms, VBOXHGCMSVCPARM paParms[])668 int shclSvcMsgGet(PSHCLCLIENT pClient, VBOXHGCMCALLHANDLE hCall, uint32_t cParms, VBOXHGCMSVCPARM paParms[]) 669 669 { 670 670 /* … … 756 756 { 757 757 pClient->queueMsg.removeFirst(); 758 sh aredClipboardSvcMsgFree(pFirstMsg);758 shclSvcMsgFree(pFirstMsg); 759 759 } 760 760 … … 781 781 * @param pClient Client to wake up. 782 782 */ 783 int sh aredClipboardSvcClientWakeup(PSHCLCLIENT pClient)783 int shclSvcClientWakeup(PSHCLCLIENT pClient) 784 784 { 785 785 int rc = VINF_NO_CHANGE; … … 804 804 if (pClient->Pending.uType == VBOX_SHCL_GUEST_FN_MSG_PEEK_WAIT) 805 805 { 806 sh aredClipboardSvcMsgSetPeekReturn(pFirstMsg, pClient->Pending.paParms, pClient->Pending.cParms);806 shclSvcMsgSetPeekReturn(pFirstMsg, pClient->Pending.paParms, pClient->Pending.cParms); 807 807 fDonePending = true; 808 808 } 809 809 else if (pClient->Pending.uType == VBOX_SHCL_GUEST_FN_GET_HOST_MSG_OLD) /* Legacy */ 810 810 { 811 rc = sh aredClipboardSvcMsgSetGetHostMsgOldReturn(pFirstMsg, pClient->Pending.paParms, pClient->Pending.cParms);811 rc = shclSvcMsgSetGetHostMsgOldReturn(pFirstMsg, pClient->Pending.paParms, pClient->Pending.cParms); 812 812 if (RT_SUCCESS(rc)) 813 813 { … … 815 815 * remove the actual message from our queue right now. */ 816 816 pClient->queueMsg.removeFirst(); 817 sh aredClipboardSvcMsgFree(pFirstMsg);817 shclSvcMsgFree(pFirstMsg); 818 818 819 819 fDonePending = true; … … 853 853 * @param puEvent Event ID for waiting for new data. Optional. 854 854 */ 855 int sh aredClipboardSvcDataReadRequest(PSHCLCLIENT pClient, PSHCLDATAREQ pDataReq,856 855 int shclSvcDataReadRequest(PSHCLCLIENT pClient, PSHCLDATAREQ pDataReq, 856 PSHCLEVENTID puEvent) 857 857 { 858 858 AssertPtrReturn(pClient, VERR_INVALID_POINTER); … … 862 862 int rc; 863 863 864 PSHCLCLIENTMSG pMsgReadData = sh aredClipboardSvcMsgAlloc(VBOX_SHCL_HOST_MSG_READ_DATA,865 864 PSHCLCLIENTMSG pMsgReadData = shclSvcMsgAlloc(VBOX_SHCL_HOST_MSG_READ_DATA, 865 VBOX_SHCL_CPARMS_READ_DATA); 866 866 if (pMsgReadData) 867 867 { … … 873 873 HGCMSvcSetU32(&pMsgReadData->paParms[2], pClient->State.cbChunkSize); 874 874 875 rc = sh aredClipboardSvcMsgAdd(pClient, pMsgReadData, true /* fAppend */);875 rc = shclSvcMsgAdd(pClient, pMsgReadData, true /* fAppend */); 876 876 if (RT_SUCCESS(rc)) 877 877 { … … 879 879 if (RT_SUCCESS(rc)) 880 880 { 881 rc = sh aredClipboardSvcClientWakeup(pClient);881 rc = shclSvcClientWakeup(pClient); 882 882 if (RT_SUCCESS(rc)) 883 883 { … … 897 897 } 898 898 899 int sh aredClipboardSvcDataReadSignal(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx,900 899 int shclSvcDataReadSignal(PSHCLCLIENT pClient, PSHCLCLIENTCMDCTX pCmdCtx, 900 PSHCLDATABLOCK pData) 901 901 { 902 902 SHCLEVENTID uEvent; … … 927 927 } 928 928 929 int sh aredClipboardSvcFormatsReport(PSHCLCLIENT pClient, PSHCLFORMATDATA pFormats)929 int shclSvcFormatsReport(PSHCLCLIENT pClient, PSHCLFORMATDATA pFormats) 930 930 { 931 931 AssertPtrReturn(pClient, VERR_INVALID_POINTER); … … 934 934 int rc; 935 935 936 PSHCLCLIENTMSG pMsg = sh aredClipboardSvcMsgAlloc(VBOX_SHCL_HOST_MSG_FORMATS_REPORT, 3);936 PSHCLCLIENTMSG pMsg = shclSvcMsgAlloc(VBOX_SHCL_HOST_MSG_FORMATS_REPORT, 3); 937 937 if (pMsg) 938 938 { … … 944 944 HGCMSvcSetU32(&pMsg->paParms[2], 0 /* fFlags */); 945 945 946 rc = sh aredClipboardSvcMsgAdd(pClient, pMsg, true /* fAppend */);946 rc = shclSvcMsgAdd(pClient, pMsg, true /* fAppend */); 947 947 if (RT_SUCCESS(rc)) 948 948 { … … 952 952 if (pFormats->uFormats & VBOX_SHCL_FMT_URI_LIST) 953 953 { 954 rc = sh aredClipboardSvcTransferStart(pClient, SHCLTRANSFERDIR_WRITE, SHCLSOURCE_LOCAL,955 954 rc = shclSvcTransferStart(pClient, SHCLTRANSFERDIR_WRITE, SHCLSOURCE_LOCAL, 955 NULL /* pTransfer */); 956 956 if (RT_FAILURE(rc)) 957 957 LogRel(("Shared Clipboard: Initializing host write transfer failed with %Rrc\n", rc)); … … 960 960 { 961 961 #endif 962 rc = sh aredClipboardSvcClientWakeup(pClient);962 rc = shclSvcClientWakeup(pClient); 963 963 964 964 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS … … 974 974 } 975 975 976 int sh aredClipboardSvcGetDataWrite(PSHCLCLIENT pClient, uint32_t cParms, VBOXHGCMSVCPARM paParms[])976 int shclSvcGetDataWrite(PSHCLCLIENT pClient, uint32_t cParms, VBOXHGCMSVCPARM paParms[]) 977 977 { 978 978 LogFlowFuncEnter(); 979 979 980 if ( sh aredClipboardSvcGetMode() != VBOX_SHCL_MODE_GUEST_TO_HOST981 && sh aredClipboardSvcGetMode() != VBOX_SHCL_MODE_BIDIRECTIONAL)980 if ( shclSvcGetMode() != VBOX_SHCL_MODE_GUEST_TO_HOST 981 && shclSvcGetMode() != VBOX_SHCL_MODE_BIDIRECTIONAL) 982 982 { 983 983 return VERR_NOT_SUPPORTED; … … 1049 1049 } 1050 1050 1051 rc = Sh aredClipboardSvcImplWriteData(pClient, &cmdCtx, &dataBlock);1051 rc = ShClSvcImplWriteData(pClient, &cmdCtx, &dataBlock); 1052 1052 } 1053 1053 … … 1056 1056 } 1057 1057 1058 int sh aredClipboardSvcSetSource(PSHCLCLIENT pClient, SHCLSOURCE enmSource)1058 int shclSvcSetSource(PSHCLCLIENT pClient, SHCLSOURCE enmSource) 1059 1059 { 1060 1060 if (!pClient) /* If no client connected (anymore), bail out. */ … … 1082 1082 if (RT_SUCCESS(rc)) 1083 1083 { 1084 sh aredClipboardSvcModeSet(VBOX_SHCL_MODE_OFF);1085 1086 rc = Sh aredClipboardSvcImplInit();1084 shclSvcModeSet(VBOX_SHCL_MODE_OFF); 1085 1086 rc = ShClSvcImplInit(); 1087 1087 1088 1088 /* Clean up on failure, because 'svnUnload' will not be called … … 1102 1102 LogFlowFuncEnter(); 1103 1103 1104 Sh aredClipboardSvcImplDestroy();1104 ShClSvcImplDestroy(); 1105 1105 1106 1106 RTCritSectDelete(&g_CritSect); … … 1121 1121 PSHCLTRANSFER pTransfer = SharedClipboardTransferCtxGetTransfer(&pClient->TransferCtx, 0 /* Index*/); 1122 1122 if (pTransfer) 1123 sh aredClipboardSvcTransferAreaDetach(&pClient->State, pTransfer);1123 shclSvcTransferAreaDetach(&pClient->State, pTransfer); 1124 1124 1125 1125 SharedClipboardTransferCtxDestroy(&pClient->TransferCtx); 1126 1126 #endif 1127 1127 1128 Sh aredClipboardSvcImplDisconnect(pClient);1129 1130 sh aredClipboardSvcClientStateReset(&pClient->State);1131 sh aredClipboardSvcClientStateDestroy(&pClient->State);1128 ShClSvcImplDisconnect(pClient); 1129 1130 shclSvcClientStateReset(&pClient->State); 1131 shclSvcClientStateDestroy(&pClient->State); 1132 1132 1133 1133 SharedClipboardEventSourceDestroy(&pClient->Events); … … 1161 1161 1162 1162 /* Reset the client state. */ 1163 sh aredClipboardSvcClientStateReset(&pClient->State);1163 shclSvcClientStateReset(&pClient->State); 1164 1164 1165 1165 /* (Re-)initialize the client state. */ 1166 rc = sh aredClipboardSvcClientStateInit(&pClient->State, u32ClientID);1166 rc = shclSvcClientStateInit(&pClient->State, u32ClientID); 1167 1167 if (RT_SUCCESS(rc)) 1168 1168 { 1169 rc = Sh aredClipboardSvcImplConnect(pClient, VBoxSvcClipboardGetHeadless());1169 rc = ShClSvcImplConnect(pClient, VBoxSvcClipboardGetHeadless()); 1170 1170 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 1171 1171 if (RT_SUCCESS(rc)) … … 1224 1224 case VBOX_SHCL_GUEST_FN_GET_HOST_MSG_OLD: 1225 1225 { 1226 rc = sh aredClipboardSvcMsgGetOld(pClient, callHandle, cParms, paParms);1226 rc = shclSvcMsgGetOld(pClient, callHandle, cParms, paParms); 1227 1227 break; 1228 1228 } … … 1242 1242 rc = VERR_INVALID_PARAMETER; 1243 1243 } 1244 else if (sh aredClipboardSvcGetMode() == VBOX_SHCL_MODE_OFF)1244 else if (shclSvcGetMode() == VBOX_SHCL_MODE_OFF) 1245 1245 { 1246 1246 rc = VERR_ACCESS_DENIED; … … 1267 1267 case VBOX_SHCL_GUEST_FN_MSG_PEEK_NOWAIT: 1268 1268 { 1269 rc = sh aredClipboardSvcMsgPeek(pClient, callHandle, cParms, paParms, false /*fWait*/);1269 rc = shclSvcMsgPeek(pClient, callHandle, cParms, paParms, false /*fWait*/); 1270 1270 break; 1271 1271 } … … 1273 1273 case VBOX_SHCL_GUEST_FN_MSG_PEEK_WAIT: 1274 1274 { 1275 rc = sh aredClipboardSvcMsgPeek(pClient, callHandle, cParms, paParms, true /*fWait*/);1275 rc = shclSvcMsgPeek(pClient, callHandle, cParms, paParms, true /*fWait*/); 1276 1276 break; 1277 1277 } … … 1279 1279 case VBOX_SHCL_GUEST_FN_MSG_GET: 1280 1280 { 1281 rc = sh aredClipboardSvcMsgGet(pClient, callHandle, cParms, paParms);1281 rc = shclSvcMsgGet(pClient, callHandle, cParms, paParms); 1282 1282 break; 1283 1283 } … … 1324 1324 if (RT_SUCCESS(rc)) 1325 1325 { 1326 if ( sh aredClipboardSvcGetMode() != VBOX_SHCL_MODE_GUEST_TO_HOST1327 && sh aredClipboardSvcGetMode() != VBOX_SHCL_MODE_BIDIRECTIONAL)1326 if ( shclSvcGetMode() != VBOX_SHCL_MODE_GUEST_TO_HOST 1327 && shclSvcGetMode() != VBOX_SHCL_MODE_BIDIRECTIONAL) 1328 1328 { 1329 1329 rc = VERR_ACCESS_DENIED; … … 1331 1331 else if (uFormats != VBOX_SHCL_FMT_NONE) /* Only announce formats if we actually *have* formats to announce! */ 1332 1332 { 1333 rc = sh aredClipboardSvcSetSource(pClient, SHCLSOURCE_REMOTE);1333 rc = shclSvcSetSource(pClient, SHCLSOURCE_REMOTE); 1334 1334 if (RT_SUCCESS(rc)) 1335 1335 { … … 1354 1354 Assert(formatData.uFormats != VBOX_SHCL_FMT_NONE); /* Sanity. */ 1355 1355 1356 rc = Sh aredClipboardSvcImplFormatAnnounce(pClient, &cmdCtx, &formatData);1356 rc = ShClSvcImplFormatAnnounce(pClient, &cmdCtx, &formatData); 1357 1357 } 1358 1358 } … … 1377 1377 else 1378 1378 { 1379 if ( sh aredClipboardSvcGetMode() != VBOX_SHCL_MODE_HOST_TO_GUEST1380 && sh aredClipboardSvcGetMode() != VBOX_SHCL_MODE_BIDIRECTIONAL)1379 if ( shclSvcGetMode() != VBOX_SHCL_MODE_HOST_TO_GUEST 1380 && shclSvcGetMode() != VBOX_SHCL_MODE_BIDIRECTIONAL) 1381 1381 { 1382 1382 rc = VERR_ACCESS_DENIED; … … 1424 1424 Assert(formatData.uFormats != VBOX_SHCL_FMT_NONE); /* There better is *any* format here now. */ 1425 1425 1426 int rc2 = sh aredClipboardSvcFormatsReport(pClient, &formatData);1426 int rc2 = shclSvcFormatsReport(pClient, &formatData); 1427 1427 AssertRC(rc2); 1428 1428 … … 1456 1456 dataBlock.uFormat = uFormat; 1457 1457 1458 rc = Sh aredClipboardSvcImplReadData(pClient, &cmdCtx, &dataBlock, &cbActual);1458 rc = ShClSvcImplReadData(pClient, &cmdCtx, &dataBlock, &cbActual); 1459 1459 if (RT_SUCCESS(rc)) 1460 1460 HGCMSvcSetU32(&paParms[2], cbActual); … … 1469 1469 case VBOX_SHCL_GUEST_FN_DATA_WRITE: 1470 1470 { 1471 rc = sh aredClipboardSvcGetDataWrite(pClient, cParms, paParms);1471 rc = shclSvcGetDataWrite(pClient, cParms, paParms); 1472 1472 break; 1473 1473 } … … 1476 1476 { 1477 1477 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 1478 rc = sh aredClipboardSvcTransferHandler(pClient, callHandle, u32Function, cParms, paParms, tsArrival);1478 rc = shclSvcTransferHandler(pClient, callHandle, u32Function, cParms, paParms, tsArrival); 1479 1479 #else 1480 1480 rc = VERR_NOT_IMPLEMENTED; … … 1497 1497 * @param uClientID Client ID (HGCM) to use for this client state. 1498 1498 */ 1499 static int sh aredClipboardSvcClientStateInit(PSHCLCLIENTSTATE pClientState, uint32_t uClientID)1499 static int shclSvcClientStateInit(PSHCLCLIENTSTATE pClientState, uint32_t uClientID) 1500 1500 { 1501 1501 LogFlowFuncEnter(); 1502 1502 1503 sh aredClipboardSvcClientStateReset(pClientState);1503 shclSvcClientStateReset(pClientState); 1504 1504 1505 1505 /* Register the client. */ … … 1515 1515 * @param pClientState Client state to destroy. 1516 1516 */ 1517 static int sh aredClipboardSvcClientStateDestroy(PSHCLCLIENTSTATE pClientState)1517 static int shclSvcClientStateDestroy(PSHCLCLIENTSTATE pClientState) 1518 1518 { 1519 1519 RT_NOREF(pClientState); … … 1529 1529 * @param pClientState Client state to reset. 1530 1530 */ 1531 static void sh aredClipboardSvcClientStateReset(PSHCLCLIENTSTATE pClientState)1531 static void shclSvcClientStateReset(PSHCLCLIENTSTATE pClientState) 1532 1532 { 1533 1533 LogFlowFuncEnter(); … … 1570 1570 rc = HGCMSvcGetU32(&paParms[0], &u32Mode); 1571 1571 if (RT_SUCCESS(rc)) 1572 rc = sh aredClipboardSvcModeSet(u32Mode);1572 rc = shclSvcModeSet(u32Mode); 1573 1573 } 1574 1574 … … 1598 1598 { 1599 1599 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 1600 rc = sh aredClipboardSvcTransferHostHandler(u32Function, cParms, paParms);1600 rc = shclSvcTransferHostHandler(u32Function, cParms, paParms); 1601 1601 #else 1602 1602 rc = VERR_NOT_IMPLEMENTED; … … 1791 1791 } 1792 1792 1793 rc = sh aredClipboardSvcMsgAdd(pClient, pMsg, true /* fAppend */);1793 rc = shclSvcMsgAdd(pClient, pMsg, true /* fAppend */); 1794 1794 AssertRCReturn(rc, rc); 1795 1795 } … … 1802 1802 1803 1803 /* Actual host data are to be reported to guest (SYNC). */ 1804 Sh aredClipboardSvcImplSync(pClient);1804 ShClSvcImplSync(pClient); 1805 1805 1806 1806 #else /* UNIT_TEST */ … … 1843 1843 formatData.uFormats = u32Format; 1844 1844 1845 rc = sh aredClipboardSvcFormatsReport(pClient, &formatData);1845 rc = shclSvcFormatsReport(pClient, &formatData); 1846 1846 } 1847 1847 … … 1858 1858 dataReq.cbSize = _64K; /** @todo Make this more dynamic. */ 1859 1859 1860 rc = sh aredClipboardSvcDataReadRequest(pClient, &dataReq, NULL /* puEvent */);1860 rc = shclSvcDataReadRequest(pClient, &dataReq, NULL /* puEvent */); 1861 1861 break; 1862 1862 }
Note:
See TracChangeset
for help on using the changeset viewer.