Changeset 42189 in vbox
- Timestamp:
- Jul 17, 2012 1:55:28 PM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r42178 r42189 114 114 #endif 115 115 " hostcpuids|hddbackends|hdds|dvds|floppies|\n" 116 " usbhost|usbfilters|systemproperties|extpacks\n" 116 " usbhost|usbfilters|systemproperties|extpacks|\n" 117 " groups\n" 117 118 "\n"); 118 119 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
r41540 r42189 249 249 } 250 250 return hrc; 251 } 252 253 254 /** 255 * List machine groups. 256 * 257 * @returns See produceList. 258 * @param rptrVirtualBox Reference to the IVirtualBox smart pointer. 259 */ 260 static HRESULT listGroups(const ComPtr<IVirtualBox> &rptrVirtualBox) 261 { 262 SafeArray<BSTR> groups; 263 CHECK_ERROR2_RET(rptrVirtualBox, COMGETTER(MachineGroups)(ComSafeArrayAsOutParam(groups)), hrcCheck); 264 265 for (size_t i = 0; i < groups.size(); i++) 266 { 267 RTPrintf("\"%ls\"\n", groups[i]); 268 } 269 return S_OK; 251 270 } 252 271 … … 277 296 kListSystemProperties, 278 297 kListDhcpServers, 279 kListExtPacks 298 kListExtPacks, 299 kListGroups 280 300 }; 281 301 … … 969 989 break; 970 990 991 case kListGroups: 992 rc = listGroups(rptrVirtualBox); 993 break; 994 971 995 /* No default here, want gcc warnings. */ 972 996 … … 1013 1037 { "dhcpservers", kListDhcpServers, RTGETOPT_REQ_NOTHING }, 1014 1038 { "extpacks", kListExtPacks, RTGETOPT_REQ_NOTHING }, 1039 { "groups", kListGroups, RTGETOPT_REQ_NOTHING }, 1015 1040 }; 1016 1041 … … 1055 1080 case kListDhcpServers: 1056 1081 case kListExtPacks: 1082 case kListGroups: 1057 1083 enmOptCommand = (enum enmListType)ch; 1058 1084 if (fOptMultiple)
Note:
See TracChangeset
for help on using the changeset viewer.