Changeset 82488 in vbox
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HostServices/VBoxClipboardSvc.h
r82486 r82488 293 293 * 294 294 * @deprecated Replaced by VBOX_SHCL_GUEST_FN_MSG_PEEK_WAIT, 295 * VBOX_SHCL_GUEST_FN_MSG_GET, VBOX_SHCL_GUEST_FN_ MSG_CANCEL.295 * VBOX_SHCL_GUEST_FN_MSG_GET, VBOX_SHCL_GUEST_FN_CANCEL. 296 296 */ 297 297 #define VBOX_SHCL_GUEST_FN_GET_HOST_MSG_OLD 1 … … 313 313 #define VBOX_SHCL_GUEST_FN_DATA_WRITE 4 314 314 315 /** Does the actual protocol handshake. If this message is not 316 * being sent by the guest, the host handles that particular client 317 * with the legacy protocol (v0). 315 /** Does the actual protocol handshake. 316 * 317 * If this message is not being sent by the guest, the host handles that 318 * particular client with the legacy protocol (v0). 318 319 * 319 320 * @retval VINF_SUCCESS on success. … … 339 340 /** Query the host ones feature masks. 340 341 * 341 * That way the guest (client) can get hold of the features 342 * from the host. Again, it is prudent to set the 127 bit and observe it being 343 * cleared on success, as older hosts might return success without doing 344 * anything. 342 * That way the guest (client) can get hold of the features from the host. 343 * Again, it is prudent to set the 127 bit and observe it being cleared on 344 * success, as older hosts might return success without doing anything. 345 345 * 346 346 * @retval VINF_SUCCESS on success. … … 533 533 */ 534 534 #define VBOX_SHCL_GUEST_FN_ERROR 27 535 536 /** The last function number (used for validation/sanity). */ 537 #define VBOX_SHCL_GUEST_FN_LAST VBOX_SHCL_GUEST_FN_ERROR 535 538 /** @} */ 536 539 -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp
r82486 r82488 1712 1712 u32ClientID, u32Function, ShClGuestMsgToStr(u32Function), cParms, paParms)); 1713 1713 1714 #ifdef DEBUG 1715 uint32_t i; 1716 1717 for (i = 0; i < cParms; i++) 1714 #ifdef LOG_ENABLED 1715 for (uint32_t i = 0; i < cParms; i++) 1718 1716 { 1719 1717 /** @todo parameters other than 32 bit */ … … 1889 1887 LogRel2(("Shared Clipboard: Operation canceled by guest side\n")); 1890 1888 1889 /** @todo r=bird: What on earth is this? The only user of this message 1890 * (VBOX_SHCL_GUEST_FN_CANCEL) is VbglR3ClipboardMsgPeekWait(), where it was 1891 * copied over from guest control. What happens here is _nothing_ like what it 1892 * expects to happen. See GstCtrlService::clientMsgCancel for a reference. 1893 */ 1894 1891 1895 /* Reset client state and start over. */ 1892 1896 shclSvcClientStateReset(&pClient->State); … … 1918 1922 { 1919 1923 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 1920 if (g_fTransferMode & VBOX_SHCL_TRANSFER_MODE_ENABLED) 1921 { 1922 rc = shClSvcTransferHandler(pClient, callHandle, u32Function, cParms, paParms, tsArrival); 1924 if (u32Function <= VBOX_SHCL_GUEST_FN_LAST) 1925 { 1926 if (g_fTransferMode & VBOX_SHCL_TRANSFER_MODE_ENABLED) 1927 rc = shClSvcTransferHandler(pClient, callHandle, u32Function, cParms, paParms, tsArrival); 1928 else 1929 { 1930 LogRel2(("Shared Clipboard: File transfers are disabled for this VM\n")); 1931 rc = VERR_ACCESS_DENIED; 1932 } 1923 1933 } 1924 1934 else 1925 {1926 LogRel2(("Shared Clipboard: File transfers are disabled for this VM\n"));1927 rc = VERR_ACCESS_DENIED;1928 }1929 #else1930 rc = VERR_NOT_SUPPORTED;1931 1935 #endif 1936 { 1937 LogRel2(("Shared Clipboard: Unknown guest function: %u (%#x)\n", u32Function, u32Function)); 1938 rc = VERR_NOT_IMPLEMENTED; 1939 } 1932 1940 break; 1933 1941 }
Note:
See TracChangeset
for help on using the changeset viewer.