mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 07:22:07 +03:00
vbox_network: add flags to vboxNetworkDefineCreateXML()
I need to propagate flags for the next commit. Signed-off-by: Kristina Hanicova <khanicov@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
8105fbe8e6
commit
652eac2437
@ -367,7 +367,8 @@ vboxSocketFormatAddrUtf16(struct _vboxDriver *data, virSocketAddr *addr)
|
||||
}
|
||||
|
||||
static virNetworkPtr
|
||||
vboxNetworkDefineCreateXML(virConnectPtr conn, const char *xml, bool start)
|
||||
vboxNetworkDefineCreateXML(virConnectPtr conn, const char *xml, bool start,
|
||||
unsigned int flags)
|
||||
{
|
||||
struct _vboxDriver *data = conn->privateData;
|
||||
PRUnichar *networkInterfaceNameUtf16 = NULL;
|
||||
@ -385,6 +386,8 @@ vboxNetworkDefineCreateXML(virConnectPtr conn, const char *xml, bool start)
|
||||
virNetworkPtr ret = NULL;
|
||||
nsresult rc;
|
||||
|
||||
virCheckFlags(0, NULL);
|
||||
|
||||
if (!data->vboxObj)
|
||||
return ret;
|
||||
|
||||
@ -554,12 +557,12 @@ vboxNetworkDefineCreateXML(virConnectPtr conn, const char *xml, bool start)
|
||||
|
||||
static virNetworkPtr vboxNetworkCreateXML(virConnectPtr conn, const char *xml)
|
||||
{
|
||||
return vboxNetworkDefineCreateXML(conn, xml, true);
|
||||
return vboxNetworkDefineCreateXML(conn, xml, true, 0);
|
||||
}
|
||||
|
||||
static virNetworkPtr vboxNetworkDefineXML(virConnectPtr conn, const char *xml)
|
||||
{
|
||||
return vboxNetworkDefineCreateXML(conn, xml, false);
|
||||
return vboxNetworkDefineCreateXML(conn, xml, false, 0);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user