VirtualBox

Changeset 10236 in vbox


Ignore:
Timestamp:
Jul 4, 2008 4:06:22 PM (17 years ago)
Author:
vboxsync
Message:

Guest properties: added some missing ifdefs

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp

    r10234 r10236  
    7676    RTPrintf("%s --nologo ...      suppress the logo\n\n", g_pszProgName);
    7777
     78#ifdef VBOX_WITH_INFO_SVC
    7879    if ((GET_GUEST_PROP == eWhich) || (USAGE_ALL == eWhich))
    7980        doUsage("<key>\n", g_pszProgName, "getguestproperty");
    8081    if ((SET_GUEST_PROP == eWhich) || (USAGE_ALL == eWhich))
    8182        doUsage("<key> [<value>] (no value deletes key)\n", g_pszProgName, "setguestproperty");
     83#endif
    8284}
    8385/** @} */
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibVideo.cpp

    r9996 r10236  
    245245VBGLR3DECL(int) VbglR3SaveVideoMode(const char *pszName, uint32_t cx, uint32_t cy, uint32_t cBits)
    246246{
     247#ifdef VBOX_WITH_INFO_SVC
    247248    using namespace svcInfo;
    248249
     
    258259        VbglR3InfoSvcDisconnect(u32ClientId);  /* Return value ignored, because what can we do anyway? */
    259260    return rc;
     261#else /* VBOX_WITH_INFO_SVC not defined */
     262    return VERR_NOT_IMPLEMENTED;
     263#endif /* VBOX_WITH_INFO_SVC not defined */
    260264}
    261265
     
    272276VBGLR3DECL(int) VbglR3RetrieveVideoMode(const char *pszName, uint32_t *pcx, uint32_t *pcy, uint32_t *pcBits)
    273277{
     278#ifdef VBOX_WITH_INFO_SVC
    274279    using namespace svcInfo;
    275280
     
    315320    }
    316321    return rc;
    317 }
     322#else /* VBOX_WITH_INFO_SVC not defined */
     323    return VERR_NOT_IMPLEMENTED;
     324#endif /* VBOX_WITH_INFO_SVC not defined */
     325}
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