- Timestamp:
- Aug 27, 2013 5:03:26 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 88472
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
r47991 r48097 1038 1038 net->COMGETTER(Enabled)(&fEnabled); 1039 1039 RTPrintf("Enabled: %s\n", fEnabled ? "Yes" : "No"); 1040 1041 #define PRINT_STRING_ARRAY(title) \ 1042 if (strs.size() > 0) \ 1043 { \ 1044 RTPrintf(title); \ 1045 size_t j = 0; \ 1046 for (;j < strs.size(); ++j) \ 1047 RTPrintf(" %s\n", Utf8Str(strs[j]).c_str()); \ 1048 } 1049 1050 com::SafeArray<BSTR> strs; 1051 1052 CHECK_ERROR(nets[i], COMGETTER(PortForwardRules4)(ComSafeArrayAsOutParam(strs))); 1053 PRINT_STRING_ARRAY("Port-forwarding (ipv4)\n"); 1054 strs.setNull(); 1055 1056 CHECK_ERROR(nets[i], COMGETTER(PortForwardRules6)(ComSafeArrayAsOutParam(strs))); 1057 PRINT_STRING_ARRAY("Port-forwarding (ipv6)\n"); 1058 strs.setNull(); 1059 1060 CHECK_ERROR(nets[i], COMGETTER(LocalMappings)(ComSafeArrayAsOutParam(strs))); 1061 PRINT_STRING_ARRAY("loopback mappings (ipv4)\n"); 1062 strs.setNull(); 1063 1064 #undef PRINT_STRING_ARRAY 1040 1065 RTPrintf("\n"); 1041 1066 }
Note:
See TracChangeset
for help on using the changeset viewer.