VirtualBox

Changeset 23819 in vbox for trunk/src/VBox/Additions/x11


Ignore:
Timestamp:
Oct 16, 2009 12:24:52 PM (15 years ago)
Author:
vboxsync
Message:

VBoxClient:

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

Legend:

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

    r23452 r23819  
    5858        seamless-x11.cpp \
    5959        thread.cpp \
    60         display.cpp
     60        display.cpp \
     61        hostversion.cpp
    6162 VBoxClient_LIBS += \
    6263        Xext Xmu
  • trunk/src/VBox/Additions/x11/VBoxClient/VBoxClient.h

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

    r21940 r23819  
    136136    RTPrintf("Start the VirtualBox X Window System guest services.\n\n");
    137137    RTPrintf("Options:\n");
     138    RTPrintf("  --checkhostversion      checks for a new VirtualBox host version\n");
    138139    RTPrintf("  --clipboard      start the shared clipboard service\n");
    139140    RTPrintf("  --display     start the display management service\n");
     
    190191                fSuccess = false;
    191192        }
     193        else if (!strcmp(argv[i], "--checkhostversion"))
     194        {
     195            if (g_pService == NULL)
     196                g_pService = VBoxClient::GetHostVersionService();
     197            else
     198                fSuccess = false;
     199        }
    192200        else if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help"))
    193201        {
     
    235243    }
    236244    /* Initialise the guest library. */
    237     if (RT_FAILURE(VbglR3InitUser()))
     245 /*   if (RT_FAILURE(VbglR3InitUser()))
    238246    {
    239247        RTPrintf("Failed to connect to the VirtualBox kernel service\n");
    240248        Log(("Failed to connect to the VirtualBox kernel service\n"));
    241249        return 1;
    242     }
     250    }*/
    243251    if (g_pszPidFile && RT_FAILURE(VbglR3PidFile(g_pszPidFile, &g_hPidFile)))
    244252    {
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