VirtualBox

Changeset 86819 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Nov 6, 2020 11:43:05 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
141263
Message:

Additions/VbglR3: Fixed compilation if VBOX_WITH_GUEST_PROPS is not defined.

Location:
trunk/src/VBox/Additions/common/VBoxGuest/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibHostVersion.cpp

    r82968 r86819  
    6161VBGLR3DECL(int) VbglR3HostVersionCheckForUpdate(HGCMCLIENTID idClient, bool *pfUpdate, char **ppszHostVersion, char **ppszGuestVersion)
    6262{
     63#ifdef VBOX_WITH_GUEST_PROPS
    6364    Assert(idClient > 0);
    6465    AssertPtr(pfUpdate);
     
    166167    }
    167168    return rc;
     169#else /* !VBOX_WITH_GUEST_PROPS */
     170    RT_NOREF(idClient, pfUpdate, ppszHostVersion, ppszGuestVersion);
     171    return VERR_NOT_SUPPORTED;
     172#endif
    168173}
    169174
     
    179184VBGLR3DECL(int) VbglR3HostVersionLastCheckedLoad(HGCMCLIENTID idClient, char **ppszVer)
    180185{
     186#ifdef VBOX_WITH_GUEST_PROPS
    181187    Assert(idClient > 0);
    182188    AssertPtr(ppszVer);
    183189    return VbglR3GuestPropReadValueAlloc(idClient, "/VirtualBox/GuestAdd/HostVerLastChecked", ppszVer);
     190#else /* !VBOX_WITH_GUEST_PROPS */
     191    RT_NOREF(idClient, ppszVer);
     192    return VERR_NOT_SUPPORTED;
     193#endif
    184194}
    185195
     
    195205VBGLR3DECL(int) VbglR3HostVersionLastCheckedStore(HGCMCLIENTID idClient, const char *pszVer)
    196206{
     207#ifdef VBOX_WITH_GUEST_PROPS
    197208    Assert(idClient > 0);
    198209    AssertPtr(pszVer);
    199210    return VbglR3GuestPropWriteValue(idClient, "/VirtualBox/GuestAdd/HostVerLastChecked", pszVer);
     211#else /* !VBOX_WITH_GUEST_PROPS */
     212    RT_NOREF(idClient, pszVer);
     213    return VERR_NOT_SUPPORTED;
     214#endif
    200215}
    201216
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibVideo.cpp

    r82968 r86819  
    405405    return rc;
    406406#else /* !VBOX_WITH_GUEST_PROPS */
     407    RT_NOREF(pcScreen);
    407408    return VERR_NOT_SUPPORTED;
    408409#endif /* !VBOX_WITH_GUEST_PROPS */
     
    482483    return rc;
    483484#else /* !VBOX_WITH_GUEST_PROPS */
     485    RT_NOREF(idScreen, cx, cy, cBits, x, y, fEnabled);
    484486    return VERR_NOT_SUPPORTED;
    485487#endif /* !VBOX_WITH_GUEST_PROPS */
     
    571573    return rc;
    572574#else /* !VBOX_WITH_GUEST_PROPS */
     575    RT_NOREF(idScreen, pcx, pcy, pcBits, px, py, pfEnabled);
    573576    return VERR_NOT_SUPPORTED;
    574577#endif /* !VBOX_WITH_GUEST_PROPS */
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