Changeset 65263 in vbox for trunk/src/VBox/Frontends/VBoxHeadless
- Timestamp:
- Jan 12, 2017 3:25:30 PM (8 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxHeadless
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/Makefile.kmk
r62493 r65263 5 5 6 6 # 7 # Copyright (C) 2006-201 6Oracle Corporation7 # Copyright (C) 2006-2017 Oracle Corporation 8 8 # 9 9 # This file is part of VirtualBox Open Source Edition (OSE), as … … 45 45 # 46 46 VBoxHeadless_TEMPLATE := $(if $(VBOX_WITH_HARDENING),VBOXMAINCLIENTDLL,VBOXMAINCLIENTEXE) 47 VBoxHeadless_DEFS += $(if $(VBOX_WITH_V PX),VBOX_WITH_VPX,)47 VBoxHeadless_DEFS += $(if $(VBOX_WITH_VIDEOREC),VBOX_WITH_VIDEOREC,) 48 48 VBoxHeadless_SOURCES = VBoxHeadless.cpp 49 49 ifdef VBOX_WITH_GUEST_PROPS -
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r64184 r65263 5 5 6 6 /* 7 * Copyright (C) 2006-201 6Oracle Corporation7 * Copyright (C) 2006-2017 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 44 44 #include <VBox/VBoxVideo.h> 45 45 46 #ifdef VBOX_WITH_V PX46 #ifdef VBOX_WITH_VIDEOREC 47 47 # include <cstdlib> 48 48 # include <cerrno> … … 464 464 " settings password\n" 465 465 " -start-paused, --start-paused Start the VM in paused state\n" 466 #ifdef VBOX_WITH_V PX466 #ifdef VBOX_WITH_VIDEOREC 467 467 " -c, -capture, --capture Record the VM screen output to a file\n" 468 468 " -w, --width Frame width when recording\n" … … 475 475 } 476 476 477 #ifdef VBOX_WITH_V PX477 #ifdef VBOX_WITH_VIDEOREC 478 478 /** 479 479 * Parse the environment for variables which can influence the VIDEOREC settings. … … 524 524 *ppszFileName = pszEnvTemp; 525 525 } 526 #endif /* VBOX_WITH_V PXdefined */526 #endif /* VBOX_WITH_VIDEOREC defined */ 527 527 528 528 static RTEXITCODE readPasswordFile(const char *pszFilename, com::Utf8Str *pPasswd) … … 626 626 unsigned fCSAM = ~0U; 627 627 unsigned fPaused = 0; 628 #ifdef VBOX_WITH_V PX628 #ifdef VBOX_WITH_VIDEOREC 629 629 bool fVideoRec = 0; 630 630 unsigned long ulFrameWidth = 800; … … 633 633 char szMpegFile[RTPATH_MAX]; 634 634 const char *pszFileNameParam = "VBox-%d.vob"; 635 #endif /* VBOX_WITH_V PX*/635 #endif /* VBOX_WITH_VIDEOREC */ 636 636 #ifdef RT_OS_WINDOWS 637 637 ATL::CComModule _Module; /* Required internally by ATL (constructor records instance in global variable). */ … … 643 643 "All rights reserved.\n\n"); 644 644 645 #ifdef VBOX_WITH_V PX645 #ifdef VBOX_WITH_VIDEOREC 646 646 /* Parse the environment */ 647 647 parse_environ(&ulFrameWidth, &ulFrameHeight, &ulBitRate, &pszFileNameParam); … … 696 696 { "--settingspw", OPT_SETTINGSPW, RTGETOPT_REQ_STRING }, 697 697 { "--settingspwfile", OPT_SETTINGSPW_FILE, RTGETOPT_REQ_STRING }, 698 #ifdef VBOX_WITH_V PX698 #ifdef VBOX_WITH_VIDEOREC 699 699 { "-capture", 'c', 0 }, 700 700 { "--capture", 'c', 0 }, … … 703 703 { "--bitrate", 'r', RTGETOPT_REQ_UINT32 }, 704 704 { "--filename", 'f', RTGETOPT_REQ_STRING }, 705 #endif /* VBOX_WITH_V PXdefined */705 #endif /* VBOX_WITH_VIDEOREC defined */ 706 706 { "-comment", OPT_COMMENT, RTGETOPT_REQ_STRING }, 707 707 { "--comment", OPT_COMMENT, RTGETOPT_REQ_STRING }, … … 780 780 fPaused = true; 781 781 break; 782 #ifdef VBOX_WITH_V PX782 #ifdef VBOX_WITH_VIDEOREC 783 783 case 'c': 784 784 fVideoRec = true; … … 793 793 pszFileNameParam = ValueUnion.psz; 794 794 break; 795 #endif /* VBOX_WITH_V PXdefined */795 #endif /* VBOX_WITH_VIDEOREC defined */ 796 796 case 'h': 797 #ifdef VBOX_WITH_V PX797 #ifdef VBOX_WITH_VIDEOREC 798 798 if ((GetState.pDef->fFlags & RTGETOPT_REQ_MASK) != RTGETOPT_REQ_NOTHING) 799 799 { … … 817 817 } 818 818 819 #ifdef VBOX_WITH_V PX819 #ifdef VBOX_WITH_VIDEOREC 820 820 if (ulFrameWidth < 512 || ulFrameWidth > 2048 || ulFrameWidth % 2) 821 821 { … … 847 847 } 848 848 RTStrPrintf(&szMpegFile[0], RTPATH_MAX, pszFileNameParam, RTProcSelf()); 849 #endif /* defined VBOX_WITH_V PX*/849 #endif /* defined VBOX_WITH_VIDEOREC */ 850 850 851 851 if (!pcszNameOrUUID) … … 958 958 CHECK_ERROR_BREAK(console, COMGETTER(Display)(display.asOutParam())); 959 959 960 #ifdef VBOX_WITH_V PX960 #ifdef VBOX_WITH_VIDEOREC 961 961 if (fVideoRec) 962 962 { … … 967 967 CHECK_ERROR_BREAK(machine, COMSETTER(VideoCaptureEnabled)(TRUE)); 968 968 } 969 #endif /* defined(VBOX_WITH_V PX) */969 #endif /* defined(VBOX_WITH_VIDEOREC) */ 970 970 971 971 /* get the machine debugger (isn't necessarily available) */ … … 1216 1216 Log(("VBoxHeadless: event loop has terminated...\n")); 1217 1217 1218 #ifdef VBOX_WITH_V PX1218 #ifdef VBOX_WITH_VIDEOREC 1219 1219 if (fVideoRec) 1220 1220 { … … 1222 1222 machine->COMSETTER(VideoCaptureEnabled)(FALSE); 1223 1223 } 1224 #endif /* defined(VBOX_WITH_V PX) */1224 #endif /* defined(VBOX_WITH_VIDEOREC) */ 1225 1225 1226 1226 /* we don't have to disable VRDE here because we don't save the settings of the VM */
Note:
See TracChangeset
for help on using the changeset viewer.