VirtualBox

Changeset 55514 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 29, 2015 11:46:33 AM (10 years ago)
Author:
vboxsync
Message:

DnD: Make source/target blocksizes configurable.

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/GuestDnDSourceImpl.h

    r55512 r55514  
    8787    int i_receiveRawData(PRECVDATACTX pCtx);
    8888    int i_receiveURIData(PRECVDATACTX pCtx);
     89    int i_updateProcess(PRECVDATACTX pCtx, uint32_t cbDataAdd);
    8990
    9091protected:
    9192
    92     int i_updateProcess(PRECVDATACTX pCtx, uint32_t cbDataAdd);
     93    /** Maximum data block size (in bytes) the source can handle. */
     94    uint32_t m_cbBlockSize;
    9395};
    9496
  • trunk/src/VBox/Main/src-client/GuestDnDSourceImpl.cpp

    r55512 r55514  
    102102HRESULT GuestDnDSource::FinalConstruct(void)
    103103{
     104    /* Set the maximum block size this source can handle to 64K. This always has
     105     * been hardcoded until now. */
     106    /* Note: Never ever rely on information from the guest; the host dictates what and
     107     *       how to do something, so try to negogiate a sensible value here later. */
     108    m_cbBlockSize = _64K; /** @todo Make this configurable. */
     109
    104110    LogFlowThisFunc(("\n"));
    105111    return BaseFinalConstruct();
     
    445451    {
    446452        if (   cbData > cbTotalSize
    447             || cbData > _64K) /** @todo Make this configurable? */
     453            || cbData > m_cbBlockSize)
    448454        {
    449455            LogFlowFunc(("Data sizes invalid: cbData=%RU32, cbTotalSize=%RU64\n", cbData, cbTotalSize));
  • trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp

    r55512 r55514  
    111111    /* Note: Never ever rely on information from the guest; the host dictates what and
    112112     *       how to do something, so try to negogiate a sensible value here later. */
    113     m_cbBlockSize = _32K; /** @todo Make this configurable. */
     113    m_cbBlockSize = _64K; /** @todo Make this configurable. */
    114114
    115115    LogFlowThisFunc(("\n"));
Note: See TracChangeset for help on using the changeset viewer.

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