VirtualBox

Ignore:
Timestamp:
Jul 12, 2020 12:24:26 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139240
Message:

Main/Performance.cpp/h: A whole bunch of int/HRESULT mixups. bugref:9790

File:
1 edited

Legend:

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

    r82968 r85263  
    280280                         ULONG aBalloonedVMM, ULONG aSharedVMM,
    281281                         ULONG aVmNetRx, ULONG aVmNetTx);
    282         int enable(ULONG mask);
    283         int disable(ULONG mask);
    284 
    285         int enqueueRequest(CollectorGuestRequest *aRequest);
     282        HRESULT enable(ULONG mask);
     283        HRESULT disable(ULONG mask);
     284
     285        HRESULT enqueueRequest(CollectorGuestRequest *aRequest);
    286286        HRESULT enableInternal(ULONG mask);
    287         int disableInternal(ULONG mask);
     287        HRESULT disableInternal(ULONG mask);
    288288
    289289        const com::Utf8Str& getVMName() const { return mMachineName; };
     
    307307
    308308    private:
    309         int enableVMMStats(bool mCollectVMMStats);
     309        HRESULT enableVMMStats(bool mCollectVMMStats);
    310310
    311311        CollectorGuestManager *mManager;
     
    347347        void preCollect(CollectorHints& hints, uint64_t iTick);
    348348        void destroyUnregistered();
    349         int enqueueRequest(CollectorGuestRequest *aRequest);
     349        HRESULT enqueueRequest(CollectorGuestRequest *aRequest);
    350350
    351351        CollectorGuest *getBlockedGuest() { return mGuestBeingCalled; };
     
    418418        bool collectorBeat(uint64_t nowAt);
    419419
    420         virtual int enable()  { mEnabled = true; return S_OK; };
    421         virtual int disable() { mEnabled = false; return S_OK; };
     420        virtual HRESULT enable()  { mEnabled = true; return S_OK; };
     421        virtual HRESULT disable() { mEnabled = false; return S_OK; };
    422422        void unregister() { mUnregistered = true; };
    423423
     
    649649        void preCollect(CollectorHints& hints, uint64_t iTick);
    650650        void collect();
    651         int enable();
    652         int disable();
     651        HRESULT enable();
     652        HRESULT disable();
    653653        const char *getUnit() { return "kB"; };
    654654        ULONG getMinValue() { return 0; };
     
    759759        void preCollect(CollectorHints& hints, uint64_t iTick);
    760760        void collect();
    761         int enable();
    762         int disable();
     761        HRESULT enable();
     762        HRESULT disable();
    763763        const char *getUnit() { return "B/s"; };
    764764        ULONG getMinValue() { return 0; };
     
    779779        void preCollect(CollectorHints& hints, uint64_t iTick);
    780780        void collect();
    781         int enable();
    782         int disable();
     781        HRESULT enable();
     782        HRESULT disable();
    783783        const char *getUnit() { return "%"; };
    784784        ULONG getMinValue() { return 0; };
     
    801801        void preCollect(CollectorHints& hints, uint64_t iTick);
    802802        void collect();
    803         int enable();
    804         int disable();
     803        HRESULT enable();
     804        HRESULT disable();
    805805        const char *getUnit() { return "kB"; };
    806806        ULONG getMinValue() { return 0; };
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