Changeset 27962 in vbox for trunk/src/VBox/Frontends/VBoxHeadless
- Timestamp:
- Apr 2, 2010 4:43:02 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxHeadless
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/Makefile.kmk
r27753 r27962 66 66 VBoxHeadless_DEFS += VBOX_WITH_VNC 67 67 VBoxHeadless_SOURCES += FramebufferVNC.cpp 68 VBoxHeadless_LIBS += vncserver 68 69 endif 69 70 -
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r27948 r27962 1 /* $Id$ */ 1 2 /** @file 2 * 3 * VBox frontends: VBoxHeadless (headless frontend): 4 * Headless server executable 3 * VBoxHeadless - The VirtualBox Headless frontend for running VMs on servers. 5 4 */ 6 5 7 6 /* 8 * Copyright (C) 2006-20 09Sun Microsystems, Inc.7 * Copyright (C) 2006-2010 Sun Microsystems, Inc. 9 8 * 10 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 67 66 # include "Framebuffer.h" 68 67 #endif 68 #ifdef VBOX_WITH_VNC 69 # include "FramebufferVNC.h" 70 #endif 71 69 72 70 73 //////////////////////////////////////////////////////////////////////////////// … … 962 965 if (fVNCEnable) 963 966 { 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(); 969 971 if (rc != S_OK) 970 972 { 971 973 LogError("Failed to load the vnc server extension, possibly due to a damaged file\n", rc); 972 delete pFramebuffer ;974 delete pFramebufferVNC; 973 975 break; 974 976 } 975 977 976 978 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); 979 981 } 980 982 if (rc != S_OK)
Note:
See TracChangeset
for help on using the changeset viewer.