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:
John Ferlan 2017-04-06 09:46:43 -04:00
parent a9d33be34e
commit 4fba40159f

View File

@ -3646,7 +3646,8 @@ testInterfaceObjFindByName(testDriverPtr privconn,
}
static int testConnectNumOfInterfaces(virConnectPtr conn)
static int
testConnectNumOfInterfaces(virConnectPtr conn)
{
testDriverPtr privconn = conn->privateData;
int ninterfaces;
@ -3657,7 +3658,11 @@ static int testConnectNumOfInterfaces(virConnectPtr conn)
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;
int nnames;
@ -3669,7 +3674,9 @@ static int testConnectListInterfaces(virConnectPtr conn, char **const names, int
return nnames;
}
static int testConnectNumOfDefinedInterfaces(virConnectPtr conn)
static int
testConnectNumOfDefinedInterfaces(virConnectPtr conn)
{
testDriverPtr privconn = conn->privateData;
int ninterfaces;
@ -3680,7 +3687,11 @@ static int testConnectNumOfDefinedInterfaces(virConnectPtr conn)
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;
int nnames;
@ -3692,7 +3703,9 @@ static int testConnectListDefinedInterfaces(virConnectPtr conn, char **const nam
return nnames;
}
static virInterfacePtr testInterfaceLookupByName(virConnectPtr conn,
static virInterfacePtr
testInterfaceLookupByName(virConnectPtr conn,
const char *name)
{
testDriverPtr privconn = conn->privateData;
@ -3710,7 +3723,9 @@ static virInterfacePtr testInterfaceLookupByName(virConnectPtr conn,
return ret;
}
static virInterfacePtr testInterfaceLookupByMACString(virConnectPtr conn,
static virInterfacePtr
testInterfaceLookupByMACString(virConnectPtr conn,
const char *mac)
{
testDriverPtr privconn = conn->privateData;
@ -3740,7 +3755,9 @@ static virInterfacePtr testInterfaceLookupByMACString(virConnectPtr conn,
return ret;
}
static int testInterfaceIsActive(virInterfacePtr iface)
static int
testInterfaceIsActive(virInterfacePtr iface)
{
testDriverPtr privconn = iface->conn->privateData;
virInterfaceObjPtr obj;
@ -3757,7 +3774,9 @@ static int testInterfaceIsActive(virInterfacePtr iface)
return ret;
}
static int testInterfaceChangeBegin(virConnectPtr conn,
static int
testInterfaceChangeBegin(virConnectPtr conn,
unsigned int flags)
{
testDriverPtr privconn = conn->privateData;
@ -3784,7 +3803,9 @@ static int testInterfaceChangeBegin(virConnectPtr conn,
return ret;
}
static int testInterfaceChangeCommit(virConnectPtr conn,
static int
testInterfaceChangeCommit(virConnectPtr conn,
unsigned int flags)
{
testDriverPtr privconn = conn->privateData;
@ -3812,7 +3833,9 @@ static int testInterfaceChangeCommit(virConnectPtr conn,
return ret;
}
static int testInterfaceChangeRollback(virConnectPtr conn,
static int
testInterfaceChangeRollback(virConnectPtr conn,
unsigned int flags)
{
testDriverPtr privconn = conn->privateData;
@ -3844,7 +3867,9 @@ static int testInterfaceChangeRollback(virConnectPtr conn,
return ret;
}
static char *testInterfaceGetXMLDesc(virInterfacePtr iface,
static char *
testInterfaceGetXMLDesc(virInterfacePtr iface,
unsigned int flags)
{
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)
{
testDriverPtr privconn = conn->privateData;
@ -3893,7 +3920,9 @@ static virInterfacePtr testInterfaceDefineXML(virConnectPtr conn, const char *xm
return ret;
}
static int testInterfaceUndefine(virInterfacePtr iface)
static int
testInterfaceUndefine(virInterfacePtr iface)
{
testDriverPtr privconn = iface->conn->privateData;
virInterfaceObjPtr privinterface;
@ -3910,7 +3939,9 @@ static int testInterfaceUndefine(virInterfacePtr iface)
return ret;
}
static int testInterfaceCreate(virInterfacePtr iface,
static int
testInterfaceCreate(virInterfacePtr iface,
unsigned int flags)
{
testDriverPtr privconn = iface->conn->privateData;
@ -3937,7 +3968,9 @@ static int testInterfaceCreate(virInterfacePtr iface,
return ret;
}
static int testInterfaceDestroy(virInterfacePtr iface,
static int
testInterfaceDestroy(virInterfacePtr iface,
unsigned int flags)
{
testDriverPtr privconn = iface->conn->privateData;