VirtualBox

Changeset 23859 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Oct 19, 2009 12:11:56 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53627
Message:

X11/VBoxClient: Added host version check.

Location:
trunk/src/VBox/Additions/x11/VBoxClient
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/Makefile.kmk

    r23845 r23859  
    3030VBoxClient_TEMPLATE = VBOXGUESTR3CPPEXE
    3131VBoxClient_DEFS += VBOX_X11_CLIPBOARD VBOX_WITH_HGCM
     32ifdef VBOX_WITH_DBUS
     33 VBoxClient_DEFS += VBOX_WITH_DBUS
     34endif
    3235VBoxClient_DEFS.linux += _GNU_SOURCE
    3336VBoxClient_SOURCES = \
     
    6265        Xext Xmu
    6366endif
    64 
     67ifdef VBOX_WITH_GUEST_PROPS
     68 VBoxClient_SOURCES += hostversion.cpp
     69 VBoxClient_DEFS += VBOX_WITH_GUEST_PROPS
     70endif
    6571#
    6672# Link aginst libstdc++.a. (http://www.trilithium.com/johan/2005/06/static-libstdc/).
  • trunk/src/VBox/Additions/x11/VBoxClient/VBoxClient.h

    r23845 r23859  
    4646extern Service *GetSeamlessService();
    4747extern Service *GetDisplayService();
     48extern Service *GetHostVersionService();
    4849
    4950extern void CleanUp();
  • trunk/src/VBox/Additions/x11/VBoxClient/main.cpp

    r23845 r23859  
    190190                fSuccess = false;
    191191        }
     192#ifdef VBOX_WITH_GUEST_PROPS
     193        else if (!strcmp(argv[i], "--checkhostversion"))
     194        {
     195            if (g_pService == NULL)
     196                g_pService = VBoxClient::GetHostVersionService();
     197            else
     198                fSuccess = false;
     199        }
     200#endif
    192201        else if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help"))
    193202        {
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