VirtualBox

Ignore:
Timestamp:
Dec 9, 2020 9:42:13 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
141823
Message:

Shared Clipboard/Transfers: Initial commit for the transfer HTTP server. Work in progress. bugref:9874

Location:
trunk/src/VBox/GuestHost/SharedClipboard
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp

    r86959 r87058  
    5959# include <iprt/cpp/list.h>
    6060# include <iprt/cpp/ministring.h>
     61# include <VBox/GuestHost/SharedClipboard-transfers.h>
    6162#endif
    6263
     
    14271428    }
    14281429    else
    1429         rc = ShClX11RequestDataForX11Callback(pCtx->pFrontend, Format,
    1430                                               &pv, &cb);
     1430    {
     1431        rc = ShClX11RequestDataForX11Callback(pCtx->pFrontend, Format, &pv, &cb);
     1432    }
    14311433
    14321434    if (RT_SUCCESS(rc))
     
    20502052                if (RT_SUCCESS(RTStrValidateEncodingEx((char *)pvSrc, cbSrc, 0)))
    20512053                {
    2052                     /* URI lists on X are string separated with "\r\n". */
     2054                    /* URI lists on X are strings separated with "\r\n". */
    20532055                    RTCList<RTCString> lstRootEntries = RTCString((char *)pvSrc, cbSrc).split("\r\n");
    20542056                    for (size_t i = 0; i < lstRootEntries.size(); ++i)
     
    20572059                        AssertPtrBreakStmt(pszEntry, VERR_INVALID_PARAMETER);
    20582060
    2059                         LogFlowFunc(("URI list entry '%s'\n", pszEntry));
     2061                        rc = RTStrAAppend((char **)&pvDst, "http://localhost");
     2062                        AssertRCBreakStmt(rc, VERR_NO_MEMORY);
     2063                        cbDst += (uint32_t)strlen(pszEntry);
     2064
     2065
     2066
     2067                        /** @todo BUGBUG Fix port! */
     2068                        /** @todo Add port + UUID (virtual path). */
    20602069
    20612070                        rc = RTStrAAppend((char **)&pvDst, pszEntry);
    20622071                        AssertRCBreakStmt(rc, VERR_NO_MEMORY);
    20632072                        cbDst += (uint32_t)strlen(pszEntry);
     2073
     2074                        LogFlowFunc(("URI list entry '%s'\n", (char *)pvDst));
    20642075
    20652076                        rc = RTStrAAppend((char **)&pvDst, "\r\n");
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette