Some of the macros use tab, while the left use spaces, this patch
change it to always use the tab. And a few aligning fixes.
---
 src/datatypes.h |   48 ++++++++++++++++++++++++------------------------
 1 files changed, 24 insertions(+), 24 deletions(-)

diff --git a/src/datatypes.h b/src/datatypes.h
index fc284d2..c1ba00d 100644
--- a/src/datatypes.h
+++ b/src/datatypes.h
@@ -63,8 +63,8 @@
  * magic value used to protect the API when pointers to interface structures
  * are passed down by the users.
  */
-# define VIR_INTERFACE_MAGIC           0xDEAD5309
-# define VIR_IS_INTERFACE(obj)         ((obj) && 
(obj)->magic==VIR_INTERFACE_MAGIC)
+# define VIR_INTERFACE_MAGIC                   0xDEAD5309
+# define VIR_IS_INTERFACE(obj)                 ((obj) && 
(obj)->magic==VIR_INTERFACE_MAGIC)
 # define VIR_IS_CONNECTED_INTERFACE(obj)       (VIR_IS_INTERFACE(obj) && 
VIR_IS_CONNECT((obj)->conn))
 
 /**
@@ -73,7 +73,7 @@
  * magic value used to protect the API when pointers to storage pool structures
  * are passed down by the users.
  */
-# define VIR_STORAGE_POOL_MAGIC                0xDEAD5678
+# define VIR_STORAGE_POOL_MAGIC                        0xDEAD5678
 # define VIR_IS_STORAGE_POOL(obj)              ((obj) && 
(obj)->magic==VIR_STORAGE_POOL_MAGIC)
 # define VIR_IS_CONNECTED_STORAGE_POOL(obj)    (VIR_IS_STORAGE_POOL(obj) && 
VIR_IS_CONNECT((obj)->conn))
 
@@ -83,7 +83,7 @@
  * magic value used to protect the API when pointers to storage vol structures
  * are passed down by the users.
  */
-# define VIR_STORAGE_VOL_MAGIC         0xDEAD8765
+# define VIR_STORAGE_VOL_MAGIC                 0xDEAD8765
 # define VIR_IS_STORAGE_VOL(obj)               ((obj) && 
(obj)->magic==VIR_STORAGE_VOL_MAGIC)
 # define VIR_IS_CONNECTED_STORAGE_VOL(obj)     (VIR_IS_STORAGE_VOL(obj) && 
VIR_IS_CONNECT((obj)->conn))
 
@@ -93,9 +93,9 @@
  * magic value used to protect the API when pointers to storage vol structures
  * are passed down by the users.
  */
-# define VIR_NODE_DEVICE_MAGIC                   0xDEAD5679
-# define VIR_IS_NODE_DEVICE(obj)                 ((obj) && 
(obj)->magic==VIR_NODE_DEVICE_MAGIC)
-# define VIR_IS_CONNECTED_NODE_DEVICE(obj)       (VIR_IS_NODE_DEVICE(obj) && 
VIR_IS_CONNECT((obj)->conn))
+# define VIR_NODE_DEVICE_MAGIC                 0xDEAD5679
+# define VIR_IS_NODE_DEVICE(obj)               ((obj) && 
(obj)->magic==VIR_NODE_DEVICE_MAGIC)
+# define VIR_IS_CONNECTED_NODE_DEVICE(obj)     (VIR_IS_NODE_DEVICE(obj) && 
VIR_IS_CONNECT((obj)->conn))
 
 /**
  * VIR_SECRET_MAGIC:
@@ -114,9 +114,9 @@
  * magic value used to protect the API when pointers to stream structures
  * are passed down by the users.
  */
-# define VIR_STREAM_MAGIC                   0x1DEAD666
-# define VIR_IS_STREAM(obj)                 ((obj) && 
(obj)->magic==VIR_STREAM_MAGIC)
-# define VIR_IS_CONNECTED_STREAM(obj)       (VIR_IS_STREAM(obj) && 
VIR_IS_CONNECT((obj)->conn))
+# define VIR_STREAM_MAGIC              0x1DEAD666
+# define VIR_IS_STREAM(obj)            ((obj) && 
(obj)->magic==VIR_STREAM_MAGIC)
+# define VIR_IS_CONNECTED_STREAM(obj)  (VIR_IS_STREAM(obj) && 
VIR_IS_CONNECT((obj)->conn))
 
 
 /**
@@ -135,9 +135,9 @@
  * magic value used to protect the API when pointers to snapshot structures
  * are passed down by the users.
  */
-# define VIR_SNAPSHOT_MAGIC                0x6666DEAD
-# define VIR_IS_SNAPSHOT(obj)              ((obj) && 
(obj)->magic==VIR_SNAPSHOT_MAGIC)
-# define VIR_IS_DOMAIN_SNAPSHOT(obj)    (VIR_IS_SNAPSHOT(obj) && 
VIR_IS_DOMAIN((obj)->domain))
+# define VIR_SNAPSHOT_MAGIC            0x6666DEAD
+# define VIR_IS_SNAPSHOT(obj)          ((obj) && 
(obj)->magic==VIR_SNAPSHOT_MAGIC)
+# define VIR_IS_DOMAIN_SNAPSHOT(obj)   (VIR_IS_SNAPSHOT(obj) && 
VIR_IS_DOMAIN((obj)->domain))
 
 /**
  * _virConnect:
@@ -324,12 +324,12 @@ struct _virDomainSnapshot {
 virConnectPtr virGetConnect(void);
 int virUnrefConnect(virConnectPtr conn);
 virDomainPtr virGetDomain(virConnectPtr conn,
-                            const char *name,
-                            const unsigned char *uuid);
+                          const char *name,
+                          const unsigned char *uuid);
 int virUnrefDomain(virDomainPtr domain);
 virNetworkPtr virGetNetwork(virConnectPtr conn,
-                              const char *name,
-                              const unsigned char *uuid);
+                            const char *name,
+                            const unsigned char *uuid);
 int virUnrefNetwork(virNetworkPtr network);
 
 virInterfacePtr virGetInterface(virConnectPtr conn,
@@ -338,13 +338,13 @@ virInterfacePtr virGetInterface(virConnectPtr conn,
 int virUnrefInterface(virInterfacePtr iface);
 
 virStoragePoolPtr virGetStoragePool(virConnectPtr conn,
-                                      const char *name,
-                                      const unsigned char *uuid);
+                                    const char *name,
+                                    const unsigned char *uuid);
 int virUnrefStoragePool(virStoragePoolPtr pool);
 virStorageVolPtr virGetStorageVol(virConnectPtr conn,
-                                     const char *pool,
-                                    const char *name,
-                                    const char *key);
+                                  const char *pool,
+                                  const char *name,
+                                  const char *key);
 int virUnrefStorageVol(virStorageVolPtr vol);
 
 virNodeDevicePtr virGetNodeDevice(virConnectPtr conn,
@@ -374,8 +374,8 @@ struct _virNWFilter {
 };
 
 virNWFilterPtr virGetNWFilter(virConnectPtr conn,
-                                  const char *name,
-                                  const unsigned char *uuid);
+                              const char *name,
+                              const unsigned char *uuid);
 int virUnrefNWFilter(virNWFilterPtr nwfilter);
 
 virDomainSnapshotPtr virGetDomainSnapshot(virDomainPtr domain,
-- 
1.7.7.3

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to