VirtualBox

Ignore:
Timestamp:
Dec 5, 2008 5:20:00 PM (16 years ago)
Author:
vboxsync
Message:

Main: Cleaned up the long standing const BSTR = const (OLECHAR *) on WIn32 vs (const PRunichar) * on XPCOM clash. Cleaned up BSTR/GUID macros (IN_BSTR replaces INPTR BSTR, IN_GUID replaces INPTR GUIDPARAM, OUT_GUID replaces GUIDPARAMOUT).

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/COMDefs.h

    r13959 r15051  
    9090 * Additional COM / XPCOM defines and includes
    9191 */
    92 
    93 #define IN_BSTRPARAM    INPTR BSTR
    94 #define IN_GUIDPARAM    INPTR GUIDPARAM
    9592
    9693#if !defined (VBOX_WITH_XPCOM)
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp

    r14295 r15051  
    529529    }
    530530
    531     STDMETHOD(OnRuntimeError)(BOOL fatal, IN_BSTRPARAM id, IN_BSTRPARAM message)
     531    STDMETHOD(OnRuntimeError)(BOOL fatal, IN_BSTR id, IN_BSTR message)
    532532    {
    533533        QApplication::postEvent (mView,
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r13836 r15051  
    696696    // a deadlock.
    697697
    698     STDMETHOD(OnMachineStateChange) (IN_GUIDPARAM id, MachineState_T state)
     698    STDMETHOD(OnMachineStateChange) (IN_GUID id, MachineState_T state)
    699699    {
    700700        postEvent (new VBoxMachineStateChangeEvent (COMBase::ToQUuid (id),
     
    703703    }
    704704
    705     STDMETHOD(OnMachineDataChange) (IN_GUIDPARAM id)
     705    STDMETHOD(OnMachineDataChange) (IN_GUID id)
    706706    {
    707707        postEvent (new VBoxMachineDataChangeEvent (COMBase::ToQUuid (id)));
     
    709709    }
    710710
    711     STDMETHOD(OnExtraDataCanChange)(IN_GUIDPARAM id,
    712                                     IN_BSTRPARAM key, IN_BSTRPARAM value,
     711    STDMETHOD(OnExtraDataCanChange)(IN_GUID id,
     712                                    IN_BSTR key, IN_BSTR value,
    713713                                    BSTR *error, BOOL *allowChange)
    714714    {
     
    762762    }
    763763
    764     STDMETHOD(OnExtraDataChange) (IN_GUIDPARAM id,
    765                                   IN_BSTRPARAM key, IN_BSTRPARAM value)
     764    STDMETHOD(OnExtraDataChange) (IN_GUID id,
     765                                  IN_BSTR key, IN_BSTR value)
    766766    {
    767767        if (COMBase::ToQUuid (id).isNull())
     
    796796    }
    797797
    798     STDMETHOD(OnMediaRegistered) (IN_GUIDPARAM id, DeviceType_T type,
     798    STDMETHOD(OnMediaRegistered) (IN_GUID id, DeviceType_T type,
    799799                                  BOOL registered)
    800800    {
     
    806806    }
    807807
    808     STDMETHOD(OnMachineRegistered) (IN_GUIDPARAM id, BOOL registered)
     808    STDMETHOD(OnMachineRegistered) (IN_GUID id, BOOL registered)
    809809    {
    810810        postEvent (new VBoxMachineRegisteredEvent (COMBase::ToQUuid (id),
     
    813813    }
    814814
    815     STDMETHOD(OnSessionStateChange) (IN_GUIDPARAM id, SessionState_T state)
     815    STDMETHOD(OnSessionStateChange) (IN_GUID id, SessionState_T state)
    816816    {
    817817        postEvent (new VBoxSessionStateChangeEvent (COMBase::ToQUuid (id),
     
    820820    }
    821821
    822     STDMETHOD(OnSnapshotTaken) (IN_GUIDPARAM aMachineId, IN_GUIDPARAM aSnapshotId)
     822    STDMETHOD(OnSnapshotTaken) (IN_GUID aMachineId, IN_GUID aSnapshotId)
    823823    {
    824824        postEvent (new VBoxSnapshotEvent (COMBase::ToQUuid (aMachineId),
     
    828828    }
    829829
    830     STDMETHOD(OnSnapshotDiscarded) (IN_GUIDPARAM aMachineId, IN_GUIDPARAM aSnapshotId)
     830    STDMETHOD(OnSnapshotDiscarded) (IN_GUID aMachineId, IN_GUID aSnapshotId)
    831831    {
    832832        postEvent (new VBoxSnapshotEvent (COMBase::ToQUuid (aMachineId),
     
    836836    }
    837837
    838     STDMETHOD(OnSnapshotChange) (IN_GUIDPARAM aMachineId, IN_GUIDPARAM aSnapshotId)
     838    STDMETHOD(OnSnapshotChange) (IN_GUID aMachineId, IN_GUID aSnapshotId)
    839839    {
    840840        postEvent (new VBoxSnapshotEvent (COMBase::ToQUuid (aMachineId),
     
    844844    }
    845845
    846     STDMETHOD(OnGuestPropertyChange) (IN_GUIDPARAM /* id */,
    847                                       IN_BSTRPARAM /* key */,
    848                                       IN_BSTRPARAM /* value */,
    849                                       IN_BSTRPARAM /* flags */)
     846    STDMETHOD(OnGuestPropertyChange) (IN_GUID /* id */,
     847                                      IN_BSTR /* key */,
     848                                      IN_BSTR /* value */,
     849                                      IN_BSTR /* flags */)
    850850    {
    851851        return S_OK;
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