Changeset 24136 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Oct 28, 2009 12:48:41 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r23998 r24136 237 237 " [--teleporterport <port>]\n" 238 238 " [--teleporteraddress <address|empty>\n" 239 " [--teleporterpassword <password>]\n"); 239 " [--teleporterpassword <password>]\n" 240 " [--hardwareuuid <uuid>]\n" 241 ); 240 242 RTPrintf("\n"); 241 243 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r23884 r24136 146 146 147 147 BOOL accessible = FALSE; 148 CHECK_ERROR (machine, COMGETTER(Accessible)(&accessible));149 CheckComRCReturnRC 148 CHECK_ERROR(machine, COMGETTER(Accessible)(&accessible)); 149 CheckComRCReturnRC(rc); 150 150 151 151 Bstr uuid; 152 rc = machine->COMGETTER(Id) 152 rc = machine->COMGETTER(Id)(uuid.asOutParam()); 153 153 154 154 if (!accessible) … … 161 161 RTPrintf("name=\"<inaccessible>\"\n"); 162 162 else 163 RTPrintf 163 RTPrintf("Name: <inaccessible!>\n"); 164 164 if (details == VMINFO_MACHINEREADABLE) 165 RTPrintf 166 else 167 RTPrintf 165 RTPrintf("UUID=\"%s\"\n", Utf8Str(uuid).raw()); 166 else 167 RTPrintf("UUID: %s\n", Utf8Str(uuid).raw()); 168 168 if (details != VMINFO_MACHINEREADABLE) 169 169 { 170 170 Bstr settingsFilePath; 171 rc = machine->COMGETTER(SettingsFilePath) 172 RTPrintf 171 rc = machine->COMGETTER(SettingsFilePath)(settingsFilePath.asOutParam()); 172 RTPrintf("Config file: %lS\n", settingsFilePath.raw()); 173 173 ComPtr<IVirtualBoxErrorInfo> accessError; 174 rc = machine->COMGETTER(AccessError) 175 RTPrintf 176 ErrorInfo ei 174 rc = machine->COMGETTER(AccessError)(accessError.asOutParam()); 175 RTPrintf("Access error details:\n"); 176 ErrorInfo ei(accessError); 177 177 GluePrintErrorInfo(ei); 178 RTPrintf 178 RTPrintf("\n"); 179 179 } 180 180 } … … 218 218 else 219 219 RTPrintf("Config file: %lS\n", settingsFilePath.raw()); 220 221 Bstr strHardwareUuid; 222 rc = machine->COMGETTER(HardwareUUID)(strHardwareUuid.asOutParam()); 223 if (details == VMINFO_MACHINEREADABLE) 224 RTPrintf("HardwareUUID=\"%s\"\n", strHardwareUuid.raw()); 225 else 226 RTPrintf("Hardware UUID: %lS\n", strHardwareUuid.raw()); 220 227 221 228 ULONG memorySize; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r24135 r24136 126 126 MODIFYVM_TELEPORTER_PORT, 127 127 MODIFYVM_TELEPORTER_ADDRESS, 128 MODIFYVM_TELEPORTER_PASSWORD 128 MODIFYVM_TELEPORTER_PASSWORD, 129 MODIFYVM_HARDWARE_UUID 129 130 }; 130 131 … … 201 202 { "--teleporteraddress", MODIFYVM_TELEPORTER_ADDRESS, RTGETOPT_REQ_STRING }, 202 203 { "--teleporterpassword", MODIFYVM_TELEPORTER_PASSWORD, RTGETOPT_REQ_STRING }, 204 { "--hardwareuuid", MODIFYVM_HARDWARE_UUID, RTGETOPT_REQ_STRING }, 203 205 }; 204 206 … … 1816 1818 } 1817 1819 1820 case MODIFYVM_HARDWARE_UUID: 1821 { 1822 CHECK_ERROR(machine, COMSETTER(HardwareUUID)(Bstr(ValueUnion.psz))); 1823 break; 1824 } 1825 1818 1826 default: 1819 1827 {
Note:
See TracChangeset
for help on using the changeset viewer.