mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
interface: Clean up Interface section of test_driver
Clean up the code to adhere to more of the standard two spaces between functions, separate lines for type and function name, one argument per line. Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
a9d33be34e
commit
4fba40159f
@ -3646,7 +3646,8 @@ testInterfaceObjFindByName(testDriverPtr privconn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int testConnectNumOfInterfaces(virConnectPtr conn)
|
static int
|
||||||
|
testConnectNumOfInterfaces(virConnectPtr conn)
|
||||||
{
|
{
|
||||||
testDriverPtr privconn = conn->privateData;
|
testDriverPtr privconn = conn->privateData;
|
||||||
int ninterfaces;
|
int ninterfaces;
|
||||||
@ -3657,7 +3658,11 @@ static int testConnectNumOfInterfaces(virConnectPtr conn)
|
|||||||
return ninterfaces;
|
return ninterfaces;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int testConnectListInterfaces(virConnectPtr conn, char **const names, int maxnames)
|
|
||||||
|
static int
|
||||||
|
testConnectListInterfaces(virConnectPtr conn,
|
||||||
|
char **const names,
|
||||||
|
int maxnames)
|
||||||
{
|
{
|
||||||
testDriverPtr privconn = conn->privateData;
|
testDriverPtr privconn = conn->privateData;
|
||||||
int nnames;
|
int nnames;
|
||||||
@ -3669,7 +3674,9 @@ static int testConnectListInterfaces(virConnectPtr conn, char **const names, int
|
|||||||
return nnames;
|
return nnames;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int testConnectNumOfDefinedInterfaces(virConnectPtr conn)
|
|
||||||
|
static int
|
||||||
|
testConnectNumOfDefinedInterfaces(virConnectPtr conn)
|
||||||
{
|
{
|
||||||
testDriverPtr privconn = conn->privateData;
|
testDriverPtr privconn = conn->privateData;
|
||||||
int ninterfaces;
|
int ninterfaces;
|
||||||
@ -3680,7 +3687,11 @@ static int testConnectNumOfDefinedInterfaces(virConnectPtr conn)
|
|||||||
return ninterfaces;
|
return ninterfaces;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int testConnectListDefinedInterfaces(virConnectPtr conn, char **const names, int maxnames)
|
|
||||||
|
static int
|
||||||
|
testConnectListDefinedInterfaces(virConnectPtr conn,
|
||||||
|
char **const names,
|
||||||
|
int maxnames)
|
||||||
{
|
{
|
||||||
testDriverPtr privconn = conn->privateData;
|
testDriverPtr privconn = conn->privateData;
|
||||||
int nnames;
|
int nnames;
|
||||||
@ -3692,7 +3703,9 @@ static int testConnectListDefinedInterfaces(virConnectPtr conn, char **const nam
|
|||||||
return nnames;
|
return nnames;
|
||||||
}
|
}
|
||||||
|
|
||||||
static virInterfacePtr testInterfaceLookupByName(virConnectPtr conn,
|
|
||||||
|
static virInterfacePtr
|
||||||
|
testInterfaceLookupByName(virConnectPtr conn,
|
||||||
const char *name)
|
const char *name)
|
||||||
{
|
{
|
||||||
testDriverPtr privconn = conn->privateData;
|
testDriverPtr privconn = conn->privateData;
|
||||||
@ -3710,7 +3723,9 @@ static virInterfacePtr testInterfaceLookupByName(virConnectPtr conn,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static virInterfacePtr testInterfaceLookupByMACString(virConnectPtr conn,
|
|
||||||
|
static virInterfacePtr
|
||||||
|
testInterfaceLookupByMACString(virConnectPtr conn,
|
||||||
const char *mac)
|
const char *mac)
|
||||||
{
|
{
|
||||||
testDriverPtr privconn = conn->privateData;
|
testDriverPtr privconn = conn->privateData;
|
||||||
@ -3740,7 +3755,9 @@ static virInterfacePtr testInterfaceLookupByMACString(virConnectPtr conn,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int testInterfaceIsActive(virInterfacePtr iface)
|
|
||||||
|
static int
|
||||||
|
testInterfaceIsActive(virInterfacePtr iface)
|
||||||
{
|
{
|
||||||
testDriverPtr privconn = iface->conn->privateData;
|
testDriverPtr privconn = iface->conn->privateData;
|
||||||
virInterfaceObjPtr obj;
|
virInterfaceObjPtr obj;
|
||||||
@ -3757,7 +3774,9 @@ static int testInterfaceIsActive(virInterfacePtr iface)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int testInterfaceChangeBegin(virConnectPtr conn,
|
|
||||||
|
static int
|
||||||
|
testInterfaceChangeBegin(virConnectPtr conn,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
testDriverPtr privconn = conn->privateData;
|
testDriverPtr privconn = conn->privateData;
|
||||||
@ -3784,7 +3803,9 @@ static int testInterfaceChangeBegin(virConnectPtr conn,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int testInterfaceChangeCommit(virConnectPtr conn,
|
|
||||||
|
static int
|
||||||
|
testInterfaceChangeCommit(virConnectPtr conn,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
testDriverPtr privconn = conn->privateData;
|
testDriverPtr privconn = conn->privateData;
|
||||||
@ -3812,7 +3833,9 @@ static int testInterfaceChangeCommit(virConnectPtr conn,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int testInterfaceChangeRollback(virConnectPtr conn,
|
|
||||||
|
static int
|
||||||
|
testInterfaceChangeRollback(virConnectPtr conn,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
testDriverPtr privconn = conn->privateData;
|
testDriverPtr privconn = conn->privateData;
|
||||||
@ -3844,7 +3867,9 @@ static int testInterfaceChangeRollback(virConnectPtr conn,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *testInterfaceGetXMLDesc(virInterfacePtr iface,
|
|
||||||
|
static char *
|
||||||
|
testInterfaceGetXMLDesc(virInterfacePtr iface,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
testDriverPtr privconn = iface->conn->privateData;
|
testDriverPtr privconn = iface->conn->privateData;
|
||||||
@ -3865,7 +3890,9 @@ static char *testInterfaceGetXMLDesc(virInterfacePtr iface,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static virInterfacePtr testInterfaceDefineXML(virConnectPtr conn, const char *xmlStr,
|
static virInterfacePtr
|
||||||
|
testInterfaceDefineXML(virConnectPtr conn,
|
||||||
|
const char *xmlStr,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
testDriverPtr privconn = conn->privateData;
|
testDriverPtr privconn = conn->privateData;
|
||||||
@ -3893,7 +3920,9 @@ static virInterfacePtr testInterfaceDefineXML(virConnectPtr conn, const char *xm
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int testInterfaceUndefine(virInterfacePtr iface)
|
|
||||||
|
static int
|
||||||
|
testInterfaceUndefine(virInterfacePtr iface)
|
||||||
{
|
{
|
||||||
testDriverPtr privconn = iface->conn->privateData;
|
testDriverPtr privconn = iface->conn->privateData;
|
||||||
virInterfaceObjPtr privinterface;
|
virInterfaceObjPtr privinterface;
|
||||||
@ -3910,7 +3939,9 @@ static int testInterfaceUndefine(virInterfacePtr iface)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int testInterfaceCreate(virInterfacePtr iface,
|
|
||||||
|
static int
|
||||||
|
testInterfaceCreate(virInterfacePtr iface,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
testDriverPtr privconn = iface->conn->privateData;
|
testDriverPtr privconn = iface->conn->privateData;
|
||||||
@ -3937,7 +3968,9 @@ static int testInterfaceCreate(virInterfacePtr iface,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int testInterfaceDestroy(virInterfacePtr iface,
|
|
||||||
|
static int
|
||||||
|
testInterfaceDestroy(virInterfacePtr iface,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
testDriverPtr privconn = iface->conn->privateData;
|
testDriverPtr privconn = iface->conn->privateData;
|
||||||
|
Loading…
Reference in New Issue
Block a user