VirtualBox

Changeset 16289 in vbox


Ignore:
Timestamp:
Jan 28, 2009 12:09:47 AM (16 years ago)
Author:
vboxsync
Message:

HostImpl.cpp: continuation indent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/HostImpl.cpp

    r16261 r16289  
    23422342                tr ("The USB Proxy Service could not be started, because the USB file system (usbfs) is not available")
    23432343# endif
    2344                               );
    2345 #else
     2344                );
     2345#else  /* !RT_OS_LINUX */
    23462346            return setWarning (E_FAIL,
    23472347                tr ("The USB Proxy Service has not yet been ported to this host"));
    2348 #endif
     2348#endif /* !RT_OS_LINUX */
    23492349        return setWarning (E_FAIL,
    23502350            tr ("Could not load the Host USB Proxy service (%Rrc)"),
     
    33193319#endif /* VBOX_WITH_RESOURCE_USAGE_API */
    33203320
    3321 STDMETHODIMP Host::FindHostNetworkInterfaceByName(IN_BSTR name, IHostNetworkInterface **networkInterface) 
    3322 { 
     3321STDMETHODIMP Host::FindHostNetworkInterfaceByName(IN_BSTR name, IHostNetworkInterface **networkInterface)
     3322{
    33233323#ifndef VBOX_WITH_HOSTNETIF_API
    33243324    return E_NOTIMPL;
    33253325#else
    3326     if (!name) 
    3327         return E_INVALIDARG; 
    3328     if (!networkInterface) 
    3329         return E_POINTER; 
    3330    
    3331     *networkInterface = NULL; 
     3326    if (!name)
     3327        return E_INVALIDARG;
     3328    if (!networkInterface)
     3329        return E_POINTER;
     3330
     3331    *networkInterface = NULL;
    33323332    ComObjPtr <HostNetworkInterface> found;
    33333333    std::list <ComObjPtr <HostNetworkInterface> > list;
     
    33473347    }
    33483348
    3349     if (!found) 
    3350         return setError (E_INVALIDARG, HostNetworkInterface::tr ( 
    3351                              "The host network interface with the given name could not be found")); 
    3352                  
    3353     return found.queryInterfaceTo (networkInterface); 
     3349    if (!found)
     3350        return setError (E_INVALIDARG, HostNetworkInterface::tr (
     3351                             "The host network interface with the given name could not be found"));
     3352
     3353    return found.queryInterfaceTo (networkInterface);
    33543354#endif
    3355 } 
    3356                  
    3357 STDMETHODIMP Host::FindHostNetworkInterfaceById(IN_GUID id, IHostNetworkInterface **networkInterface) 
    3358 { 
     3355}
     3356
     3357STDMETHODIMP Host::FindHostNetworkInterfaceById(IN_GUID id, IHostNetworkInterface **networkInterface)
     3358{
    33593359#ifndef VBOX_WITH_HOSTNETIF_API
    33603360    return E_NOTIMPL;
    33613361#else
    3362     if (Guid(id).isEmpty()) 
    3363         return E_INVALIDARG; 
    3364     if (!networkInterface) 
    3365         return E_POINTER; 
    3366                  
    3367     *networkInterface = NULL; 
     3362    if (Guid(id).isEmpty())
     3363        return E_INVALIDARG;
     3364    if (!networkInterface)
     3365        return E_POINTER;
     3366
     3367    *networkInterface = NULL;
    33683368    ComObjPtr <HostNetworkInterface> found;
    33693369    std::list <ComObjPtr <HostNetworkInterface> > list;
     
    33763376    std::list <ComObjPtr <HostNetworkInterface> >::iterator it;
    33773377    for (it = list.begin(); it != list.end(); ++it)
    3378     { 
    3379         Guid g; 
    3380         (*it)->COMGETTER(Id) (g.asOutParam()); 
    3381         if (g == Guid(id)) 
    3382             found = *it; 
    3383     } 
    3384                  
    3385     if (!found) 
    3386         return setError (E_INVALIDARG, HostNetworkInterface::tr ( 
    3387                              "The host network interface with the given GUID could not be found")); 
    3388                  
    3389     return found.queryInterfaceTo (networkInterface); 
     3378    {
     3379        Guid g;
     3380        (*it)->COMGETTER(Id) (g.asOutParam());
     3381        if (g == Guid(id))
     3382            found = *it;
     3383    }
     3384
     3385    if (!found)
     3386        return setError (E_INVALIDARG, HostNetworkInterface::tr (
     3387                             "The host network interface with the given GUID could not be found"));
     3388
     3389    return found.queryInterfaceTo (networkInterface);
    33903390#endif
    3391 } 
    3392                  
     3391}
     3392
    33933393/* vi: set tabstop=4 shiftwidth=4 expandtab: */
Note: See TracChangeset for help on using the changeset viewer.

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