VirtualBox

Ignore:
Timestamp:
Mar 25, 2014 6:29:02 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92972
Message:

6813 src-all/ProgressImp.cpp + some formatting/line length sorting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/generic/NetIf-generic.cpp

    r50196 r50874  
    157157}
    158158
    159 int NetIfEnableStaticIpConfigV6(VirtualBox * /* vBox */, HostNetworkInterface * pIf, IN_BSTR aOldIPV6Address, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength)
     159int NetIfEnableStaticIpConfigV6(VirtualBox * /* vBox */, HostNetworkInterface * pIf, IN_BSTR aOldIPV6Address,
     160                                IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength)
    160161{
    161162    char szAddress[5*8 + 1 + 5 + 1];
     
    205206            if (RT_FAILURE(rc))
    206207            {
    207                 progress->notifyComplete(E_FAIL,
    208                                          COM_IIDOF(IHostNetworkInterface),
    209                                          HostNetworkInterface::getStaticComponentName(),
    210                                          "Failed to get program path, rc=%Rrc\n", rc);
     208                progress->i_notifyComplete(E_FAIL,
     209                                           COM_IIDOF(IHostNetworkInterface),
     210                                           HostNetworkInterface::getStaticComponentName(),
     211                                           "Failed to get program path, rc=%Rrc\n", rc);
    211212                return rc;
    212213            }
     
    235236                    if (!strncmp(VBOXNETADPCTL_NAME ":", szBuf, sizeof(VBOXNETADPCTL_NAME)))
    236237                    {
    237                         progress->notifyComplete(E_FAIL,
    238                                                  COM_IIDOF(IHostNetworkInterface),
    239                                                  HostNetworkInterface::getStaticComponentName(),
    240                                                  "%s", szBuf);
     238                        progress->i_notifyComplete(E_FAIL,
     239                                                   COM_IIDOF(IHostNetworkInterface),
     240                                                   HostNetworkInterface::getStaticComponentName(),
     241                                                   "%s", szBuf);
    241242                        pclose(fp);
    242243                        return E_FAIL;
     
    254255                        if (RT_FAILURE(rc))
    255256                        {
    256                             progress->notifyComplete(E_FAIL,
    257                                                      COM_IIDOF(IHostNetworkInterface),
    258                                                      HostNetworkInterface::getStaticComponentName(),
    259                                                      "Failed to get config info for %s (as reported by '" VBOXNETADPCTL_NAME " add')\n", szBuf);
     257                            progress->i_notifyComplete(E_FAIL,
     258                                                       COM_IIDOF(IHostNetworkInterface),
     259                                                       HostNetworkInterface::getStaticComponentName(),
     260                                                       "Failed to get config info for %s (as reported by '"
     261                                                       VBOXNETADPCTL_NAME " add')\n", szBuf);
    260262                        }
    261263                        else
     
    273275                    if ((rc = pclose(fp)) != 0)
    274276                    {
    275                         progress->notifyComplete(E_FAIL,
    276                                                  COM_IIDOF(IHostNetworkInterface),
    277                                                  HostNetworkInterface::getStaticComponentName(),
    278                                                  "Failed to execute '" VBOXNETADPCTL_NAME " add' (exit status: %d)", rc);
     277                        progress->i_notifyComplete(E_FAIL,
     278                                                   COM_IIDOF(IHostNetworkInterface),
     279                                                   HostNetworkInterface::getStaticComponentName(),
     280                                                   "Failed to execute '" VBOXNETADPCTL_NAME " add' (exit status: %d)", rc);
    279281                        rc = VERR_INTERNAL_ERROR;
    280282                    }
     
    284286                    /* Failed to add an interface */
    285287                    rc = VERR_PERMISSION_DENIED;
    286                     progress->notifyComplete(E_FAIL,
    287                                              COM_IIDOF(IHostNetworkInterface),
    288                                              HostNetworkInterface::getStaticComponentName(),
    289                                              "Failed to execute '" VBOXNETADPCTL_NAME " add' (exit status: %d). Check permissions!", rc);
     288                    progress->i_notifyComplete(E_FAIL,
     289                                               COM_IIDOF(IHostNetworkInterface),
     290                                               HostNetworkInterface::getStaticComponentName(),
     291                                               "Failed to execute '" VBOXNETADPCTL_NAME
     292                                               " add' (exit status: %d). Check permissions!", rc);
    290293                    pclose(fp);
    291294                }
    292295            }
    293296            if (RT_SUCCESS(rc))
    294                 progress->notifyComplete(rc);
     297                progress->i_notifyComplete(rc);
    295298            else
    296299                hrc = E_FAIL;
     
    337340            rc = NetIfAdpCtl(Utf8Str(ifname).c_str(), "remove", NULL, NULL);
    338341            if (RT_FAILURE(rc))
    339                 progress->notifyComplete(E_FAIL,
    340                                          COM_IIDOF(IHostNetworkInterface),
    341                                          HostNetworkInterface::getStaticComponentName(),
    342                                          "Failed to execute '" VBOXNETADPCTL_NAME "' (exit status: %d)", rc);
     342                progress->i_notifyComplete(E_FAIL,
     343                                           COM_IIDOF(IHostNetworkInterface),
     344                                           HostNetworkInterface::getStaticComponentName(),
     345                                           "Failed to execute '" VBOXNETADPCTL_NAME "' (exit status: %d)", rc);
    343346            else
    344                 progress->notifyComplete(S_OK);
     347                progress->i_notifyComplete(S_OK);
    345348        }
    346349    }
    347350    else
    348351    {
    349         progress->notifyComplete(hr);
     352        progress->i_notifyComplete(hr);
    350353        rc = VERR_INTERNAL_ERROR;
    351354    }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette