- Timestamp:
- Jan 30, 2023 3:09:52 AM (2 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/Makefile.kmk
r98340 r98341 614 614 src-all/Logging.cpp \ 615 615 src-all/NvramStoreImpl.cpp \ 616 src-all/MachineSharedFolderImpl.cpp \617 616 src-all/PCIDeviceAttachmentImpl.cpp \ 618 617 src-all/ProgressImpl.cpp \ 619 618 src-all/SecretKeyStore.cpp \ 619 src-all/SharedFolderImpl.cpp \ 620 620 src-all/AutoCaller.cpp \ 621 621 src-all/ThreadTask.cpp \ -
trunk/src/VBox/Main/include/ConsoleSharedFolderImpl.h
r98340 r98341 121 121 }; 122 122 123 #endif /* !MAIN_INCLUDED_ SharedFolderImpl_h */123 #endif /* !MAIN_INCLUDED_ConsoleSharedFolderImpl_h */ 124 124 /* vi: set tabstop=4 shiftwidth=4 expandtab: */ -
trunk/src/VBox/Main/include/SharedFolderImpl.h
r98103 r98341 5 5 6 6 /* 7 * Copyright (C) 2006-202 3Oracle and/or its affiliates.7 * Copyright (C) 2006-2022 Oracle and/or its affiliates. 8 8 * 9 9 * This file is part of VirtualBox base platform packages, as … … 51 51 bool aWritable, bool aAutoMount, const com::Utf8Str &aAutoMountPoint, bool fFailOnError); 52 52 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); 55 55 // HRESULT init(VirtualBox *aVirtualBox, const Utf8Str &aName, const Utf8Str &aHostPath, 56 56 // bool aWritable, const com::Utf8Str &aAutoMountPoint, bool aAutoMount, bool fFailOnError); … … 115 115 116 116 /* weak parents (only one of them is not null) */ 117 #if !defined(VBOX_COM_INPROC)118 117 Machine * const mMachine; 119 118 VirtualBox * const mVirtualBox; 120 #else121 Console * const mConsole;122 #endif123 119 124 struct Data; // opaque data struct, defined in SharedFolderImpl.cpp120 struct Data; // opaque data struct, defined in MachineSharedFolderImpl.cpp 125 121 Data *m; 126 122 }; -
trunk/src/VBox/Main/src-all/SharedFolderImpl.cpp
r98103 r98341 5 5 6 6 /* 7 * Copyright (C) 2006-202 3Oracle and/or its affiliates.7 * Copyright (C) 2006-2022 Oracle and/or its affiliates. 8 8 * 9 9 * This file is part of VirtualBox base platform packages, as … … 28 28 #define LOG_GROUP LOG_GROUP_MAIN_SHAREDFOLDER 29 29 #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" 34 32 #include "ConsoleImpl.h" 35 33 … … 64 62 SharedFolder::SharedFolder() 65 63 : mParent(NULL), 66 #if !defined(VBOX_COM_INPROC)67 64 mMachine(NULL), 68 65 mVirtualBox(NULL) 69 #else70 mConsole(NULL)71 #endif72 66 { 73 67 m = new Data; … … 94 88 ///////////////////////////////////////////////////////////////////////////// 95 89 96 #if !defined(VBOX_COM_INPROC)97 90 /** 98 91 * Initializes the shared folder object. … … 189 182 bool aWritable, 190 183 bool aAutoMount, 191 const Utf8Str &aAutoMountPoint 184 const Utf8Str &aAutoMountPoint, 192 185 bool fFailOnError) 193 186 { … … 208 201 209 202 # endif 210 211 #else212 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 object219 * @param aName logical name of the shared folder220 * @param aHostPath full path to the shared folder on the host221 * @param aWritable writable if true, readonly otherwise222 * @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 indicator226 */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 #endif250 203 251 204 /** … … 336 289 337 290 unconst(mParent) = NULL; 338 339 #if !defined(VBOX_COM_INPROC)340 291 unconst(mMachine) = NULL; 341 292 unconst(mVirtualBox) = NULL; 342 #else343 unconst(mConsole) = NULL;344 #endif345 293 } 346 294 -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r98340 r98341 49 49 #include "USBDeviceFiltersImpl.h" 50 50 #include "HostImpl.h" 51 #include " MachineSharedFolderImpl.h"51 #include "SharedFolderImpl.h" 52 52 #include "GuestOSTypeImpl.h" 53 53 #include "VirtualBoxErrorInfoImpl.h"
Note:
See TracChangeset
for help on using the changeset viewer.