]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
conf: Alter coding style of interface function prototypes
authorJohn Ferlan <jferlan@redhat.com>
Thu, 2 Mar 2017 17:01:29 +0000 (12:01 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 6 Mar 2017 12:07:01 +0000 (07:07 -0500)
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.

src/conf/interface_conf.h
src/conf/virinterfaceobj.h

index 7325d65f822e6ce97b72458a1fc3737c89eb3dde..76f37b67c5d1d5b3feda48a1861989018c5859eb 100644 (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,
-                                            xmlNodePtr root);
+virInterfaceDefPtr
+virInterfaceDefParseString(const char *xmlStr);
 
-char *virInterfaceDefFormat(const virInterfaceDef *def);
+virInterfaceDefPtr
+virInterfaceDefParseFile(const char *filename);
+
+virInterfaceDefPtr
+virInterfaceDefParseNode(xmlDocPtr xml,
+                         xmlNodePtr root);
+
+char *
+virInterfaceDefFormat(const virInterfaceDef *def);
 
 # define VIR_CONNECT_LIST_INTERFACES_FILTERS_ACTIVE   \
                 (VIR_CONNECT_LIST_INTERFACES_ACTIVE | \
index dfda7483c34772fd74d869798850bf1335c94897..6c5e2e784fb66bee758d1d030874ba4808f76c07 100644 (file)
@@ -44,27 +44,41 @@ virInterfaceObjIsActive(const virInterfaceObj *iface)
     return iface->active;
 }
 
-int virInterfaceObjFindByMACString(virInterfaceObjListPtr interfaces,
-                                   const char *mac,
-                                   virInterfaceObjPtr *matches, int maxmatches);
-virInterfaceObjPtr virInterfaceObjFindByName(virInterfaceObjListPtr interfaces,
-                                             const char *name);
+int
+virInterfaceObjFindByMACString(virInterfaceObjListPtr interfaces,
+                               const char *mac,
+                               virInterfaceObjPtr *matches, int maxmatches);
 
+virInterfaceObjPtr
+virInterfaceObjFindByName(virInterfaceObjListPtr interfaces,
+                          const char *name);
 
-void virInterfaceObjFree(virInterfaceObjPtr iface);
-void virInterfaceObjListFree(virInterfaceObjListPtr vms);
-int virInterfaceObjListClone(virInterfaceObjListPtr src,
-                             virInterfaceObjListPtr dest);
+void
+virInterfaceObjFree(virInterfaceObjPtr iface);
 
+void
+virInterfaceObjListFree(virInterfaceObjListPtr vms);
 
-virInterfaceObjPtr virInterfaceObjAssignDef(virInterfaceObjListPtr interfaces,
-                                            virInterfaceDefPtr def);
-void virInterfaceObjRemove(virInterfaceObjListPtr interfaces,
-                           virInterfaceObjPtr iface);
+int
+virInterfaceObjListClone(virInterfaceObjListPtr src,
+                         virInterfaceObjListPtr dest);
 
-void virInterfaceObjLock(virInterfaceObjPtr obj);
-void virInterfaceObjUnlock(virInterfaceObjPtr obj);
+virInterfaceObjPtr
+virInterfaceObjAssignDef(virInterfaceObjListPtr interfaces,
+                         virInterfaceDefPtr def);
+
+void
+virInterfaceObjRemove(virInterfaceObjListPtr interfaces,
+                      virInterfaceObjPtr iface);
+
+void
+virInterfaceObjLock(virInterfaceObjPtr obj);
+
+void
+virInterfaceObjUnlock(virInterfaceObjPtr obj);
+
+typedef bool
+(*virInterfaceObjListFilter)(virConnectPtr conn,
+                             virInterfaceDefPtr def);
 
-typedef bool (*virInterfaceObjListFilter)(virConnectPtr conn,
-                                          virInterfaceDefPtr def);
 #endif /* __VIRINTERFACEOBJ_H__ */