VirtualBox

Ignore:
Timestamp:
Apr 2, 2010 4:43:02 PM (15 years ago)
Author:
vboxsync
Message:

Config.kmk,VBoxHeadless: VNC build fixes + docs.

Location:
trunk/src/VBox/Frontends/VBoxHeadless
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxHeadless/Makefile.kmk

    r27753 r27962  
    6666 VBoxHeadless_DEFS     += VBOX_WITH_VNC
    6767 VBoxHeadless_SOURCES  += FramebufferVNC.cpp
     68 VBoxHeadless_LIBS     += vncserver
    6869endif
    6970
  • trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp

    r27948 r27962  
     1/* $Id$ */
    12/** @file
    2  *
    3  * VBox frontends: VBoxHeadless (headless frontend):
    4  * Headless server executable
     3 * VBoxHeadless - The VirtualBox Headless frontend for running VMs on servers.
    54 */
    65
    76/*
    8  * Copyright (C) 2006-2009 Sun Microsystems, Inc.
     7 * Copyright (C) 2006-2010 Sun Microsystems, Inc.
    98 *
    109 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    6766# include "Framebuffer.h"
    6867#endif
     68#ifdef VBOX_WITH_VNC
     69# include "FramebufferVNC.h"
     70#endif
     71
    6972
    7073////////////////////////////////////////////////////////////////////////////////
     
    962965        if (fVNCEnable)
    963966        {
    964             VNCFB           *pFramebuffer;
    965             PFNREGISTERVNCFB pfnRegisterVNCFB;
    966 
    967             pFramebuffer = new VNCFB(console, uVNCPort, pszVNCPassword);
    968             rc = pFramebuffer->init();
     967            VNCFB           *pFramebufferVNC;
     968
     969            pFramebufferVNC = new VNCFB(console, uVNCPort, pszVNCPassword);
     970            rc = pFramebufferVNC->init();
    969971            if (rc != S_OK)
    970972            {
    971973                LogError("Failed to load the vnc server extension, possibly due to a damaged file\n", rc);
    972                 delete pFramebuffer;
     974                delete pFramebufferVNC;
    973975                break;
    974976            }
    975977
    976978            Log2(("VBoxHeadless: Registering VNC framebuffer\n"));
    977             pFramebuffer->AddRef();
    978             display->SetFramebuffer(VBOX_VIDEO_PRIMARY_SCREEN, pFramebuffer);
     979            pFramebufferVNC->AddRef();
     980            display->SetFramebuffer(VBOX_VIDEO_PRIMARY_SCREEN, pFramebufferVNC);
    979981        }
    980982        if (rc != S_OK)
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