utils.h revision 2883e7039d8138676e0a0d96c56f4838f1bf049b
/* $Id$ */
/** @file
*/
/*
* Copyright (C) 2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#ifndef _NETLIB_UTILS_H_
#define _NETLIB_UTILS_H_
{
BOOL fNeedDhcpServer = false;
return false;
return RT_BOOL(fNeedDhcpServer);
}
inline int findDhcpServer(const ComVirtualBoxPtr& vbox, const std::string& name, ComDhcpServerPtr& dhcp)
{
dhcp.asOutParam());
return VINF_SUCCESS;
}
{
nat.asOutParam());
return VINF_SUCCESS;
}
{
return netid;
}
int hostDnsServers(const ComHostPtr&, const RTNETADDRIPV4&,/* const */ AddressToOffsetMapping&, AddressList&);
{
};
{
{
return S_OK;
}
{
return S_OK;
}
{
if (m_pNAT)
else
return E_FAIL;
}
};
# if VBOX_WITH_XPCOM
# endif
/* XXX: const is commented out because of compilation erro on Windows host, but it's intended that this function
isn't modify event type array */
int destroyClientListener(ComNatListenerPtr& listener, const ComVirtualBoxClientPtr& vboxclientptr);
#endif