VirtualBox

Changeset 98340 in vbox for trunk/src/VBox/Main/include


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

Main: bugref:4784: seperated SharedFolder API between VboxSVC and VM process (fixed issues from previous attempt on this)

Location:
trunk/src/VBox/Main/include
Files:
1 edited
2 copied

Legend:

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

    r98266 r98340  
    5252class OUSBDevice;
    5353class RemoteUSBDevice;
    54 class SharedFolder;
     54class ConsoleSharedFolder;
    5555class VRDEServerInfo;
    5656class EmulatedUSB;
     
    654654    };
    655655
    656     typedef std::map<Utf8Str, ComObjPtr<SharedFolder> > SharedFolderMap;
     656    typedef std::map<Utf8Str, ComObjPtr<ConsoleSharedFolder> > SharedFolderMap;
    657657    typedef std::map<Utf8Str, SharedFolderData> SharedFolderDataMap;
    658658    typedef std::map<Utf8Str, ComPtr<IMediumAttachment> > MediumAttachmentMap;
     
    692692
    693693    HRESULT i_findSharedFolder(const Utf8Str &strName,
    694                                ComObjPtr<SharedFolder> &aSharedFolder,
     694                               ComObjPtr<ConsoleSharedFolder> &aSharedFolder,
    695695                               bool aSetError = false);
    696696
  • trunk/src/VBox/Main/include/ConsoleSharedFolderImpl.h

    r98048 r98340  
    2626 */
    2727
    28 #ifndef MAIN_INCLUDED_SharedFolderImpl_h
    29 #define MAIN_INCLUDED_SharedFolderImpl_h
     28#ifndef MAIN_INCLUDED_ConsoleSharedFolderImpl_h
     29#define MAIN_INCLUDED_ConsoleSharedFolderImpl_h
    3030#ifndef RT_WITHOUT_PRAGMA_ONCE
    3131# pragma once
     
    3737class Console;
    3838
    39 class ATL_NO_VTABLE SharedFolder :
     39class ATL_NO_VTABLE ConsoleSharedFolder :
    4040    public SharedFolderWrap
    4141{
    4242public:
    4343
    44     DECLARE_COMMON_CLASS_METHODS (SharedFolder)
     44    DECLARE_COMMON_CLASS_METHODS (ConsoleSharedFolder)
    4545
    4646    HRESULT FinalConstruct();
     
    4848
    4949    // public initializer/uninitializer for internal purposes only
    50     HRESULT init(Machine *aMachine, const com::Utf8Str &aName, const com::Utf8Str &aHostPath,
    51                  bool aWritable, bool aAutoMount, const com::Utf8Str &aAutoMountPoint, bool fFailOnError);
    52     HRESULT initCopy(Machine *aMachine, SharedFolder *aThat);
     50//    HRESULT init(Machine *aMachine, const com::Utf8Str &aName, const com::Utf8Str &aHostPath,
     51//                 bool aWritable, bool aAutoMount, const com::Utf8Str &aAutoMountPoint, bool fFailOnError);
     52//    HRESULT initCopy(Machine *aMachine, SharedFolder *aThat);
    5353    HRESULT init(Console *aConsole, const com::Utf8Str &aName, const com::Utf8Str &aHostPath,
    5454                 bool aWritable, bool aAutoMount, const com::Utf8Str &aAutoMountPoint, bool fFailOnError);
     
    115115
    116116    /* weak parents (only one of them is not null) */
    117 #if !defined(VBOX_COM_INPROC)
    118     Machine        * const mMachine;
    119     VirtualBox     * const mVirtualBox;
    120 #else
    121117    Console        * const mConsole;
    122 #endif
    123118
    124     struct Data;            // opaque data struct, defined in SharedFolderImpl.cpp
     119    struct Data;            // opaque data struct, defined in ConsoleSharedFolderImpl.cpp
    125120    Data *m;
    126121};
  • trunk/src/VBox/Main/include/MachineSharedFolderImpl.h

    r98048 r98340  
    2626 */
    2727
    28 #ifndef MAIN_INCLUDED_SharedFolderImpl_h
    29 #define MAIN_INCLUDED_SharedFolderImpl_h
     28#ifndef MAIN_INCLUDED_MachineSharedFolderImpl_h
     29#define MAIN_INCLUDED_MachineSharedFolderImpl_h
    3030#ifndef RT_WITHOUT_PRAGMA_ONCE
    3131# pragma once
     
    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};
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