conf: Alter coding style of interface function prototypes

In an effort to be consistent with the source module, alter the function
prototypes to follow the similar style of source with the "type" on one
line followed by the function name and arguments on subsequent lines with
with argument getting it's own line.
This commit is contained in:
John Ferlan 2017-03-02 12:01:29 -05:00
parent e858232e4d
commit 5adbbdc173
2 changed files with 44 additions and 23 deletions

View File

@ -161,14 +161,21 @@ struct _virInterfaceDef {
virInterfaceProtocolDefPtr *protos; /* ptr to array of protos[nprotos] */
};
void virInterfaceDefFree(virInterfaceDefPtr def);
void
virInterfaceDefFree(virInterfaceDefPtr def);
virInterfaceDefPtr virInterfaceDefParseString(const char *xmlStr);
virInterfaceDefPtr virInterfaceDefParseFile(const char *filename);
virInterfaceDefPtr virInterfaceDefParseNode(xmlDocPtr xml,
virInterfaceDefPtr
virInterfaceDefParseString(const char *xmlStr);
virInterfaceDefPtr
virInterfaceDefParseFile(const char *filename);
virInterfaceDefPtr
virInterfaceDefParseNode(xmlDocPtr xml,
xmlNodePtr root);
char *virInterfaceDefFormat(const virInterfaceDef *def);
char *
virInterfaceDefFormat(const virInterfaceDef *def);
# define VIR_CONNECT_LIST_INTERFACES_FILTERS_ACTIVE \
(VIR_CONNECT_LIST_INTERFACES_ACTIVE | \

View File

@ -44,27 +44,41 @@ virInterfaceObjIsActive(const virInterfaceObj *iface)
return iface->active;
}
int virInterfaceObjFindByMACString(virInterfaceObjListPtr interfaces,
int
virInterfaceObjFindByMACString(virInterfaceObjListPtr interfaces,
const char *mac,
virInterfaceObjPtr *matches, int maxmatches);
virInterfaceObjPtr virInterfaceObjFindByName(virInterfaceObjListPtr interfaces,
virInterfaceObjPtr
virInterfaceObjFindByName(virInterfaceObjListPtr interfaces,
const char *name);
void
virInterfaceObjFree(virInterfaceObjPtr iface);
void virInterfaceObjFree(virInterfaceObjPtr iface);
void virInterfaceObjListFree(virInterfaceObjListPtr vms);
int virInterfaceObjListClone(virInterfaceObjListPtr src,
void
virInterfaceObjListFree(virInterfaceObjListPtr vms);
int
virInterfaceObjListClone(virInterfaceObjListPtr src,
virInterfaceObjListPtr dest);
virInterfaceObjPtr virInterfaceObjAssignDef(virInterfaceObjListPtr interfaces,
virInterfaceObjPtr
virInterfaceObjAssignDef(virInterfaceObjListPtr interfaces,
virInterfaceDefPtr def);
void virInterfaceObjRemove(virInterfaceObjListPtr interfaces,
void
virInterfaceObjRemove(virInterfaceObjListPtr interfaces,
virInterfaceObjPtr iface);
void virInterfaceObjLock(virInterfaceObjPtr obj);
void virInterfaceObjUnlock(virInterfaceObjPtr obj);
void
virInterfaceObjLock(virInterfaceObjPtr obj);
typedef bool (*virInterfaceObjListFilter)(virConnectPtr conn,
void
virInterfaceObjUnlock(virInterfaceObjPtr obj);
typedef bool
(*virInterfaceObjListFilter)(virConnectPtr conn,
virInterfaceDefPtr def);
#endif /* __VIRINTERFACEOBJ_H__ */