vbox的更動 60583 路徑 trunk/src/VBox/Additions
- 時間撮記:
- 2016-4-20 上午08:29:42 (9 年 以前)
- 位置:
- trunk/src/VBox/Additions/common/VBoxService
- 檔案:
-
- 修改 4 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Additions/common/VBoxService/Makefile.kmk
r56294 r60583 5 5 6 6 # 7 # Copyright (C) 2007-201 5Oracle Corporation7 # Copyright (C) 2007-2016 Oracle Corporation 8 8 # 9 9 # This file is part of VirtualBox Open Source Edition (OSE), as … … 30 30 PROGRAMS.win.x86 += VBoxServiceNT 31 31 32 # Enable the timesync service within VBoxService. 33 VBOX_WITH_VBOXSERVICE_TIMESYNC := 1 34 35 # Busybox-like toolbox, embedded into VBoxService. 36 VBOX_WITH_VBOXSERVICE_TOOLBOX := 1 37 38 # VM-management functions, like memory ballooning and statistics. 39 VBOX_WITH_VBOXSERVICE_MANAGEMENT := 1 40 41 if1of ($(KBUILD_TARGET), linux) 42 # CPU hotplugging. 43 VBOX_WITH_VBOXSERVICE_CPUHOTPLUG := 1 44 endif 45 46 if1of ($(KBUILD_TARGET), win) 47 # Page Sharing (Page Fusion). 48 VBOX_WITH_VBOXSERVICE_PAGE_SHARING := 1 49 endif 50 51 ifdef VBOX_WITH_GUEST_PROPS 52 VBOX_WITH_VBOXSERVICE_VMINFO := 1 53 endif 54 55 ifdef VBOX_WITH_GUEST_CONTROL 56 # Guest Control. 57 VBOX_WITH_VBOXSERVICE_CONTROL := 1 58 endif 59 32 60 # 33 61 # VBoxService 34 62 # 35 63 VBoxService_TEMPLATE = NewVBoxGuestR3Exe 36 VBoxService_DEFS = VBOX_WITH_HGCM VBOXSERVICE_TIMESYNC VBOXSERVICE_MANAGEMENT VBOXSERVICE_TOOLBOX 64 65 # Define features to be activate. 66 VBoxService_DEFS += \ 67 $(if $(VBOX_WITH_VBOXSERVICE_CONTROL),VBOX_WITH_VBOXSERVICE_CONTROL,) \ 68 $(if $(VBOX_WITH_VBOXSERVICE_CPUHOTPLUG),VBOX_WITH_VBOXSERVICE_CPUHOTPLUG,) \ 69 $(if $(VBOX_WITH_VBOXSERVICE_MANAGEMENT),VBOX_WITH_VBOXSERVICE_MANAGEMENT,) \ 70 $(if $(VBOX_WITH_VBOXSERVICE_PAGE_SHARING),VBOX_WITH_VBOXSERVICE_PAGE_SHARING,) \ 71 $(if $(VBOX_WITH_VBOXSERVICE_TIMESYNC),VBOX_WITH_VBOXSERVICE_TIMESYNC,) \ 72 $(if $(VBOX_WITH_VBOXSERVICE_TOOLBOX),VBOX_WITH_VBOXSERVICE_TOOLBOX,) \ 73 $(if $(VBOX_WITH_VBOXSERVICE_VMINFO),VBOX_WITH_VBOXSERVICE_VMINFO,) 74 75 # Import global defines. 76 VBoxService_DEFS += \ 77 $(if $(VBOX_WITH_DBUS),VBOX_WITH_DBUS,) \ 78 $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL,) \ 79 $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \ 80 $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) 81 37 82 VBoxService_DEFS += \ 38 83 VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\" 39 84 VBoxService_DEFS.win += _WIN32_WINNT=0x0501 40 VBoxService_DEFS.os2 = VBOX_WITH_HGCM VBOXSERVICE_CLIPBOARD 41 ifdef VBOX_WITH_DBUS 42 VBoxService_DEFS += VBOX_WITH_DBUS 43 endif 44 ifdef VBOX_WITH_GUEST_PROPS 45 VBoxService_DEFS += VBOX_WITH_GUEST_PROPS VBOXSERVICE_VMINFO 46 endif 47 ifdef VBOX_WITH_GUEST_CONTROL 48 VBoxService_DEFS += VBOX_WITH_GUEST_CONTROL VBOXSERVICE_CONTROL 49 endif 50 ifdef VBOX_WITH_MEMBALLOON 51 VBoxService_DEFS += VBOX_WITH_MEMBALLOON 52 endif 53 if1of ($(KBUILD_TARGET), win) 54 VBoxService_DEFS += VBOXSERVICE_PAGE_SHARING 55 endif 56 if1of ($(KBUILD_TARGET), linux) 57 VBoxService_DEFS += VBOXSERVICE_CPUHOTPLUG 58 endif 85 VBoxService_DEFS.os2 = VBOX_WITH_HGCM VBOX_WITH_VBOXSERVICE_CLIPBOARD 86 59 87 ifdef VBOX_WITH_SHARED_FOLDERS 60 88 # darwin freebsd … … 64 92 endif 65 93 66 VBoxService_SOURCES = \ 67 VBoxService.cpp \ 68 VBoxServiceTimeSync.cpp \ 94 VBoxService_SOURCES = \ 95 VBoxService.cpp \ 69 96 VBoxServiceUtils.cpp \ 70 VBoxServiceStats.cpp \ 97 VBoxServiceStats.cpp 98 99 ifdef VBOX_WITH_VBOXSERVICE_TIMESYNC 100 VBoxService_SOURCES += \ 101 VBoxServiceTimeSync.cpp 102 endif 103 104 ifdef VBOX_WITH_VBOXSERVICE_TOOLBOX 105 VBoxService_SOURCES += \ 71 106 VBoxServiceToolBox.cpp 72 73 ifdef VBOX_WITH_GUEST_CONTROL 74 VBoxService_SOURCES += \ 75 VBoxServiceControl.cpp \ 107 endif 108 109 ifdef VBOX_WITH_VBOXSERVICE_CONTROL 110 VBoxService_SOURCES += \ 111 VBoxServiceControl.cpp \ 76 112 VBoxServiceControlProcess.cpp \ 77 113 VBoxServiceControlSession.cpp 78 114 endif 79 115 80 ifdef VBOX_WITH_ MEMBALLOON81 VBoxService_SOURCES += \116 ifdef VBOX_WITH_VBOXSERVICE_MANAGEMENT 117 VBoxService_SOURCES += \ 82 118 VBoxServiceBalloon.cpp 83 endif 119 VBoxService_DEFS += $(if $(VBOX_WITH_MEMBALLOON),VBOX_WITH_MEMBALLOON,) 120 endif 121 84 122 if1of ($(KBUILD_TARGET), win) 85 123 VBoxService_SOURCES += \ … … 87 125 endif 88 126 89 ifdef VBOX_WITH_ GUEST_PROPS90 VBoxService_SOURCES.win 127 ifdef VBOX_WITH_VBOXSERVICE_VMINFO 128 VBoxService_SOURCES.win += \ 91 129 VBoxServiceVMInfo-win.cpp 92 VBoxService_SOURCES += \93 VBoxServiceVMInfo.cpp \130 VBoxService_SOURCES += \ 131 VBoxServiceVMInfo.cpp \ 94 132 VBoxServicePropCache.cpp 95 133 endif 96 134 97 if 1of ($(KBUILD_TARGET), linux)135 ifdef VBOX_WITH_VBOXSERVICE_CPUHOTPLUG 98 136 VBoxService_SOURCES += \ 99 137 VBoxServiceCpuHotPlug.cpp … … 149 187 VBoxServiceNT_TEMPLATE = NewVBoxGuestR3Exe 150 188 VBoxServiceNT_EXTENDS = VBoxService 151 VBoxServiceNT_DEFS.win = _WIN32_WINNT=0x0400 TARGET_NT4 VBOX SERVICE_MANAGEMENT189 VBoxServiceNT_DEFS.win = _WIN32_WINNT=0x0400 TARGET_NT4 VBOX_WITH_VBOXSERVICE_MANAGEMENT 152 190 153 191 VBoxServiceVMInfo.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV) -
trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp
r58033 r60583 5 5 6 6 /* 7 * Copyright (C) 2007-201 5Oracle Corporation7 * Copyright (C) 2007-2016 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 89 89 90 90 #include "VBoxServiceInternal.h" 91 #ifdef VBOX_WITH_ GUEST_CONTROL91 #ifdef VBOX_WITH_VBOXSERVICE_CONTROL 92 92 # include "VBoxServiceControl.h" 93 93 #endif … … 143 143 } g_aServices[] = 144 144 { 145 #ifdef VBOX SERVICE_CONTROL145 #ifdef VBOX_WITH_VBOXSERVICE_CONTROL 146 146 { &g_Control, NIL_RTTHREAD, false, false, false, false, true }, 147 147 #endif 148 #ifdef VBOX SERVICE_TIMESYNC148 #ifdef VBOX_WITH_VBOXSERVICE_TIMESYNC 149 149 { &g_TimeSync, NIL_RTTHREAD, false, false, false, false, true }, 150 150 #endif 151 #ifdef VBOX SERVICE_CLIPBOARD151 #ifdef VBOX_WITH_VBOXSERVICE_CLIPBOARD 152 152 { &g_Clipboard, NIL_RTTHREAD, false, false, false, false, true }, 153 153 #endif 154 #ifdef VBOX SERVICE_VMINFO154 #ifdef VBOX_WITH_VBOXSERVICE_VMINFO 155 155 { &g_VMInfo, NIL_RTTHREAD, false, false, false, false, true }, 156 156 #endif 157 #ifdef VBOX SERVICE_CPUHOTPLUG157 #ifdef VBOX_WITH_VBOXSERVICE_CPUHOTPLUG 158 158 { &g_CpuHotPlug, NIL_RTTHREAD, false, false, false, false, true }, 159 159 #endif 160 #ifdef VBOX SERVICE_MANAGEMENT160 #ifdef VBOX_WITH_VBOXSERVICE_MANAGEMENT 161 161 # ifdef VBOX_WITH_MEMBALLOON 162 162 { &g_MemBalloon, NIL_RTTHREAD, false, false, false, false, true }, … … 164 164 { &g_VMStatistics, NIL_RTTHREAD, false, false, false, false, true }, 165 165 #endif 166 #if defined(VBOX SERVICE_PAGE_SHARING)166 #if defined(VBOX_WITH_VBOXSERVICE_PAGE_SHARING) 167 167 { &g_PageSharing, NIL_RTTHREAD, false, false, false, false, true }, 168 168 #endif … … 867 867 #endif 868 868 869 #ifdef VBOX SERVICE_TOOLBOX869 #ifdef VBOX_WITH_VBOXSERVICE_TOOLBOX 870 870 /* 871 871 * Run toolbox code before all other stuff since these things are simpler … … 879 879 880 880 bool fUserSession = false; 881 #ifdef VBOX_WITH_ GUEST_CONTROL881 #ifdef VBOX_WITH_VBOXSERVICE_CONTROL 882 882 /* 883 883 * Check if we're the specially spawned VBoxService.exe process that … … 917 917 #endif 918 918 919 #ifdef VBOX_WITH_ GUEST_CONTROL919 #ifdef VBOX_WITH_VBOXSERVICE_CONTROL 920 920 /* 921 921 * Check if we're the specially spawned VBoxService.exe process that -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlProcess.cpp
r59520 r60583 5 5 6 6 /* 7 * Copyright (C) 2012-201 5Oracle Corporation7 * Copyright (C) 2012-2016 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 1303 1303 #endif /* RT_OS_WINDOWS */ 1304 1304 1305 #ifdef VBOX SERVICE_TOOLBOX1305 #ifdef VBOX_WITH_VBOXSERVICE_TOOLBOX 1306 1306 if (RTStrStr(pszExec, "vbox_") == pszExec) 1307 1307 { … … 1317 1317 */ 1318 1318 rc = vgsvcGstCtrlProcessResolveExecutable(pszExec, szExecExp, sizeof(szExecExp)); 1319 #ifdef VBOX SERVICE_TOOLBOX1319 #ifdef VBOX_WITH_VBOXSERVICE_TOOLBOX 1320 1320 } 1321 1321 #endif -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceInternal.h
r58029 r60583 5 5 6 6 /* 7 * Copyright (C) 2007-201 5Oracle Corporation7 * Copyright (C) 2007-2016 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 166 166 extern VBOXSERVICE g_VMInfo; 167 167 extern VBOXSERVICE g_CpuHotPlug; 168 #ifdef VBOX SERVICE_MANAGEMENT168 #ifdef VBOX_WITH_VBOXSERVICE_MANAGEMENT 169 169 extern VBOXSERVICE g_MemBalloon; 170 170 extern VBOXSERVICE g_VMStatistics; 171 171 #endif 172 #ifdef VBOX SERVICE_PAGE_SHARING172 #ifdef VBOX_WITH_VBOXSERVICE_PAGE_SHARING 173 173 extern VBOXSERVICE g_PageSharing; 174 174 #endif … … 200 200 #endif 201 201 202 #ifdef VBOX SERVICE_TOOLBOX202 #ifdef VBOX_WITH_VBOXSERVICE_TOOLBOX 203 203 extern bool VGSvcToolboxMain(int argc, char **argv, RTEXITCODE *prcExit); 204 204 #endif … … 211 211 #endif /* RT_OS_WINDOWS */ 212 212 213 #ifdef VBOX SERVICE_MANAGEMENT213 #ifdef VBOX_WITH_VBOXSERVICE_MANAGEMENT 214 214 extern uint32_t VGSvcBalloonQueryPages(uint32_t cbPage); 215 215 #endif 216 #if defined(VBOX SERVICE_PAGE_SHARING)216 #if defined(VBOX_WITH_VBOXSERVICE_PAGE_SHARING) 217 217 extern RTEXITCODE VGSvcPageSharingWorkerChild(void); 218 218 #endif
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器