VirtualBox

Changeset 98341 in vbox for trunk/src


Ignore:
Timestamp:
Jan 30, 2023 3:09:52 AM (2 years ago)
Author:
vboxsync
Message:

Main: bugref:4784: rename MachineSharedFolder to SharedFolder [build fix]

Location:
trunk/src/VBox/Main
Files:
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/Makefile.kmk

    r98340 r98341  
    614614        src-all/Logging.cpp \
    615615        src-all/NvramStoreImpl.cpp \
    616   src-all/MachineSharedFolderImpl.cpp \
    617616        src-all/PCIDeviceAttachmentImpl.cpp \
    618617        src-all/ProgressImpl.cpp \
    619618        src-all/SecretKeyStore.cpp \
     619  src-all/SharedFolderImpl.cpp \
    620620        src-all/AutoCaller.cpp \
    621621        src-all/ThreadTask.cpp \
  • trunk/src/VBox/Main/include/ConsoleSharedFolderImpl.h

    r98340 r98341  
    121121};
    122122
    123 #endif /* !MAIN_INCLUDED_SharedFolderImpl_h */
     123#endif /* !MAIN_INCLUDED_ConsoleSharedFolderImpl_h */
    124124/* vi: set tabstop=4 shiftwidth=4 expandtab: */
  • trunk/src/VBox/Main/include/SharedFolderImpl.h

    r98103 r98341  
    55
    66/*
    7  * Copyright (C) 2006-2023 Oracle and/or its affiliates.
     7 * Copyright (C) 2006-2022 Oracle and/or its affiliates.
    88 *
    99 * This file is part of VirtualBox base platform packages, as
     
    5151                 bool aWritable, bool aAutoMount, const com::Utf8Str &aAutoMountPoint, bool fFailOnError);
    5252    HRESULT initCopy(Machine *aMachine, SharedFolder *aThat);
    53     HRESULT init(Console *aConsole, const com::Utf8Str &aName, const com::Utf8Str &aHostPath,
    54                  bool aWritable, bool aAutoMount, const com::Utf8Str &aAutoMountPoint, bool fFailOnError);
     53//    HRESULT init(Console *aConsole, const com::Utf8Str &aName, const com::Utf8Str &aHostPath,
     54//                 bool aWritable, bool aAutoMount, const com::Utf8Str &aAutoMountPoint, bool fFailOnError);
    5555//     HRESULT init(VirtualBox *aVirtualBox, const Utf8Str &aName, const Utf8Str &aHostPath,
    5656//                  bool aWritable, const com::Utf8Str &aAutoMountPoint, bool aAutoMount, bool fFailOnError);
     
    115115
    116116    /* weak parents (only one of them is not null) */
    117 #if !defined(VBOX_COM_INPROC)
    118117    Machine        * const mMachine;
    119118    VirtualBox     * const mVirtualBox;
    120 #else
    121     Console        * const mConsole;
    122 #endif
    123119
    124     struct Data;            // opaque data struct, defined in SharedFolderImpl.cpp
     120    struct Data;            // opaque data struct, defined in MachineSharedFolderImpl.cpp
    125121    Data *m;
    126122};
  • trunk/src/VBox/Main/src-all/SharedFolderImpl.cpp

    r98103 r98341  
    55
    66/*
    7  * Copyright (C) 2006-2023 Oracle and/or its affiliates.
     7 * Copyright (C) 2006-2022 Oracle and/or its affiliates.
    88 *
    99 * This file is part of VirtualBox base platform packages, as
     
    2828#define LOG_GROUP LOG_GROUP_MAIN_SHAREDFOLDER
    2929#include "SharedFolderImpl.h"
    30 #if !defined(VBOX_COM_INPROC)
    31 # include "VirtualBoxImpl.h"
    32 # include "MachineImpl.h"
    33 #endif
     30#include "VirtualBoxImpl.h"
     31#include "MachineImpl.h"
    3432#include "ConsoleImpl.h"
    3533
     
    6462SharedFolder::SharedFolder()
    6563    : mParent(NULL),
    66 #if !defined(VBOX_COM_INPROC)
    6764      mMachine(NULL),
    6865      mVirtualBox(NULL)
    69 #else
    70       mConsole(NULL)
    71 #endif
    7266{
    7367    m = new Data;
     
    9488/////////////////////////////////////////////////////////////////////////////
    9589
    96 #if !defined(VBOX_COM_INPROC)
    9790/**
    9891 *  Initializes the shared folder object.
     
    189182                           bool aWritable,
    190183                           bool aAutoMount,
    191                            const Utf8Str &aAutoMountPoint
     184                           const Utf8Str &aAutoMountPoint,
    192185                           bool fFailOnError)
    193186{
     
    208201
    209202# endif
    210 
    211 #else
    212 
    213 /**
    214  *  Initializes the shared folder object.
    215  *
    216  *  This variant initializes an instance that lives in the console address space.
    217  *
    218  *  @param aConsole     Console parent object
    219  *  @param aName        logical name of the shared folder
    220  *  @param aHostPath    full path to the shared folder on the host
    221  *  @param aWritable    writable if true, readonly otherwise
    222  *  @param aAutoMountPoint Where the guest should try auto mount it.
    223  *  @param fFailOnError Whether to fail with an error if the shared folder path is bad.
    224  *
    225  *  @return          COM result indicator
    226  */
    227 HRESULT SharedFolder::init(Console *aConsole,
    228                            const Utf8Str &aName,
    229                            const Utf8Str &aHostPath,
    230                            bool aWritable,
    231                            bool aAutoMount,
    232                            const Utf8Str &aAutoMountPoint,
    233                            bool fFailOnError)
    234 {
    235     /* Enclose the state transition NotReady->InInit->Ready */
    236     AutoInitSpan autoInitSpan(this);
    237     AssertReturn(autoInitSpan.isOk(), E_FAIL);
    238 
    239     unconst(mConsole) = aConsole;
    240 
    241     HRESULT hrc = i_protectedInit(aConsole, aName, aHostPath, aWritable, aAutoMount, aAutoMountPoint, fFailOnError);
    242 
    243     /* Confirm a successful initialization when it's the case */
    244     if (SUCCEEDED(hrc))
    245         autoInitSpan.setSucceeded();
    246 
    247     return hrc;
    248 }
    249 #endif
    250203
    251204/**
     
    336289
    337290    unconst(mParent) = NULL;
    338 
    339 #if !defined(VBOX_COM_INPROC)
    340291    unconst(mMachine) = NULL;
    341292    unconst(mVirtualBox) = NULL;
    342 #else
    343     unconst(mConsole) = NULL;
    344 #endif
    345293}
    346294
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r98340 r98341  
    4949#include "USBDeviceFiltersImpl.h"
    5050#include "HostImpl.h"
    51 #include "MachineSharedFolderImpl.h"
     51#include "SharedFolderImpl.h"
    5252#include "GuestOSTypeImpl.h"
    5353#include "VirtualBoxErrorInfoImpl.h"
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