- Timestamp:
- Apr 2, 2010 5:13:34 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxHeadless
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/Makefile.kmk
r27962 r27963 63 63 VBoxHeadless_LDFLAGS.darwin += -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxHeadless.dylib 64 64 endif 65 ifdef VBOX_WITH_VNC 65 ifdef VBOX_WITH_VNC # (GPL only) 66 66 VBoxHeadless_DEFS += VBOX_WITH_VNC 67 67 VBoxHeadless_SOURCES += FramebufferVNC.cpp -
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r27962 r27963 533 533 " -s, -startvm, --startvm <name|uuid> Start given VM (required argument)\n" 534 534 #ifdef VBOX_WITH_VNC 535 " -n, - vncEnable the built in VNC server\n"536 " -m, - vncportTCP port number to use for the VNC server\n"537 " -o, - vncpass <pw>Set the VNC server password\n"535 " -n, --vnc Enable the built in VNC server\n" 536 " -m, --vncport <port> TCP port number to use for the VNC server\n" 537 " -o, --vncpass <pw> Set the VNC server password\n" 538 538 #endif 539 539 #ifdef VBOX_WITH_VRDP … … 616 616 bool fVNCEnable = false; 617 617 unsigned uVNCPort = 0; /* default port */ 618 char 618 char const *pszVNCPassword = NULL; /* no password */ 619 619 #endif 620 620 unsigned fRawR0 = ~0U; … … 676 676 #endif /* VBOX_WITH_VRDP defined */ 677 677 #ifdef VBOX_WITH_VNC 678 { "- vncport", 'm', RTGETOPT_REQ_INT32 },679 { "- vncpass", 'o', RTGETOPT_REQ_STRING },680 { "- vnc", 'n', 0 },678 { "--vncport", 'm', RTGETOPT_REQ_INT32 }, 679 { "--vncpass", 'o', RTGETOPT_REQ_STRING }, 680 { "--vnc", 'n', 0 }, 681 681 #endif /* VBOX_WITH_VNC */ 682 682 { "-rawr0", OPT_RAW_R0, 0 }, … … 742 742 break; 743 743 case 'o': 744 pszVNCPassword = (char*)ValueUnion.psz;744 pszVNCPassword = ValueUnion.psz; 745 745 break; 746 746 #endif /* VBOX_WITH_VNC */ … … 965 965 if (fVNCEnable) 966 966 { 967 VNCFB *pFramebufferVNC; 968 969 pFramebufferVNC = new VNCFB(console, uVNCPort, pszVNCPassword); 967 VNCFB *pFramebufferVNC = new VNCFB(console, uVNCPort, pszVNCPassword); 970 968 rc = pFramebufferVNC->init(); 971 969 if (rc != S_OK)
Note:
See TracChangeset
for help on using the changeset viewer.