VirtualBox

Changeset 21922 in vbox


Ignore:
Timestamp:
Jul 31, 2009 6:01:58 PM (16 years ago)
Author:
vboxsync
Message:

Additions/x11: rename VBoxClient --autoresize to VBoxClient --display in preparation for making it handle mouse cursor switches too

Location:
trunk/src/VBox/Additions/x11
Files:
4 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/Installer/98vboxadd-xclient

    r18362 r21922  
    1919
    2020/usr/bin/VBoxClient --clipboard
    21 /usr/bin/VBoxClient --autoresize
     21/usr/bin/VBoxClient --display
    2222/usr/bin/VBoxClient --seamless
  • trunk/src/VBox/Additions/x11/VBoxClient/Makefile.kmk

    r21207 r21922  
    5858        seamless-x11.cpp \
    5959        thread.cpp \
    60         autoresize.cpp
     60        display.cpp
    6161 VBoxClient_LIBS += \
    6262        Xext Xmu
  • trunk/src/VBox/Additions/x11/VBoxClient/VBoxClient.h

    r18360 r21922  
    4545extern Service *GetClipboardService();
    4646extern Service *GetSeamlessService();
    47 extern Service *GetAutoResizeService();
     47extern Service *GetDisplayService();
    4848
    4949extern void CleanUp();
  • trunk/src/VBox/Additions/x11/VBoxClient/display.cpp

    r21912 r21922  
    11/* $Id$ */
    22/** @file
    3  * X11 guest client - display auto-resize.
     3 * X11 guest client - display management.
    44 */
    55
     
    3838#include "VBoxClient.h"
    3939
    40 static int initAutoResize()
     40static int initDisplay()
    4141{
    4242    int rc = VINF_SUCCESS;
     
    6262}
    6363
    64 void cleanupAutoResize(void)
     64void cleanupDisplay(void)
    6565{
    6666    LogFlowFunc(("\n"));
     
    8787 * stale.
    8888 */
    89 int runAutoResize()
     89int runDisplay()
    9090{
    9191    LogFlowFunc(("\n"));
     
    125125}
    126126
    127 class AutoResizeService : public VBoxClient::Service
     127class DisplayService : public VBoxClient::Service
    128128{
    129129public:
    130130    virtual const char *getPidFilePath()
    131131    {
    132         return ".vboxclient-autoresize.pid";
     132        return ".vboxclient-display.pid";
    133133    }
    134134    virtual int run()
    135135    {
    136         int rc = initAutoResize();
     136        int rc = initDisplay();
    137137        if (RT_SUCCESS(rc))
    138             rc = runAutoResize();
     138            rc = runDisplay();
    139139        return rc;
    140140    }
    141141    virtual void cleanup()
    142142    {
    143         cleanupAutoResize();
     143        cleanupDisplay();
    144144    }
    145145};
    146146
    147 VBoxClient::Service *VBoxClient::GetAutoResizeService()
     147VBoxClient::Service *VBoxClient::GetDisplayService()
    148148{
    149     return new AutoResizeService;
     149    return new DisplayService;
    150150}
  • trunk/src/VBox/Additions/x11/VBoxClient/main.cpp

    r21218 r21922  
    147147void vboxClientUsage(const char *pcszFileName)
    148148{
    149     RTPrintf("Usage: %s --clipboard|--autoresize|--seamless [-d|--nodaemon]\n", pcszFileName);
     149    RTPrintf("Usage: %s --clipboard|--display|--seamless [-d|--nodaemon]\n", pcszFileName);
    150150    RTPrintf("Start the VirtualBox X Window System guest services.\n\n");
    151151    RTPrintf("Options:\n");
    152152    RTPrintf("  --clipboard      start the shared clipboard service\n");
    153     RTPrintf("  --autoresize     start the display auto-resize service\n");
     153    RTPrintf("  --display     start the display management service\n");
    154154    RTPrintf("  --seamless       start the seamless windows service\n");
    155155    RTPrintf("  -d, --nodaemon   continue running as a system service\n");
     
    190190                fSuccess = false;
    191191        }
    192         else if (!strcmp(argv[i], "--autoresize"))
     192        else if (!strcmp(argv[i], "--display"))
    193193        {
    194194            if (g_pService == NULL)
    195                 g_pService = VBoxClient::GetAutoResizeService();
     195                g_pService = VBoxClient::GetDisplayService();
    196196            else
    197197                fSuccess = false;
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