VirtualBox

Ignore:
Timestamp:
Jan 18, 2008 5:37:39 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
27325
Message:

backed out again, needs build fixes on Windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/SharedFolderImpl.cpp

    r6379 r6382  
    5858 *  @param aName        logical name of the shared folder
    5959 *  @param aHostPath    full path to the shared folder on the host
    60  *  @param aWritable    writable if true, readonly otherwise
    6160 *
    6261 *  @return          COM result indicator
    6362 */
    6463HRESULT SharedFolder::init (Machine *aMachine,
    65                             const BSTR aName, const BSTR aHostPath, bool aWritable)
     64                            const BSTR aName, const BSTR aHostPath)
    6665{
    6766    /* Enclose the state transition NotReady->InInit->Ready */
     
    7170    unconst (mMachine) = aMachine;
    7271
    73     HRESULT rc = protectedInit (aMachine, aName, aHostPath, aWritable);
     72    HRESULT rc = protectedInit (aMachine, aName, aHostPath);
    7473
    7574    /* Confirm a successful initialization when it's the case */
     
    101100
    102101    HRESULT rc = protectedInit (aMachine, aThat->mData.mName,
    103                                 aThat->mData.mHostPath, aThat->mData.mWritable);
     102                                aThat->mData.mHostPath);
    104103
    105104    /* Confirm a successful initialization when it's the case */
     
    116115 *  @param aName        logical name of the shared folder
    117116 *  @param aHostPath    full path to the shared folder on the host
    118  *  @param aWritable    writable if true, readonly otherwise
    119117 *
    120118 *  @return          COM result indicator
    121119 */
    122120HRESULT SharedFolder::init (Console *aConsole,
    123                             const BSTR aName, const BSTR aHostPath, bool aWritable)
     121                            const BSTR aName, const BSTR aHostPath)
    124122{
    125123    /* Enclose the state transition NotReady->InInit->Ready */
     
    129127    unconst (mConsole) = aConsole;
    130128
    131     HRESULT rc = protectedInit (aConsole, aName, aHostPath, aWritable);
     129    HRESULT rc = protectedInit (aConsole, aName, aHostPath);
    132130
    133131    /* Confirm a successful initialization when it's the case */
     
    144142 *  @param aName        logical name of the shared folder
    145143 *  @param aHostPath    full path to the shared folder on the host
    146  *  @param aWritable    writable if true, readonly otherwise
    147144 *
    148145 *  @return          COM result indicator
    149146 */
    150147HRESULT SharedFolder::init (VirtualBox *aVirtualBox,
    151                             const BSTR aName, const BSTR aHostPath, bool aWritable)
     148                            const BSTR aName, const BSTR aHostPath)
    152149{
    153150    /* Enclose the state transition NotReady->InInit->Ready */
     
    157154    unconst (mVirtualBox) = aVirtualBox;
    158155
    159     HRESULT rc = protectedInit (aVirtualBox, aName, aHostPath, aWritable);
     156    HRESULT rc = protectedInit (aVirtualBox, aName, aHostPath);
    160157
    161158    /* Confirm a successful initialization when it's the case */
     
    173170 */
    174171HRESULT SharedFolder::protectedInit (VirtualBoxBaseWithChildrenNEXT *aParent,
    175                                      const BSTR aName, const BSTR aHostPath, bool aWritable)
    176 {
    177     LogFlowThisFunc (("aName={%ls}, aHostPath={%ls}, aWritable={%d}\n",
    178                       aName, aHostPath, aWritable));
     172                                     const BSTR aName, const BSTR aHostPath)
     173{
     174    LogFlowThisFunc (("aName={%ls}, aHostPath={%ls}\n", aName, aHostPath));
    179175
    180176    ComAssertRet (aParent && aName && aHostPath, E_INVALIDARG);
     
    220216    unconst (mData.mName) = aName;
    221217    unconst (mData.mHostPath) = hostPath;
    222     mData.mWritable = aWritable;
    223218
    224219    return S_OK;
     
    312307}
    313308
    314 STDMETHODIMP SharedFolder::COMGETTER(Writable) (BOOL *aWritable)
    315 {
    316     if (!aWritable)
    317         return E_POINTER;
    318 
    319     *aWritable = mData.mWritable;
    320 
    321     return S_OK;
    322 }
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