Changeset 18023 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 17, 2009 1:48:59 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/Makefile.kmk
r17939 r18023 60 60 VBoxInternalManage.cpp \ 61 61 VBoxManageHostonly.cpp \ 62 VBoxManageD hcpServer.cpp \62 VBoxManageDHCPServer.cpp \ 63 63 $(if $(VBOX_WITH_GUEST_PROPS),VBoxManageGuestProp.cpp) \ 64 64 VBoxManageSVN.cpp -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r17882 r18023 1726 1726 { "export", handleExportAppliance }, 1727 1727 { "hostonlyif", handleHostonlyIf }, 1728 { "dhcpserver", handleD hcpServer},1728 { "dhcpserver", handleDHCPServer}, 1729 1729 { NULL, NULL } 1730 1730 }; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h
r17882 r18023 194 194 195 195 /* VBoxManageHostonly.cpp */ 196 int handleD hcpServer(HandlerArg *a);196 int handleDHCPServer(HandlerArg *a); 197 197 198 198 #endif /* !VBOX_ONLY_DOCS */ -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDHCPServer.cpp
r18012 r18023 235 235 } 236 236 237 ComPtr<ID hcpServer> svr;238 rc = a->virtualBox->FindD hcpServerByName(NetName.mutableRaw(), svr.asOutParam());237 ComPtr<IDHCPServer> svr; 238 rc = a->virtualBox->FindDHCPServerByNetworkName(NetName.mutableRaw(), svr.asOutParam()); 239 239 if(enmCode == OP_ADD) 240 240 { … … 242 242 return errorArgument("dhcp server already exists"); 243 243 244 CHECK_ERROR(a->virtualBox, CreateD hcpServer(NetName.mutableRaw(), svr.asOutParam()));244 CHECK_ERROR(a->virtualBox, CreateDHCPServer(NetName.mutableRaw(), svr.asOutParam())); 245 245 if(FAILED(rc)) 246 246 return errorArgument("failed to create server"); … … 267 267 else 268 268 { 269 CHECK_ERROR(a->virtualBox, RemoveD hcpServer(svr));269 CHECK_ERROR(a->virtualBox, RemoveDHCPServer(svr)); 270 270 if(FAILED(rc)) 271 271 return errorArgument("failed to remove server"); … … 276 276 277 277 278 int handleD hcpServer(HandlerArg *a)278 int handleDHCPServer(HandlerArg *a) 279 279 { 280 280 int result = 0; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
r17945 r18023 765 765 case LISTDHCPSERVERS: 766 766 { 767 com::SafeIfaceArray<ID hcpServer> svrs;768 CHECK_ERROR(a->virtualBox, COMGETTER(D hcpServers)(ComSafeArrayAsOutParam (svrs)));767 com::SafeIfaceArray<IDHCPServer> svrs; 768 CHECK_ERROR(a->virtualBox, COMGETTER(DHCPServers)(ComSafeArrayAsOutParam (svrs))); 769 769 for (size_t i = 0; i < svrs.size(); ++ i) 770 770 { 771 ComPtr<ID hcpServer> svr = svrs[i];771 ComPtr<IDHCPServer> svr = svrs[i]; 772 772 Bstr netName; 773 773 svr->COMGETTER(NetworkName)(netName.asOutParam());
Note:
See TracChangeset
for help on using the changeset viewer.