]> xenbits.xensource.com Git - libvirt.git/commitdiff
maint: Replace tabs with spaces in all source files in repo
authorErik Skultety <eskultet@redhat.com>
Tue, 17 Oct 2017 15:05:47 +0000 (17:05 +0200)
committerErik Skultety <eskultet@redhat.com>
Wed, 18 Oct 2017 11:25:10 +0000 (13:25 +0200)
So we have a syntax-check rule to catch all tab indents but it naturally
can't catch tab spacing, i.e. as a delimiter. This patch is a result of
running 'vim -en +retab +wq'
(using tabstop=8 softtabstop=4 shiftwidth=4 expandtab) on each file from
a list generated by the following:
find . -regextype gnu-awk \
         -regex ".*\.(rng|syms|html|s?[ch]|py|pl|php(\.code)?)(\.in)?" \
         | xargs git grep -lP "\t"

Signed-off-by: Erik Skultety <eskultet@redhat.com>
22 files changed:
docs/search.php.code.in
include/libvirt/virterror.h
src/bhyve/bhyve_monitor.c
src/bhyve/bhyve_process.c
src/conf/node_device_conf.h
src/conf/nwfilter_conf.h
src/conf/virnodedeviceobj.c
src/conf/virnodedeviceobj.h
src/qemu/qemu_domain.h
src/qemu/qemu_monitor.h
src/util/viraudit.h
src/util/virconf.c
src/util/virconf.h
src/util/virsysinfo.c
src/util/virxml.c
src/xen/xen_driver.h
src/xen/xen_hypervisor.c
src/xen/xen_hypervisor.h
src/xen/xend_internal.c
src/xen/xend_internal.h
src/xen/xs_internal.c
src/xen/xs_internal.h

index 3c66f94ca5b7249970d19eb95b6bbcc16011429b..01a6a64d28caaf655ca89971475a6968dc7ab2ef 100644 (file)
 <?php
     function logQueryWord($word) {
         $result = mysql_query ("SELECT ID,Count FROM Queries WHERE Value='$word'");
-       if ($result) {
-           $i = mysql_num_rows($result);
-           if ($i == 0) {
-               mysql_free_result($result);
-               mysql_query ("INSERT INTO Queries (Value,Count) VALUES ('$word',1)");
-           } else {
-               $id = mysql_result($result, 0, 0);
-               $count = mysql_result($result, 0, 1);
-               $count ++;
-               mysql_query ("UPDATE Queries SET Count=$count WHERE ID=$id");
-           }
-       } else {
-           mysql_query ("INSERT INTO Queries (Value,Count) VALUES ('$word',1)");
-       }
+        if ($result) {
+            $i = mysql_num_rows($result);
+            if ($i == 0) {
+                mysql_free_result($result);
+                mysql_query ("INSERT INTO Queries (Value,Count) VALUES ('$word',1)");
+            } else {
+                $id = mysql_result($result, 0, 0);
+                $count = mysql_result($result, 0, 1);
+                $count ++;
+                mysql_query ("UPDATE Queries SET Count=$count WHERE ID=$id");
+            }
+        } else {
+            mysql_query ("INSERT INTO Queries (Value,Count) VALUES ('$word',1)");
+        }
     }
     function queryWord($word) {
         $result = NULL;
-       $j = 0;
+        $j = 0;
         if ($word) {
-           $result = mysql_query ("SELECT words.relevance, symbols.name, symbols.type, symbols.module, symbols.descr FROM words, symbols WHERE LCASE(words.name) LIKE LCASE('$word') and words.symbol = symbols.name ORDER BY words.relevance DESC LIMIT 75");
-           if ($result) {
-               $j = mysql_num_rows($result);
-               if ($j == 0)
-                   mysql_free_result($result);
-           }
-           logQueryWord($word);
-       }
-       return array($result, $j);
+            $result = mysql_query ("SELECT words.relevance, symbols.name, symbols.type, symbols.module, symbols.descr FROM words, symbols WHERE LCASE(words.name) LIKE LCASE('$word') and words.symbol = symbols.name ORDER BY words.relevance DESC LIMIT 75");
+            if ($result) {
+                $j = mysql_num_rows($result);
+                if ($j == 0)
+                    mysql_free_result($result);
+            }
+            logQueryWord($word);
+        }
+        return array($result, $j);
     }
     function queryHTMLWord($word) {
         $result = NULL;
-       $j = 0;
+        $j = 0;
         if ($word) {
-           $result = mysql_query ("SELECT relevance, name, id, resource, section FROM wordsHTML WHERE LCASE(name) LIKE LCASE('$word') ORDER BY relevance DESC LIMIT 75");
-           if ($result) {
-               $j = mysql_num_rows($result);
-               if ($j == 0)
-                   mysql_free_result($result);
-           }
-           logQueryWord($word);
-       }
-       return array($result, $j);
+            $result = mysql_query ("SELECT relevance, name, id, resource, section FROM wordsHTML WHERE LCASE(name) LIKE LCASE('$word') ORDER BY relevance DESC LIMIT 75");
+            if ($result) {
+                $j = mysql_num_rows($result);
+                if ($j == 0)
+                    mysql_free_result($result);
+            }
+            logQueryWord($word);
+        }
+        return array($result, $j);
     }
     function queryArchiveWord($word) {
         $result = NULL;
-       $j = 0;
+        $j = 0;
         if ($word) {
-           $result = mysql_query ("SELECT wordsArchive.relevance, wordsArchive.name, 'libvir-list', archives.resource, archives.title FROM wordsArchive, archives WHERE LCASE(wordsArchive.name) LIKE LCASE('$word') and wordsArchive.ID = archives.ID ORDER BY relevance DESC LIMIT 75");
-           if ($result) {
-               $j = mysql_num_rows($result);
-               if ($j == 0)
-                   mysql_free_result($result);
-           }
-           logQueryWord($word);
-       }
-       return array($result, $j);
+            $result = mysql_query ("SELECT wordsArchive.relevance, wordsArchive.name, 'libvir-list', archives.resource, archives.title FROM wordsArchive, archives WHERE LCASE(wordsArchive.name) LIKE LCASE('$word') and wordsArchive.ID = archives.ID ORDER BY relevance DESC LIMIT 75");
+            if ($result) {
+                $j = mysql_num_rows($result);
+                if ($j == 0)
+                    mysql_free_result($result);
+            }
+            logQueryWord($word);
+        }
+        return array($result, $j);
     }
     function resSort ($a, $b) {
-       list($ra,$ta,$ma,$na,$da) = $a;
-       list($rb,$tb,$mb,$nb,$db) = $b;
-       if ($ra == $rb) return 0;
-       return ($ra > $rb) ? -1 : 1;
+        list($ra,$ta,$ma,$na,$da) = $a;
+        list($rb,$tb,$mb,$nb,$db) = $b;
+        if ($ra == $rb) return 0;
+        return ($ra > $rb) ? -1 : 1;
     }
     if (($query) && (strlen($query) <= 50)) {
-       $link = mysql_connect ("localhost", "nobody");
-       if (!$link) {
-           echo "<p> Could not connect to the database: ", mysql_error();
-       } else {
-           mysql_select_db("libvir", $link);
-           $list = explode (" ", $query);
-           $results = array();
-           $number = 0;
-           for ($number = 0;$number < count($list);$number++) {
+        $link = mysql_connect ("localhost", "nobody");
+        if (!$link) {
+            echo "<p> Could not connect to the database: ", mysql_error();
+        } else {
+            mysql_select_db("libvir", $link);
+            $list = explode (" ", $query);
+            $results = array();
+            $number = 0;
+            for ($number = 0;$number < count($list);$number++) {
 
-               $word = $list[$number];
-               if (($scope == 'any') || ($scope == 'API')) {
-                   list($result, $j) = queryWord($word);
-                   if ($j > 0) {
-                       for ($i = 0; $i < $j; $i++) {
-                           $relevance = mysql_result($result, $i, 0);
-                           $name = mysql_result($result, $i, 1);
-                           $type = mysql_result($result, $i, 2);
-                           $module = mysql_result($result, $i, 3);
-                           $desc = mysql_result($result, $i, 4);
-                           if (array_key_exists($name, $results)) {
-                               list($r,$t,$m,$d,$w,$u) = $results[$name];
-                               $results[$name] = array(($r + $relevance) * 2,
-                                                       $t,$m,$d,$w,$u);
-                           } else {
-                               $id = $name;
-                               $m = strtolower($module);
-                               $url = "html/libvirt-$module.html#$id";
-                               $results[$name] = array($relevance,$type,
-                                               $module, $desc, $name, $url);
-                           }
-                       }
-                       mysql_free_result($result);
-                   }
-               }
-               if (($scope == 'any') || ($scope == 'DOCS')) {
-                   list($result, $k) = queryHTMLWord($word);
-                   if ($k > 0) {
-                       for ($i = 0; $i < $k; $i++) {
-                           $relevance = mysql_result($result, $i, 0);
-                           $name = mysql_result($result, $i, 1);
-                           $id = mysql_result($result, $i, 2);
-                           $module = mysql_result($result, $i, 3);
-                           $desc = mysql_result($result, $i, 4);
-                           $url = $module;
-                           if ($id != "") {
-                               $url = $url + "#$id";
-                           }
-                           $results["$name _html_ $number _ $i"] =
-                                         array($relevance, "XML docs",
-                                               $module, $desc, $name, $url);
-                       }
-                       mysql_free_result($result);
-                   }
-               }
-               if (($scope == 'any') || ($scope == 'LISTS')) {
-                   list($result, $j) = queryArchiveWord($word);
-                   if ($j > 0) {
-                       for ($i = 0; $i < $j; $i++) {
-                           $relevance = mysql_result($result, $i, 0);
-                           $name = mysql_result($result, $i, 1);
-                           $type = mysql_result($result, $i, 2);
-                           $url = mysql_result($result, $i, 3);
-                           $desc = mysql_result($result, $i, 4);
-                           if (array_key_exists($url, $results)) {
-                               list($r,$t,$m,$d,$w,$u) = $results[$url];
-                               $results[$name] = array(($r + $relevance) * 2,
-                                                       $t,$m,$d,$w,$u);
-                           } else {
-                               $id = $name;
-                               $m = strtolower($module);
-                               $u = str_replace(
-                       "http://www.redhat.com/archives/libvir-list/", "", $url);
-                               $results[$url] = array($relevance,$type,
-                                               $u, $desc, $name, $url);
-                           }
-                       }
-                       mysql_free_result($result);
-                   }
-               }
-           }
-           if ((count($results) == 0) && (count($list) == 1)) {
-               $word = $list[0];
-               if (($scope == 'any') || ($scope == 'XMLAPI')) {
-                   list($result, $j) = queryWord("vir$word");
-                   if ($j > 0) {
-                       for ($i = 0; $i < $j; $i++) {
-                           $relevance = mysql_result($result, $i, 0);
-                           $name = mysql_result($result, $i, 1);
-                           $type = mysql_result($result, $i, 2);
-                           $module = mysql_result($result, $i, 3);
-                           $desc = mysql_result($result, $i, 4);
-                           if (array_key_exists($name, $results)) {
-                               list($r,$t,$m,$d,$w,$u) = $results[$name];
-                               $results[$name] = array(($r + $relevance) * 2,
-                                                       $t,$m,$d,$w,$u);
-                           } else {
-                               $id = $name;
-                               $m = strtolower($module);
-                               $url = "html/libvirt-$module.html#$id";
-                               $results[$name] = array($relevance,$type,
-                                               $module, $desc, $name, $url);
-                           }
-                       }
-                       mysql_free_result($result);
-                   }
-               }
-           }
-           mysql_close($link);
-           $nb = count($results);
-           echo "<h3 align='center'>Found $nb results for query $querystr</h3>\n";
-           usort($results, "resSort");
+                $word = $list[$number];
+                if (($scope == 'any') || ($scope == 'API')) {
+                    list($result, $j) = queryWord($word);
+                    if ($j > 0) {
+                        for ($i = 0; $i < $j; $i++) {
+                            $relevance = mysql_result($result, $i, 0);
+                            $name = mysql_result($result, $i, 1);
+                            $type = mysql_result($result, $i, 2);
+                            $module = mysql_result($result, $i, 3);
+                            $desc = mysql_result($result, $i, 4);
+                            if (array_key_exists($name, $results)) {
+                                list($r,$t,$m,$d,$w,$u) = $results[$name];
+                                $results[$name] = array(($r + $relevance) * 2,
+                                                        $t,$m,$d,$w,$u);
+                            } else {
+                                $id = $name;
+                                $m = strtolower($module);
+                                $url = "html/libvirt-$module.html#$id";
+                                $results[$name] = array($relevance,$type,
+                                                $module, $desc, $name, $url);
+                            }
+                        }
+                        mysql_free_result($result);
+                    }
+                }
+                if (($scope == 'any') || ($scope == 'DOCS')) {
+                    list($result, $k) = queryHTMLWord($word);
+                    if ($k > 0) {
+                        for ($i = 0; $i < $k; $i++) {
+                            $relevance = mysql_result($result, $i, 0);
+                            $name = mysql_result($result, $i, 1);
+                            $id = mysql_result($result, $i, 2);
+                            $module = mysql_result($result, $i, 3);
+                            $desc = mysql_result($result, $i, 4);
+                            $url = $module;
+                            if ($id != "") {
+                                $url = $url + "#$id";
+                            }
+                            $results["$name _html_ $number _ $i"] =
+                                          array($relevance, "XML docs",
+                                                $module, $desc, $name, $url);
+                        }
+                        mysql_free_result($result);
+                    }
+                }
+                if (($scope == 'any') || ($scope == 'LISTS')) {
+                    list($result, $j) = queryArchiveWord($word);
+                    if ($j > 0) {
+                        for ($i = 0; $i < $j; $i++) {
+                            $relevance = mysql_result($result, $i, 0);
+                            $name = mysql_result($result, $i, 1);
+                            $type = mysql_result($result, $i, 2);
+                            $url = mysql_result($result, $i, 3);
+                            $desc = mysql_result($result, $i, 4);
+                            if (array_key_exists($url, $results)) {
+                                list($r,$t,$m,$d,$w,$u) = $results[$url];
+                                $results[$name] = array(($r + $relevance) * 2,
+                                                        $t,$m,$d,$w,$u);
+                            } else {
+                                $id = $name;
+                                $m = strtolower($module);
+                                $u = str_replace(
+                        "http://www.redhat.com/archives/libvir-list/", "", $url);
+                                $results[$url] = array($relevance,$type,
+                                                $u, $desc, $name, $url);
+                            }
+                        }
+                        mysql_free_result($result);
+                    }
+                }
+            }
+            if ((count($results) == 0) && (count($list) == 1)) {
+                $word = $list[0];
+                if (($scope == 'any') || ($scope == 'XMLAPI')) {
+                    list($result, $j) = queryWord("vir$word");
+                    if ($j > 0) {
+                        for ($i = 0; $i < $j; $i++) {
+                            $relevance = mysql_result($result, $i, 0);
+                            $name = mysql_result($result, $i, 1);
+                            $type = mysql_result($result, $i, 2);
+                            $module = mysql_result($result, $i, 3);
+                            $desc = mysql_result($result, $i, 4);
+                            if (array_key_exists($name, $results)) {
+                                list($r,$t,$m,$d,$w,$u) = $results[$name];
+                                $results[$name] = array(($r + $relevance) * 2,
+                                                        $t,$m,$d,$w,$u);
+                            } else {
+                                $id = $name;
+                                $m = strtolower($module);
+                                $url = "html/libvirt-$module.html#$id";
+                                $results[$name] = array($relevance,$type,
+                                                $module, $desc, $name, $url);
+                            }
+                        }
+                        mysql_free_result($result);
+                    }
+                }
+            }
+            mysql_close($link);
+            $nb = count($results);
+            echo "<h3 align='center'>Found $nb results for query $querystr</h3>\n";
+            usort($results, "resSort");
 
             if ($nb > 0) {
-               printf("<table><tbody>\n");
-               printf("<tr><td>Quality</td><td>Symbol</td><td>Type</td><td>module</td><td>Description</td></tr>\n");
-               $i = 0;
-               while (list ($name, $val) = each ($results)) {
-                   list($r,$t,$m,$d,$s,$u) = $val;
-                   $m = str_replace("<", "&lt;", $m);
-                   $s = str_replace("<", "&lt;", $s);
-                   $d = str_replace("<", "&lt;", $d);
-                   echo "<tr><td>$r</td><td><a href='$u'>$s</a></td><td>$t</td><td>$m</td><td>$d</td></tr>";
-                   $i = $i + 1;
-                   if ($i > 75)
-                       break;
-               }
-               printf("</tbody></table>\n");
-           }
-       }
+                printf("<table><tbody>\n");
+                printf("<tr><td>Quality</td><td>Symbol</td><td>Type</td><td>module</td><td>Description</td></tr>\n");
+                $i = 0;
+                while (list ($name, $val) = each ($results)) {
+                    list($r,$t,$m,$d,$s,$u) = $val;
+                    $m = str_replace("<", "&lt;", $m);
+                    $s = str_replace("<", "&lt;", $s);
+                    $d = str_replace("<", "&lt;", $d);
+                    echo "<tr><td>$r</td><td><a href='$u'>$s</a></td><td>$t</td><td>$m</td><td>$d</td></tr>";
+                    $i = $i + 1;
+                    if ($i > 75)
+                        break;
+                }
+                printf("</tbody></table>\n");
+            }
+        }
     }
 ?>
index 3dd2d0822d6d166b40721c0011660bd552cd1779..d2b5f1fd4ea73b197983af02cc7abc1554e0b6a6 100644 (file)
@@ -39,8 +39,8 @@ extern "C" {
  */
 typedef enum {
     VIR_ERR_NONE = 0,
-    VIR_ERR_WARNING = 1,       /* A simple warning */
-    VIR_ERR_ERROR = 2          /* An error */
+    VIR_ERR_WARNING = 1,        /* A simple warning */
+    VIR_ERR_ERROR = 2           /* An error */
 } virErrorLevel;
 
 /**
@@ -51,59 +51,59 @@ typedef enum {
  */
 typedef enum {
     VIR_FROM_NONE = 0,
-    VIR_FROM_XEN = 1,          /* Error at Xen hypervisor layer */
-    VIR_FROM_XEND = 2,         /* Error at connection with xend daemon */
-    VIR_FROM_XENSTORE = 3,     /* Error at connection with xen store */
-    VIR_FROM_SEXPR = 4,                /* Error in the S-Expression code */
+    VIR_FROM_XEN = 1,           /* Error at Xen hypervisor layer */
+    VIR_FROM_XEND = 2,          /* Error at connection with xend daemon */
+    VIR_FROM_XENSTORE = 3,      /* Error at connection with xen store */
+    VIR_FROM_SEXPR = 4,         /* Error in the S-Expression code */
 
-    VIR_FROM_XML = 5,          /* Error in the XML code */
-    VIR_FROM_DOM = 6,          /* Error when operating on a domain */
-    VIR_FROM_RPC = 7,          /* Error in the XML-RPC code */
-    VIR_FROM_PROXY = 8,                /* Error in the proxy code; unused since
+    VIR_FROM_XML = 5,           /* Error in the XML code */
+    VIR_FROM_DOM = 6,           /* Error when operating on a domain */
+    VIR_FROM_RPC = 7,           /* Error in the XML-RPC code */
+    VIR_FROM_PROXY = 8,         /* Error in the proxy code; unused since
                                    0.8.6 */
-    VIR_FROM_CONF = 9,         /* Error in the configuration file handling */
+    VIR_FROM_CONF = 9,          /* Error in the configuration file handling */
 
-    VIR_FROM_QEMU = 10,                /* Error at the QEMU daemon */
-    VIR_FROM_NET = 11,         /* Error when operating on a network */
-    VIR_FROM_TEST = 12,                /* Error from test driver */
-    VIR_FROM_REMOTE = 13,      /* Error from remote driver */
-    VIR_FROM_OPENVZ = 14,      /* Error from OpenVZ driver */
+    VIR_FROM_QEMU = 10,         /* Error at the QEMU daemon */
+    VIR_FROM_NET = 11,          /* Error when operating on a network */
+    VIR_FROM_TEST = 12,         /* Error from test driver */
+    VIR_FROM_REMOTE = 13,       /* Error from remote driver */
+    VIR_FROM_OPENVZ = 14,       /* Error from OpenVZ driver */
 
-    VIR_FROM_XENXM = 15,       /* Error at Xen XM layer */
-    VIR_FROM_STATS_LINUX = 16, /* Error in the Linux Stats code */
-    VIR_FROM_LXC = 17,         /* Error from Linux Container driver */
-    VIR_FROM_STORAGE = 18,     /* Error from storage driver */
-    VIR_FROM_NETWORK = 19,     /* Error from network config */
+    VIR_FROM_XENXM = 15,        /* Error at Xen XM layer */
+    VIR_FROM_STATS_LINUX = 16,  /* Error in the Linux Stats code */
+    VIR_FROM_LXC = 17,          /* Error from Linux Container driver */
+    VIR_FROM_STORAGE = 18,      /* Error from storage driver */
+    VIR_FROM_NETWORK = 19,      /* Error from network config */
 
-    VIR_FROM_DOMAIN = 20,      /* Error from domain config */
-    VIR_FROM_UML = 21,         /* Error at the UML driver */
-    VIR_FROM_NODEDEV = 22,     /* Error from node device monitor */
-    VIR_FROM_XEN_INOTIFY = 23, /* Error from xen inotify layer */
-    VIR_FROM_SECURITY = 24,    /* Error from security framework */
+    VIR_FROM_DOMAIN = 20,       /* Error from domain config */
+    VIR_FROM_UML = 21,          /* Error at the UML driver */
+    VIR_FROM_NODEDEV = 22,      /* Error from node device monitor */
+    VIR_FROM_XEN_INOTIFY = 23,  /* Error from xen inotify layer */
+    VIR_FROM_SECURITY = 24,     /* Error from security framework */
 
-    VIR_FROM_VBOX = 25,                /* Error from VirtualBox driver */
-    VIR_FROM_INTERFACE = 26,   /* Error when operating on an interface */
-    VIR_FROM_ONE = 27,         /* The OpenNebula driver no longer exists.
+    VIR_FROM_VBOX = 25,         /* Error from VirtualBox driver */
+    VIR_FROM_INTERFACE = 26,    /* Error when operating on an interface */
+    VIR_FROM_ONE = 27,          /* The OpenNebula driver no longer exists.
                                    Retained for ABI/API compat only */
-    VIR_FROM_ESX = 28,         /* Error from ESX driver */
-    VIR_FROM_PHYP = 29,                /* Error from IBM power hypervisor */
+    VIR_FROM_ESX = 28,          /* Error from ESX driver */
+    VIR_FROM_PHYP = 29,         /* Error from IBM power hypervisor */
 
-    VIR_FROM_SECRET = 30,      /* Error from secret storage */
-    VIR_FROM_CPU = 31,         /* Error from CPU driver */
-    VIR_FROM_XENAPI = 32,      /* Error from XenAPI */
-    VIR_FROM_NWFILTER = 33,    /* Error from network filter driver */
-    VIR_FROM_HOOK = 34,                /* Error from Synchronous hooks */
+    VIR_FROM_SECRET = 30,       /* Error from secret storage */
+    VIR_FROM_CPU = 31,          /* Error from CPU driver */
+    VIR_FROM_XENAPI = 32,       /* Error from XenAPI */
+    VIR_FROM_NWFILTER = 33,     /* Error from network filter driver */
+    VIR_FROM_HOOK = 34,         /* Error from Synchronous hooks */
 
     VIR_FROM_DOMAIN_SNAPSHOT = 35,/* Error from domain snapshot */
-    VIR_FROM_AUDIT = 36,       /* Error from auditing subsystem */
-    VIR_FROM_SYSINFO = 37,     /* Error from sysinfo/SMBIOS */
-    VIR_FROM_STREAMS = 38,     /* Error from I/O streams */
-    VIR_FROM_VMWARE = 39,      /* Error from VMware driver */
+    VIR_FROM_AUDIT = 36,        /* Error from auditing subsystem */
+    VIR_FROM_SYSINFO = 37,      /* Error from sysinfo/SMBIOS */
+    VIR_FROM_STREAMS = 38,      /* Error from I/O streams */
+    VIR_FROM_VMWARE = 39,       /* Error from VMware driver */
 
-    VIR_FROM_EVENT = 40,       /* Error from event loop impl */
-    VIR_FROM_LIBXL = 41,       /* Error from libxenlight driver */
-    VIR_FROM_LOCKING = 42,     /* Error from lock manager */
-    VIR_FROM_HYPERV = 43,      /* Error from Hyper-V driver */
+    VIR_FROM_EVENT = 40,        /* Error from event loop impl */
+    VIR_FROM_LIBXL = 41,        /* Error from libxenlight driver */
+    VIR_FROM_LOCKING = 42,      /* Error from lock manager */
+    VIR_FROM_HYPERV = 43,       /* Error from Hyper-V driver */
     VIR_FROM_CAPABILITIES = 44, /* Error from capabilities */
 
     VIR_FROM_URI = 45,          /* Error from URI handling */
@@ -153,19 +153,19 @@ typedef enum {
 typedef struct _virError virError;
 typedef virError *virErrorPtr;
 struct _virError {
-    int                code;   /* The error code, a virErrorNumber */
-    int                domain; /* What part of the library raised this error */
+    int         code;   /* The error code, a virErrorNumber */
+    int         domain; /* What part of the library raised this error */
     char       *message;/* human-readable informative error message */
     virErrorLevel level;/* how consequent is the error */
     virConnectPtr conn VIR_DEPRECATED; /* connection if available, deprecated
                                           see note above */
     virDomainPtr dom VIR_DEPRECATED; /* domain if available, deprecated
                                         see note above */
-    char       *str1;  /* extra string information */
-    char       *str2;  /* extra string information */
-    char       *str3;  /* extra string information */
-    int                int1;   /* extra number information */
-    int                int2;   /* extra number information */
+    char       *str1;   /* extra string information */
+    char       *str2;   /* extra string information */
+    char       *str3;   /* extra string information */
+    int         int1;   /* extra number information */
+    int         int2;   /* extra number information */
     virNetworkPtr net VIR_DEPRECATED; /* network if available, deprecated
                                          see note above */
 };
@@ -204,94 +204,94 @@ struct _virError {
  */
 typedef enum {
     VIR_ERR_OK = 0,
-    VIR_ERR_INTERNAL_ERROR = 1,                /* internal error */
-    VIR_ERR_NO_MEMORY = 2,             /* memory allocation failure */
-    VIR_ERR_NO_SUPPORT = 3,            /* no support for this function */
-    VIR_ERR_UNKNOWN_HOST = 4,          /* could not resolve hostname */
-    VIR_ERR_NO_CONNECT = 5,            /* can't connect to hypervisor */
-    VIR_ERR_INVALID_CONN = 6,          /* invalid connection object */
-    VIR_ERR_INVALID_DOMAIN = 7,                /* invalid domain object */
-    VIR_ERR_INVALID_ARG = 8,           /* invalid function argument */
-    VIR_ERR_OPERATION_FAILED = 9,      /* a command to hypervisor failed */
-    VIR_ERR_GET_FAILED = 10,           /* a HTTP GET command to failed */
-    VIR_ERR_POST_FAILED = 11,          /* a HTTP POST command to failed */
-    VIR_ERR_HTTP_ERROR = 12,           /* unexpected HTTP error code */
-    VIR_ERR_SEXPR_SERIAL = 13,         /* failure to serialize an S-Expr */
-    VIR_ERR_NO_XEN = 14,               /* could not open Xen hypervisor
+    VIR_ERR_INTERNAL_ERROR = 1,         /* internal error */
+    VIR_ERR_NO_MEMORY = 2,              /* memory allocation failure */
+    VIR_ERR_NO_SUPPORT = 3,             /* no support for this function */
+    VIR_ERR_UNKNOWN_HOST = 4,           /* could not resolve hostname */
+    VIR_ERR_NO_CONNECT = 5,             /* can't connect to hypervisor */
+    VIR_ERR_INVALID_CONN = 6,           /* invalid connection object */
+    VIR_ERR_INVALID_DOMAIN = 7,         /* invalid domain object */
+    VIR_ERR_INVALID_ARG = 8,            /* invalid function argument */
+    VIR_ERR_OPERATION_FAILED = 9,       /* a command to hypervisor failed */
+    VIR_ERR_GET_FAILED = 10,            /* a HTTP GET command to failed */
+    VIR_ERR_POST_FAILED = 11,           /* a HTTP POST command to failed */
+    VIR_ERR_HTTP_ERROR = 12,            /* unexpected HTTP error code */
+    VIR_ERR_SEXPR_SERIAL = 13,          /* failure to serialize an S-Expr */
+    VIR_ERR_NO_XEN = 14,                /* could not open Xen hypervisor
                                            control */
-    VIR_ERR_XEN_CALL = 15,             /* failure doing an hypervisor call */
-    VIR_ERR_OS_TYPE = 16,              /* unknown OS type */
-    VIR_ERR_NO_KERNEL = 17,            /* missing kernel information */
-    VIR_ERR_NO_ROOT = 18,              /* missing root device information */
-    VIR_ERR_NO_SOURCE = 19,            /* missing source device information */
-    VIR_ERR_NO_TARGET = 20,            /* missing target device information */
-    VIR_ERR_NO_NAME = 21,              /* missing domain name information */
-    VIR_ERR_NO_OS = 22,                        /* missing domain OS information */
-    VIR_ERR_NO_DEVICE = 23,            /* missing domain devices information */
-    VIR_ERR_NO_XENSTORE = 24,          /* could not open Xen Store control */
-    VIR_ERR_DRIVER_FULL = 25,          /* too many drivers registered */
-    VIR_ERR_CALL_FAILED = 26,          /* not supported by the drivers
+    VIR_ERR_XEN_CALL = 15,              /* failure doing an hypervisor call */
+    VIR_ERR_OS_TYPE = 16,               /* unknown OS type */
+    VIR_ERR_NO_KERNEL = 17,             /* missing kernel information */
+    VIR_ERR_NO_ROOT = 18,               /* missing root device information */
+    VIR_ERR_NO_SOURCE = 19,             /* missing source device information */
+    VIR_ERR_NO_TARGET = 20,             /* missing target device information */
+    VIR_ERR_NO_NAME = 21,               /* missing domain name information */
+    VIR_ERR_NO_OS = 22,                 /* missing domain OS information */
+    VIR_ERR_NO_DEVICE = 23,             /* missing domain devices information */
+    VIR_ERR_NO_XENSTORE = 24,           /* could not open Xen Store control */
+    VIR_ERR_DRIVER_FULL = 25,           /* too many drivers registered */
+    VIR_ERR_CALL_FAILED = 26,           /* not supported by the drivers
                                            (DEPRECATED) */
-    VIR_ERR_XML_ERROR = 27,            /* an XML description is not well
+    VIR_ERR_XML_ERROR = 27,             /* an XML description is not well
                                            formed or broken */
-    VIR_ERR_DOM_EXIST = 28,            /* the domain already exist */
-    VIR_ERR_OPERATION_DENIED = 29,     /* operation forbidden on read-only
+    VIR_ERR_DOM_EXIST = 28,             /* the domain already exist */
+    VIR_ERR_OPERATION_DENIED = 29,      /* operation forbidden on read-only
                                            connections */
-    VIR_ERR_OPEN_FAILED = 30,          /* failed to open a conf file */
-    VIR_ERR_READ_FAILED = 31,          /* failed to read a conf file */
-    VIR_ERR_PARSE_FAILED = 32,         /* failed to parse a conf file */
-    VIR_ERR_CONF_SYNTAX = 33,          /* failed to parse the syntax of a
+    VIR_ERR_OPEN_FAILED = 30,           /* failed to open a conf file */
+    VIR_ERR_READ_FAILED = 31,           /* failed to read a conf file */
+    VIR_ERR_PARSE_FAILED = 32,          /* failed to parse a conf file */
+    VIR_ERR_CONF_SYNTAX = 33,           /* failed to parse the syntax of a
                                            conf file */
-    VIR_ERR_WRITE_FAILED = 34,         /* failed to write a conf file */
-    VIR_ERR_XML_DETAIL = 35,           /* detail of an XML error */
-    VIR_ERR_INVALID_NETWORK = 36,      /* invalid network object */
-    VIR_ERR_NETWORK_EXIST = 37,                /* the network already exist */
-    VIR_ERR_SYSTEM_ERROR = 38,         /* general system call failure */
-    VIR_ERR_RPC = 39,                  /* some sort of RPC error */
-    VIR_ERR_GNUTLS_ERROR = 40,         /* error from a GNUTLS call */
-    VIR_WAR_NO_NETWORK = 41,           /* failed to start network */
-    VIR_ERR_NO_DOMAIN = 42,            /* domain not found or unexpectedly
+    VIR_ERR_WRITE_FAILED = 34,          /* failed to write a conf file */
+    VIR_ERR_XML_DETAIL = 35,            /* detail of an XML error */
+    VIR_ERR_INVALID_NETWORK = 36,       /* invalid network object */
+    VIR_ERR_NETWORK_EXIST = 37,         /* the network already exist */
+    VIR_ERR_SYSTEM_ERROR = 38,          /* general system call failure */
+    VIR_ERR_RPC = 39,                   /* some sort of RPC error */
+    VIR_ERR_GNUTLS_ERROR = 40,          /* error from a GNUTLS call */
+    VIR_WAR_NO_NETWORK = 41,            /* failed to start network */
+    VIR_ERR_NO_DOMAIN = 42,             /* domain not found or unexpectedly
                                            disappeared */
-    VIR_ERR_NO_NETWORK = 43,           /* network not found */
-    VIR_ERR_INVALID_MAC = 44,          /* invalid MAC address */
-    VIR_ERR_AUTH_FAILED = 45,          /* authentication failed */
-    VIR_ERR_INVALID_STORAGE_POOL = 46, /* invalid storage pool object */
-    VIR_ERR_INVALID_STORAGE_VOL = 47,  /* invalid storage vol object */
-    VIR_WAR_NO_STORAGE = 48,           /* failed to start storage */
-    VIR_ERR_NO_STORAGE_POOL = 49,      /* storage pool not found */
-    VIR_ERR_NO_STORAGE_VOL = 50,       /* storage volume not found */
-    VIR_WAR_NO_NODE = 51,              /* failed to start node driver */
-    VIR_ERR_INVALID_NODE_DEVICE = 52,  /* invalid node device object */
-    VIR_ERR_NO_NODE_DEVICE = 53,       /* node device not found */
-    VIR_ERR_NO_SECURITY_MODEL = 54,    /* security model not found */
-    VIR_ERR_OPERATION_INVALID = 55,    /* operation is not applicable at this
+    VIR_ERR_NO_NETWORK = 43,            /* network not found */
+    VIR_ERR_INVALID_MAC = 44,           /* invalid MAC address */
+    VIR_ERR_AUTH_FAILED = 45,           /* authentication failed */
+    VIR_ERR_INVALID_STORAGE_POOL = 46,  /* invalid storage pool object */
+    VIR_ERR_INVALID_STORAGE_VOL = 47,   /* invalid storage vol object */
+    VIR_WAR_NO_STORAGE = 48,            /* failed to start storage */
+    VIR_ERR_NO_STORAGE_POOL = 49,       /* storage pool not found */
+    VIR_ERR_NO_STORAGE_VOL = 50,        /* storage volume not found */
+    VIR_WAR_NO_NODE = 51,               /* failed to start node driver */
+    VIR_ERR_INVALID_NODE_DEVICE = 52,   /* invalid node device object */
+    VIR_ERR_NO_NODE_DEVICE = 53,        /* node device not found */
+    VIR_ERR_NO_SECURITY_MODEL = 54,     /* security model not found */
+    VIR_ERR_OPERATION_INVALID = 55,     /* operation is not applicable at this
                                            time */
-    VIR_WAR_NO_INTERFACE = 56,         /* failed to start interface driver */
-    VIR_ERR_NO_INTERFACE = 57,         /* interface driver not running */
-    VIR_ERR_INVALID_INTERFACE = 58,    /* invalid interface object */
-    VIR_ERR_MULTIPLE_INTERFACES = 59,  /* more than one matching interface
+    VIR_WAR_NO_INTERFACE = 56,          /* failed to start interface driver */
+    VIR_ERR_NO_INTERFACE = 57,          /* interface driver not running */
+    VIR_ERR_INVALID_INTERFACE = 58,     /* invalid interface object */
+    VIR_ERR_MULTIPLE_INTERFACES = 59,   /* more than one matching interface
                                            found */
-    VIR_WAR_NO_NWFILTER = 60,          /* failed to start nwfilter driver */
-    VIR_ERR_INVALID_NWFILTER = 61,     /* invalid nwfilter object */
-    VIR_ERR_NO_NWFILTER = 62,          /* nw filter pool not found */
-    VIR_ERR_BUILD_FIREWALL = 63,       /* nw filter pool not found */
-    VIR_WAR_NO_SECRET = 64,            /* failed to start secret storage */
-    VIR_ERR_INVALID_SECRET = 65,       /* invalid secret */
-    VIR_ERR_NO_SECRET = 66,            /* secret not found */
-    VIR_ERR_CONFIG_UNSUPPORTED = 67,   /* unsupported configuration
+    VIR_WAR_NO_NWFILTER = 60,           /* failed to start nwfilter driver */
+    VIR_ERR_INVALID_NWFILTER = 61,      /* invalid nwfilter object */
+    VIR_ERR_NO_NWFILTER = 62,           /* nw filter pool not found */
+    VIR_ERR_BUILD_FIREWALL = 63,        /* nw filter pool not found */
+    VIR_WAR_NO_SECRET = 64,             /* failed to start secret storage */
+    VIR_ERR_INVALID_SECRET = 65,        /* invalid secret */
+    VIR_ERR_NO_SECRET = 66,             /* secret not found */
+    VIR_ERR_CONFIG_UNSUPPORTED = 67,    /* unsupported configuration
                                            construct */
-    VIR_ERR_OPERATION_TIMEOUT = 68,    /* timeout occurred during operation */
+    VIR_ERR_OPERATION_TIMEOUT = 68,     /* timeout occurred during operation */
     VIR_ERR_MIGRATE_PERSIST_FAILED = 69,/* a migration worked, but making the
                                            VM persist on the dest host failed */
-    VIR_ERR_HOOK_SCRIPT_FAILED = 70,   /* a synchronous hook script failed */
+    VIR_ERR_HOOK_SCRIPT_FAILED = 70,    /* a synchronous hook script failed */
     VIR_ERR_INVALID_DOMAIN_SNAPSHOT = 71,/* invalid domain snapshot */
-    VIR_ERR_NO_DOMAIN_SNAPSHOT = 72,   /* domain snapshot not found */
-    VIR_ERR_INVALID_STREAM = 73,       /* stream pointer not valid */
-    VIR_ERR_ARGUMENT_UNSUPPORTED = 74, /* valid API use but unsupported by
+    VIR_ERR_NO_DOMAIN_SNAPSHOT = 72,    /* domain snapshot not found */
+    VIR_ERR_INVALID_STREAM = 73,        /* stream pointer not valid */
+    VIR_ERR_ARGUMENT_UNSUPPORTED = 74,  /* valid API use but unsupported by
                                            the given driver */
-    VIR_ERR_STORAGE_PROBE_FAILED = 75, /* storage pool probe failed */
-    VIR_ERR_STORAGE_POOL_BUILT = 76,   /* storage pool already built */
-    VIR_ERR_SNAPSHOT_REVERT_RISKY = 77,        /* force was not requested for a
+    VIR_ERR_STORAGE_PROBE_FAILED = 75,  /* storage pool probe failed */
+    VIR_ERR_STORAGE_POOL_BUILT = 76,    /* storage pool already built */
+    VIR_ERR_SNAPSHOT_REVERT_RISKY = 77, /* force was not requested for a
                                            risky domain snapshot revert */
     VIR_ERR_OPERATION_ABORTED = 78,     /* operation on a domain was
                                            canceled/aborted by user */
@@ -314,7 +314,7 @@ typedef enum {
                                            CPU*/
     VIR_ERR_XML_INVALID_SCHEMA = 92,    /* XML document doesn't validate against schema */
     VIR_ERR_MIGRATE_FINISH_OK = 93,     /* Finish API succeeded but it is expected to return NULL */
-    VIR_ERR_AUTH_UNAVAILABLE = 94,     /* authentication unavailable */
+    VIR_ERR_AUTH_UNAVAILABLE = 94,      /* authentication unavailable */
     VIR_ERR_NO_SERVER = 95,             /* Server was not found */
     VIR_ERR_NO_CLIENT = 96,             /* Client was not found */
     VIR_ERR_AGENT_UNSYNCED = 97,        /* guest agent replies with wrong id
@@ -337,25 +337,25 @@ typedef void (*virErrorFunc) (void *userData, virErrorPtr error);
  * at the connection level (which then has priority).
  */
 
-virErrorPtr            virGetLastError         (void);
-virErrorPtr            virSaveLastError        (void);
-void                   virResetLastError       (void);
-void                   virResetError           (virErrorPtr err);
-void                   virFreeError            (virErrorPtr err);
+virErrorPtr             virGetLastError         (void);
+virErrorPtr             virSaveLastError        (void);
+void                    virResetLastError       (void);
+void                    virResetError           (virErrorPtr err);
+void                    virFreeError            (virErrorPtr err);
 
 const char *            virGetLastErrorMessage  (void);
 
-virErrorPtr            virConnGetLastError     (virConnectPtr conn);
-void                   virConnResetLastError   (virConnectPtr conn);
-int                    virCopyLastError        (virErrorPtr to);
+virErrorPtr             virConnGetLastError     (virConnectPtr conn);
+void                    virConnResetLastError   (virConnectPtr conn);
+int                     virCopyLastError        (virErrorPtr to);
 
-void                   virDefaultErrorFunc     (virErrorPtr err);
-void                   virSetErrorFunc         (void *userData,
+void                    virDefaultErrorFunc     (virErrorPtr err);
+void                    virSetErrorFunc         (void *userData,
                                                  virErrorFunc handler);
-void                   virConnSetErrorFunc     (virConnectPtr conn,
+void                    virConnSetErrorFunc     (virConnectPtr conn,
                                                  void *userData,
                                                  virErrorFunc handler);
-int                    virConnCopyLastError    (virConnectPtr conn,
+int                     virConnCopyLastError    (virConnectPtr conn,
                                                  virErrorPtr to);
 # ifdef __cplusplus
 }
index 37c9e791467e2b314a32a606a9ff1f6887a0a866..852483452bf06c6b4ce8cd76662d2ec807b0dfc5 100644 (file)
@@ -35,7 +35,7 @@
 #include "virfile.h"
 #include "virlog.h"
 
-#define VIR_FROM_THIS  VIR_FROM_BHYVE
+#define VIR_FROM_THIS   VIR_FROM_BHYVE
 
 VIR_LOG_INIT("bhyve.bhyve_monitor");
 
index 7211156ca29d93bc24ed9cf1cbe798ecfa3d4bfc..5076246aac1add390ee9118d660445782e570419 100644 (file)
@@ -49,7 +49,7 @@
 #include "virnetdevbridge.h"
 #include "virnetdevtap.h"
 
-#define VIR_FROM_THIS  VIR_FROM_BHYVE
+#define VIR_FROM_THIS   VIR_FROM_BHYVE
 
 VIR_LOG_INIT("bhyve.bhyve_process");
 
index da56eaffa480a6b82ea47a084de059a1c91d64b9..cf79773aa032327b9a0e2224d3c636b010bf4832 100644 (file)
@@ -51,17 +51,17 @@ VIR_ENUM_DECL(virNodeDevDevnode)
 
 typedef enum {
     /* Keep in sync with VIR_ENUM_IMPL in node_device_conf.c */
-    VIR_NODE_DEV_CAP_SYSTEM,           /* System capability */
-    VIR_NODE_DEV_CAP_PCI_DEV,          /* PCI device */
-    VIR_NODE_DEV_CAP_USB_DEV,          /* USB device */
-    VIR_NODE_DEV_CAP_USB_INTERFACE,    /* USB interface */
-    VIR_NODE_DEV_CAP_NET,              /* Network device */
-    VIR_NODE_DEV_CAP_SCSI_HOST,                /* SCSI Host Bus Adapter */
-    VIR_NODE_DEV_CAP_SCSI_TARGET,      /* SCSI Target */
-    VIR_NODE_DEV_CAP_SCSI,             /* SCSI device */
-    VIR_NODE_DEV_CAP_STORAGE,          /* Storage device */
-    VIR_NODE_DEV_CAP_FC_HOST,          /* FC Host Bus Adapter */
-    VIR_NODE_DEV_CAP_VPORTS,           /* HBA which is capable of vports */
+    VIR_NODE_DEV_CAP_SYSTEM,            /* System capability */
+    VIR_NODE_DEV_CAP_PCI_DEV,           /* PCI device */
+    VIR_NODE_DEV_CAP_USB_DEV,           /* USB device */
+    VIR_NODE_DEV_CAP_USB_INTERFACE,     /* USB interface */
+    VIR_NODE_DEV_CAP_NET,               /* Network device */
+    VIR_NODE_DEV_CAP_SCSI_HOST,         /* SCSI Host Bus Adapter */
+    VIR_NODE_DEV_CAP_SCSI_TARGET,       /* SCSI Target */
+    VIR_NODE_DEV_CAP_SCSI,              /* SCSI device */
+    VIR_NODE_DEV_CAP_STORAGE,           /* Storage device */
+    VIR_NODE_DEV_CAP_FC_HOST,           /* FC Host Bus Adapter */
+    VIR_NODE_DEV_CAP_VPORTS,            /* HBA which is capable of vports */
     VIR_NODE_DEV_CAP_SCSI_GENERIC,      /* SCSI generic device */
     VIR_NODE_DEV_CAP_DRM,               /* DRM device */
     VIR_NODE_DEV_CAP_MDEV_TYPES,        /* Device capable of mediated devices */
@@ -73,8 +73,8 @@ typedef enum {
 
 typedef enum {
     /* Keep in sync with VIR_ENUM_IMPL in node_device_conf.c */
-    VIR_NODE_DEV_CAP_NET_80203,                /* 802.03 network device */
-    VIR_NODE_DEV_CAP_NET_80211,                /* 802.11 network device */
+    VIR_NODE_DEV_CAP_NET_80203,         /* 802.03 network device */
+    VIR_NODE_DEV_CAP_NET_80211,         /* 802.11 network device */
     VIR_NODE_DEV_CAP_NET_LAST
 } virNodeDevNetCapType;
 
@@ -82,18 +82,18 @@ VIR_ENUM_DECL(virNodeDevCap)
 VIR_ENUM_DECL(virNodeDevNetCap)
 
 typedef enum {
-    VIR_NODE_DEV_CAP_STORAGE_REMOVABLE                 = (1 << 0),
-    VIR_NODE_DEV_CAP_STORAGE_REMOVABLE_MEDIA_AVAILABLE = (1 << 1),
-    VIR_NODE_DEV_CAP_STORAGE_HOTPLUGGABLE              = (1 << 2),
+    VIR_NODE_DEV_CAP_STORAGE_REMOVABLE                  = (1 << 0),
+    VIR_NODE_DEV_CAP_STORAGE_REMOVABLE_MEDIA_AVAILABLE  = (1 << 1),
+    VIR_NODE_DEV_CAP_STORAGE_HOTPLUGGABLE               = (1 << 2),
 } virNodeDevStorageCapFlags;
 
 typedef enum {
-    VIR_NODE_DEV_CAP_FLAG_HBA_FC_HOST                  = (1 << 0),
-    VIR_NODE_DEV_CAP_FLAG_HBA_VPORT_OPS                        = (1 << 1),
+    VIR_NODE_DEV_CAP_FLAG_HBA_FC_HOST                   = (1 << 0),
+    VIR_NODE_DEV_CAP_FLAG_HBA_VPORT_OPS                 = (1 << 1),
 } virNodeDevSCSIHostCapFlags;
 
 typedef enum {
-    VIR_NODE_DEV_CAP_FLAG_FC_RPORT                     = (1 << 0),
+    VIR_NODE_DEV_CAP_FLAG_FC_RPORT                      = (1 << 0),
 } virNodeDevSCSITargetCapsFlags;
 
 typedef enum {
@@ -197,7 +197,7 @@ typedef struct _virNodeDevCapUSBIf virNodeDevCapUSBIf;
 typedef virNodeDevCapUSBIf *virNodeDevCapUSBIfPtr;
 struct _virNodeDevCapUSBIf {
     unsigned int number;
-    unsigned int _class;               /* "class" is reserved in C */
+    unsigned int _class;                /* "class" is reserved in C */
     unsigned int subclass;
     unsigned int protocol;
     char *description;
@@ -260,7 +260,7 @@ struct _virNodeDevCapStorage {
     char *vendor;
     char *serial;
     char *media_label;
-    unsigned int flags;        /* virNodeDevStorageCapFlags bits */
+    unsigned int flags; /* virNodeDevStorageCapFlags bits */
 };
 
 typedef struct _virNodeDevCapSCSIGeneric virNodeDevCapSCSIGeneric;
@@ -317,15 +317,15 @@ typedef virNodeDeviceDef *virNodeDeviceDefPtr;
 struct _virNodeDeviceDef {
     char *name;                         /* device name (unique on node) */
     char *sysfs_path;                   /* udev name/sysfs path */
-    char *parent;                      /* optional parent device name */
+    char *parent;                       /* optional parent device name */
     char *parent_sysfs_path;            /* udev parent name/sysfs path */
-    char *parent_wwnn;                 /* optional parent wwnn */
-    char *parent_wwpn;                 /* optional parent wwpn */
-    char *parent_fabric_wwn;           /* optional parent fabric_wwn */
+    char *parent_wwnn;                  /* optional parent wwnn */
+    char *parent_wwpn;                  /* optional parent wwpn */
+    char *parent_fabric_wwn;            /* optional parent fabric_wwn */
     char *driver;                       /* optional driver name */
     char *devnode;                      /* /dev path */
     char **devlinks;                    /* /dev links */
-    virNodeDevCapsDefPtr caps;         /* optional device capabilities */
+    virNodeDevCapsDefPtr caps;          /* optional device capabilities */
 };
 
 char *
index 4bf5b7c0c4fd209766e863e2b2fa8c452ec59d8b..eeec10e67b600be2e52090471d3e98c7e1c29d13 100644 (file)
@@ -66,7 +66,7 @@
  *   terminating '0' =
  * 32-3-15-1-1 = 12
  */
-# define MAX_CHAIN_SUFFIX_SIZE 12
+# define MAX_CHAIN_SUFFIX_SIZE  12
 
 
 typedef enum {
index 7db8fccbc329fc486ada7112a02f03754c881c14..872ec1fd4b5979fdd6926d2e155da07f9e9c0d4b 100644 (file)
@@ -36,7 +36,7 @@ VIR_LOG_INIT("conf.virnodedeviceobj");
 struct _virNodeDeviceObj {
     virObjectLockable parent;
 
-    virNodeDeviceDefPtr def;           /* device definition */
+    virNodeDeviceDefPtr def;            /* device definition */
 };
 
 struct _virNodeDeviceObjList {
index 63917eb753dfb85bf84c1ed7683aa69e056301c0..e7c26abbdd892a20800d8e4b10163985dace3e32 100644 (file)
@@ -38,8 +38,8 @@ typedef virNodeDeviceDriverState *virNodeDeviceDriverStatePtr;
 struct _virNodeDeviceDriverState {
     virMutex lock;
 
-    virNodeDeviceObjListPtr devs;      /* currently-known devices */
-    void *privateData;                 /* driver-specific private data */
+    virNodeDeviceObjListPtr devs;       /* currently-known devices */
+    void *privateData;                  /* driver-specific private data */
 
     /* Immutable pointer, self-locking APIs */
     virObjectEventStatePtr nodeDeviceEventState;
index 5201c6a0ac8186b9e7cf0add2f0f94e761e1bcf4..a29dd760372602d377dd905b0a70989bb79522ea 100644 (file)
@@ -325,10 +325,10 @@ struct _qemuDomainObjPrivate {
     virTristateBool reconnectBlockjobs;
 };
 
-# define QEMU_DOMAIN_PRIVATE(vm)       \
+# define QEMU_DOMAIN_PRIVATE(vm)        \
     ((qemuDomainObjPrivatePtr) (vm)->privateData)
 
-# define QEMU_DOMAIN_DISK_PRIVATE(disk)        \
+# define QEMU_DOMAIN_DISK_PRIVATE(disk) \
     ((qemuDomainDiskPrivatePtr) (disk)->privateData)
 
 typedef struct _qemuDomainDiskPrivate qemuDomainDiskPrivate;
@@ -362,7 +362,7 @@ struct _qemuDomainDiskPrivate {
     bool removable; /* device media can be removed/changed */
 };
 
-# define QEMU_DOMAIN_HOSTDEV_PRIVATE(hostdev)  \
+# define QEMU_DOMAIN_HOSTDEV_PRIVATE(hostdev)   \
     ((qemuDomainHostdevPrivatePtr) (hostdev)->privateData)
 
 
@@ -410,7 +410,7 @@ struct _qemuDomainHostdevPrivate {
     qemuDomainSecretInfoPtr secinfo;
 };
 
-# define QEMU_DOMAIN_CHR_SOURCE_PRIVATE(dev)   \
+# define QEMU_DOMAIN_CHR_SOURCE_PRIVATE(dev)    \
     ((qemuDomainChrSourcePrivatePtr) (dev)->privateData)
 
 typedef struct _qemuDomainChrSourcePrivate qemuDomainChrSourcePrivate;
index 57893c61c61d45fc3f9ae8bc6fccf53ecda74110..2fe023399f639aedeffe24aa4ace395ac1528362 100644 (file)
@@ -724,7 +724,7 @@ int qemuMonitorGetGICCapabilities(qemuMonitorPtr mon,
                                   virGICCapability **capabilities);
 
 typedef enum {
-  QEMU_MONITOR_MIGRATE_BACKGROUND      = 1 << 0,
+  QEMU_MONITOR_MIGRATE_BACKGROUND       = 1 << 0,
   QEMU_MONITOR_MIGRATE_NON_SHARED_DISK  = 1 << 1, /* migration with non-shared storage with full disk copy */
   QEMU_MONITOR_MIGRATE_NON_SHARED_INC   = 1 << 2, /* migration with non-shared storage with incremental copy */
   QEMU_MONITOR_MIGRATION_FLAGS_LAST
index 861cbf691e8a40c2e36fb48fe22915b7a9ad5e64..edaddf3c886fff599ba8a912e63e61e6354d0cb9 100644 (file)
@@ -47,11 +47,11 @@ char *virAuditEncode(const char *key, const char *value);
 
 void virAuditClose(void);
 
-# define VIR_AUDIT(type, success, ...)                         \
+# define VIR_AUDIT(type, success, ...)                          \
     virAuditSend(&virLogSelf, __FILE__, __LINE__, __func__,     \
                  NULL, NULL, type, success, __VA_ARGS__);
 
-# define VIR_AUDIT_USER(type, success, clienttty, clientaddr, ...)     \
+# define VIR_AUDIT_USER(type, success, clienttty, clientaddr, ...)      \
     virAuditSend(&virLogSelf, __FILE__, __LINE__, __func__,             \
                  clienttty, clientaddr, type, success, __VA_ARGS__);
 
index e505848f198aef7bebdc54dd288750c1285d07b0..b5f6e5b8c7995e0964bf040d4766406e111cd07b 100644 (file)
@@ -69,7 +69,7 @@ struct _virConfParserCtxt {
 
 #define SKIP_BLANKS_AND_EOL                                             \
   do { while ((ctxt->cur < ctxt->end) && (c_isblank(CUR) || IS_EOL(CUR))) { \
-         if (CUR == '\n') ctxt->line++;                                        \
+         if (CUR == '\n') ctxt->line++;                                 \
          ctxt->cur++; } } while (0)
 #define SKIP_BLANKS                                                     \
   do { while ((ctxt->cur < ctxt->end) && (c_isblank(CUR)))              \
index f7d9a369c3f8cf9ab6cd6982d785bc8ea65601f1..c672ad645d2fb5d70f5975fea9d7914ebc35d152 100644 (file)
@@ -59,11 +59,11 @@ typedef struct _virConfValue virConfValue;
 typedef virConfValue *virConfValuePtr;
 
 struct _virConfValue {
-    virConfType type;          /* the virConfType */
-    virConfValuePtr next;      /* next element if in a list */
-    long long  l;              /* very long integer */
-    char *str;                 /* pointer to 0 terminated string */
-    virConfValuePtr list;      /* list of a list */
+    virConfType type;           /* the virConfType */
+    virConfValuePtr next;       /* next element if in a list */
+    long long  l;               /* very long integer */
+    char *str;                  /* pointer to 0 terminated string */
+    virConfValuePtr list;       /* list of a list */
 };
 
 /**
index 650216d006d6f771c1449f9c1753cf56b3417584..8e40b2b5c540bf1335011f1c441c3efc2a7e4707 100644 (file)
@@ -53,7 +53,7 @@ static const char *sysinfoCpuinfo = "/proc/cpuinfo";
 #define SYSINFO_SMBIOS_DECODER sysinfoDmidecode
 #define SYSINFO sysinfoSysinfo
 #define CPUINFO sysinfoCpuinfo
-#define CPUINFO_FILE_LEN (1024*1024)   /* 1MB limit for /proc/cpuinfo file */
+#define CPUINFO_FILE_LEN (1024*1024)    /* 1MB limit for /proc/cpuinfo file */
 
 
 void
index 885f59bceb7268e9a8e5c29a2e1409badfd34e44..5ce2b0b0dde06a71a84d4b2dc0e3680aacdfa2ec 100644 (file)
@@ -704,7 +704,7 @@ catchXMLError(void *ctx, const char *msg ATTRIBUTE_UNUSED, ...)
     xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
 
     const xmlChar *cur, *base;
-    unsigned int n, col;       /* GCC warns if signed, because compared with sizeof() */
+    unsigned int n, col;        /* GCC warns if signed, because compared with sizeof() */
     int domcode = VIR_FROM_XML;
 
     virBuffer buf = VIR_BUFFER_INITIALIZER;
index 5015b31c769387b554b1349ac194fc4e292488ad..7ebda8f5e40f8a4ae42c0ee5ef8e0ce314e5faf5 100644 (file)
@@ -121,7 +121,7 @@ struct _xenUnifiedPrivate {
      */
     virCapsPtr caps;
     virDomainXMLOptionPtr xmlopt;
-    int handle;                        /* Xen hypervisor handle */
+    int handle;                 /* Xen hypervisor handle */
 
     /* connection to xend */
     struct sockaddr_storage addr;
index 70fdcbe55417f4ab3bc9b8c1135f0e143f2638bc..7db61fade4638930262de3a3b70b30748b0df6c3 100644 (file)
@@ -170,15 +170,15 @@ static regex_t xen_cap_rec;
 # define SHUTDOWN_crash      3  /* Tell controller we've crashed.             */
 #endif
 
-#define XEN_V0_OP_GETDOMAININFOLIST    38
-#define XEN_V1_OP_GETDOMAININFOLIST    38
-#define XEN_V2_OP_GETDOMAININFOLIST    6
+#define XEN_V0_OP_GETDOMAININFOLIST     38
+#define XEN_V1_OP_GETDOMAININFOLIST     38
+#define XEN_V2_OP_GETDOMAININFOLIST     6
 
 struct xen_v0_getdomaininfo {
-    domid_t  domain;   /* the domain number */
-    uint32_t flags;    /* flags, see before */
-    uint64_t tot_pages;        /* total number of pages used */
-    uint64_t max_pages;        /* maximum number of pages allowed */
+    domid_t  domain;    /* the domain number */
+    uint32_t flags;     /* flags, see before */
+    uint64_t tot_pages; /* total number of pages used */
+    uint64_t max_pages; /* maximum number of pages allowed */
     unsigned long shared_info_frame; /* MFN of shared_info struct */
     uint64_t cpu_time;  /* CPU time used */
     uint32_t nr_online_vcpus;  /* Number of VCPUs currently online. */
@@ -189,10 +189,10 @@ struct xen_v0_getdomaininfo {
 typedef struct xen_v0_getdomaininfo xen_v0_getdomaininfo;
 
 struct xen_v2_getdomaininfo {
-    domid_t  domain;   /* the domain number */
-    uint32_t flags;    /* flags, see before */
-    uint64_t tot_pages;        /* total number of pages used */
-    uint64_t max_pages;        /* maximum number of pages allowed */
+    domid_t  domain;    /* the domain number */
+    uint32_t flags;     /* flags, see before */
+    uint64_t tot_pages; /* total number of pages used */
+    uint64_t max_pages; /* maximum number of pages allowed */
     uint64_t shared_info_frame; /* MFN of shared_info struct */
     uint64_t cpu_time;  /* CPU time used */
     uint32_t nr_online_vcpus;  /* Number of VCPUs currently online. */
@@ -208,10 +208,10 @@ typedef struct xen_v2_getdomaininfo xen_v2_getdomaininfo;
 #define ALIGN_64 __attribute__((aligned(8)))
 
 struct xen_v2d5_getdomaininfo {
-    domid_t  domain;   /* the domain number */
-    uint32_t flags;    /* flags, see before */
-    uint64_t tot_pages ALIGN_64;       /* total number of pages used */
-    uint64_t max_pages ALIGN_64;       /* maximum number of pages allowed */
+    domid_t  domain;    /* the domain number */
+    uint32_t flags;     /* flags, see before */
+    uint64_t tot_pages ALIGN_64;        /* total number of pages used */
+    uint64_t max_pages ALIGN_64;        /* maximum number of pages allowed */
     uint64_t shared_info_frame ALIGN_64; /* MFN of shared_info struct */
     uint64_t cpu_time ALIGN_64;  /* CPU time used */
     uint32_t nr_online_vcpus;  /* Number of VCPUs currently online. */
@@ -222,10 +222,10 @@ struct xen_v2d5_getdomaininfo {
 typedef struct xen_v2d5_getdomaininfo xen_v2d5_getdomaininfo;
 
 struct xen_v2d6_getdomaininfo {
-    domid_t  domain;   /* the domain number */
-    uint32_t flags;    /* flags, see before */
-    uint64_t tot_pages ALIGN_64;       /* total number of pages used */
-    uint64_t max_pages ALIGN_64;       /* maximum number of pages allowed */
+    domid_t  domain;    /* the domain number */
+    uint32_t flags;     /* flags, see before */
+    uint64_t tot_pages ALIGN_64;        /* total number of pages used */
+    uint64_t max_pages ALIGN_64;        /* maximum number of pages allowed */
     uint64_t shr_pages ALIGN_64;    /* number of shared pages */
     uint64_t shared_info_frame ALIGN_64; /* MFN of shared_info struct */
     uint64_t cpu_time ALIGN_64;  /* CPU time used */
@@ -237,10 +237,10 @@ struct xen_v2d6_getdomaininfo {
 typedef struct xen_v2d6_getdomaininfo xen_v2d6_getdomaininfo;
 
 struct xen_v2d7_getdomaininfo {
-    domid_t  domain;   /* the domain number */
-    uint32_t flags;    /* flags, see before */
-    uint64_t tot_pages ALIGN_64;       /* total number of pages used */
-    uint64_t max_pages ALIGN_64;       /* maximum number of pages allowed */
+    domid_t  domain;    /* the domain number */
+    uint32_t flags;     /* flags, see before */
+    uint64_t tot_pages ALIGN_64;        /* total number of pages used */
+    uint64_t max_pages ALIGN_64;        /* maximum number of pages allowed */
     uint64_t shr_pages ALIGN_64;    /* number of shared pages */
     uint64_t shared_info_frame ALIGN_64; /* MFN of shared_info struct */
     uint64_t cpu_time ALIGN_64;  /* CPU time used */
@@ -253,10 +253,10 @@ struct xen_v2d7_getdomaininfo {
 typedef struct xen_v2d7_getdomaininfo xen_v2d7_getdomaininfo;
 
 struct xen_v2d8_getdomaininfo {
-    domid_t  domain;   /* the domain number */
-    uint32_t flags;    /* flags, see before */
-    uint64_t tot_pages ALIGN_64;       /* total number of pages used */
-    uint64_t max_pages ALIGN_64;       /* maximum number of pages allowed */
+    domid_t  domain;    /* the domain number */
+    uint32_t flags;     /* flags, see before */
+    uint64_t tot_pages ALIGN_64;        /* total number of pages used */
+    uint64_t max_pages ALIGN_64;        /* maximum number of pages allowed */
     uint64_t shr_pages ALIGN_64;    /* number of shared pages */
     uint64_t paged_pages ALIGN_64;    /* number of paged pages */
     uint64_t shared_info_frame ALIGN_64; /* MFN of shared_info struct */
@@ -270,10 +270,10 @@ struct xen_v2d8_getdomaininfo {
 typedef struct xen_v2d8_getdomaininfo xen_v2d8_getdomaininfo;
 
 struct xen_v2d9_getdomaininfo {
-    domid_t  domain;   /* the domain number */
-    uint32_t flags;    /* flags, see before */
-    uint64_t tot_pages ALIGN_64;       /* total number of pages used */
-    uint64_t max_pages ALIGN_64;       /* maximum number of pages allowed */
+    domid_t  domain;    /* the domain number */
+    uint32_t flags;     /* flags, see before */
+    uint64_t tot_pages ALIGN_64;        /* total number of pages used */
+    uint64_t max_pages ALIGN_64;        /* maximum number of pages allowed */
     uint64_t outstanding_pages ALIGN_64;
     uint64_t shr_pages ALIGN_64;    /* number of shared pages */
     uint64_t paged_pages ALIGN_64;    /* number of paged pages */
@@ -661,38 +661,38 @@ typedef struct xen_v0_domainop xen_v0_domainop;
 /*
  * The information for a pausedomain system hypercall
  */
-#define XEN_V0_OP_PAUSEDOMAIN  10
-#define XEN_V1_OP_PAUSEDOMAIN  10
-#define XEN_V2_OP_PAUSEDOMAIN  3
+#define XEN_V0_OP_PAUSEDOMAIN   10
+#define XEN_V1_OP_PAUSEDOMAIN   10
+#define XEN_V2_OP_PAUSEDOMAIN   3
 
 /*
  * The information for an unpausedomain system hypercall
  */
-#define XEN_V0_OP_UNPAUSEDOMAIN        11
-#define XEN_V1_OP_UNPAUSEDOMAIN        11
-#define XEN_V2_OP_UNPAUSEDOMAIN        4
+#define XEN_V0_OP_UNPAUSEDOMAIN 11
+#define XEN_V1_OP_UNPAUSEDOMAIN 11
+#define XEN_V2_OP_UNPAUSEDOMAIN 4
 
 /*
  * The information for a setmaxmem system hypercall
  */
-#define XEN_V0_OP_SETMAXMEM    28
-#define XEN_V1_OP_SETMAXMEM    28
-#define XEN_V2_OP_SETMAXMEM    11
+#define XEN_V0_OP_SETMAXMEM     28
+#define XEN_V1_OP_SETMAXMEM     28
+#define XEN_V2_OP_SETMAXMEM     11
 
 struct xen_v0_setmaxmem {
-    domid_t    domain;
-    uint64_t   maxmem;
+    domid_t     domain;
+    uint64_t    maxmem;
 };
 typedef struct xen_v0_setmaxmem xen_v0_setmaxmem;
 typedef struct xen_v0_setmaxmem xen_v1_setmaxmem;
 
 struct xen_v2_setmaxmem {
-    uint64_t   maxmem;
+    uint64_t    maxmem;
 };
 typedef struct xen_v2_setmaxmem xen_v2_setmaxmem;
 
 struct xen_v2d5_setmaxmem {
-    uint64_t   maxmem ALIGN_64;
+    uint64_t    maxmem ALIGN_64;
 };
 typedef struct xen_v2d5_setmaxmem xen_v2d5_setmaxmem;
 
@@ -701,13 +701,13 @@ typedef struct xen_v2d5_setmaxmem xen_v2d5_setmaxmem;
  * Note that between 1 and 2 the limitation to 64 physical CPU was lifted
  * hence the difference in structures
  */
-#define XEN_V0_OP_SETVCPUMAP   20
-#define XEN_V1_OP_SETVCPUMAP   20
-#define XEN_V2_OP_SETVCPUMAP   9
+#define XEN_V0_OP_SETVCPUMAP    20
+#define XEN_V1_OP_SETVCPUMAP    20
+#define XEN_V2_OP_SETVCPUMAP    9
 
 struct xen_v0_setvcpumap {
-    domid_t    domain;
-    uint32_t   vcpu;
+    domid_t     domain;
+    uint32_t    vcpu;
     cpumap_t    cpumap;
 };
 typedef struct xen_v0_setvcpumap xen_v0_setvcpumap;
@@ -718,7 +718,7 @@ struct xen_v2_cpumap {
     uint32_t    nr_cpus;
 };
 struct xen_v2_setvcpumap {
-    uint32_t   vcpu;
+    uint32_t    vcpu;
     struct xen_v2_cpumap cpumap;
 };
 typedef struct xen_v2_setvcpumap xen_v2_setvcpumap;
@@ -739,7 +739,7 @@ struct xen_v2d5_cpumap {
     uint32_t    nr_cpus;
 };
 struct xen_v2d5_setvcpumap {
-    uint32_t   vcpu;
+    uint32_t    vcpu;
     struct xen_v2d5_cpumap cpumap;
 };
 typedef struct xen_v2d5_setvcpumap xen_v2d5_setvcpumap;
@@ -748,63 +748,63 @@ typedef struct xen_v2d5_setvcpumap xen_v2d5_setvcpumap;
  * The information for a vcpuinfo system hypercall
  */
 #define XEN_V0_OP_GETVCPUINFO   43
-#define XEN_V1_OP_GETVCPUINFO  43
+#define XEN_V1_OP_GETVCPUINFO   43
 #define XEN_V2_OP_GETVCPUINFO   14
 
 struct xen_v0_vcpuinfo {
-    domid_t    domain;         /* owner's domain */
-    uint32_t   vcpu;           /* the vcpu number */
-    uint8_t    online;         /* seen as on line */
-    uint8_t    blocked;        /* blocked on event */
-    uint8_t    running;        /* scheduled on CPU */
-    uint64_t    cpu_time;      /* nanosecond of CPU used */
-    uint32_t   cpu;            /* current mapping */
-    cpumap_t   cpumap;         /* deprecated in V2 */
+    domid_t     domain;         /* owner's domain */
+    uint32_t    vcpu;           /* the vcpu number */
+    uint8_t     online;         /* seen as on line */
+    uint8_t     blocked;        /* blocked on event */
+    uint8_t     running;        /* scheduled on CPU */
+    uint64_t    cpu_time;       /* nanosecond of CPU used */
+    uint32_t    cpu;            /* current mapping */
+    cpumap_t    cpumap;         /* deprecated in V2 */
 };
 typedef struct xen_v0_vcpuinfo xen_v0_vcpuinfo;
 typedef struct xen_v0_vcpuinfo xen_v1_vcpuinfo;
 
 struct xen_v2_vcpuinfo {
-    uint32_t   vcpu;           /* the vcpu number */
-    uint8_t    online;         /* seen as on line */
-    uint8_t    blocked;        /* blocked on event */
-    uint8_t    running;        /* scheduled on CPU */
-    uint64_t    cpu_time;      /* nanosecond of CPU used */
-    uint32_t   cpu;            /* current mapping */
+    uint32_t    vcpu;           /* the vcpu number */
+    uint8_t     online;         /* seen as on line */
+    uint8_t     blocked;        /* blocked on event */
+    uint8_t     running;        /* scheduled on CPU */
+    uint64_t    cpu_time;       /* nanosecond of CPU used */
+    uint32_t    cpu;            /* current mapping */
 };
 typedef struct xen_v2_vcpuinfo xen_v2_vcpuinfo;
 
 struct xen_v2d5_vcpuinfo {
-    uint32_t   vcpu;           /* the vcpu number */
-    uint8_t    online;         /* seen as on line */
-    uint8_t    blocked;        /* blocked on event */
-    uint8_t    running;        /* scheduled on CPU */
+    uint32_t    vcpu;           /* the vcpu number */
+    uint8_t     online;         /* seen as on line */
+    uint8_t     blocked;        /* blocked on event */
+    uint8_t     running;        /* scheduled on CPU */
     uint64_t    cpu_time ALIGN_64; /* nanosecond of CPU used */
-    uint32_t   cpu;            /* current mapping */
+    uint32_t    cpu;            /* current mapping */
 };
 typedef struct xen_v2d5_vcpuinfo xen_v2d5_vcpuinfo;
 
 /*
  * from V2 the pinning of a vcpu is read with a separate call
  */
-#define XEN_V2_OP_GETVCPUMAP   25
+#define XEN_V2_OP_GETVCPUMAP    25
 typedef struct xen_v2_setvcpumap xen_v2_getvcpumap;
 typedef struct xen_v2d5_setvcpumap xen_v2d5_getvcpumap;
 
 /*
  * from V2 we get the scheduler information
  */
-#define XEN_V2_OP_GETSCHEDULERID       4
+#define XEN_V2_OP_GETSCHEDULERID        4
 
 /*
  * from V2 we get the available heap information
  */
-#define XEN_V2_OP_GETAVAILHEAP         9
+#define XEN_V2_OP_GETAVAILHEAP          9
 
 /*
  * from V2 we get the scheduler parameter
  */
-#define XEN_V2_OP_SCHEDULER            16
+#define XEN_V2_OP_SCHEDULER             16
 /* Scheduler types. */
 #define XEN_SCHEDULER_SEDF       4
 #define XEN_SCHEDULER_CREDIT     5
@@ -891,10 +891,10 @@ typedef struct xen_op_v2_dom xen_op_v2_dom;
 
 
 #ifdef __linux__
-# define XEN_HYPERVISOR_SOCKET "/proc/xen/privcmd"
-# define HYPERVISOR_CAPABILITIES       "/sys/hypervisor/properties/capabilities"
+# define XEN_HYPERVISOR_SOCKET  "/proc/xen/privcmd"
+# define HYPERVISOR_CAPABILITIES        "/sys/hypervisor/properties/capabilities"
 #elif defined(__sun)
-# define XEN_HYPERVISOR_SOCKET "/dev/xen/privcmd"
+# define XEN_HYPERVISOR_SOCKET  "/dev/xen/privcmd"
 #else
 # error "unsupported platform"
 #endif
@@ -3002,13 +3002,13 @@ xenHypervisorPinVcpu(virConnectPtr conn,
  * @info: pointer to an array of virVcpuInfo structures (OUT)
  * @maxinfo: number of structures in info array
  * @cpumaps: pointer to a bit map of real CPUs for all vcpus of this domain (in 8-bit bytes) (OUT)
- *     If cpumaps is NULL, then no cpumap information is returned by the API.
- *     It's assumed there is <maxinfo> cpumap in cpumaps array.
- *     The memory allocated to cpumaps must be (maxinfo * maplen) bytes
- *     (ie: calloc(maxinfo, maplen)).
- *     One cpumap inside cpumaps has the format described in virDomainPinVcpu() API.
+ *      If cpumaps is NULL, then no cpumap information is returned by the API.
+ *      It's assumed there is <maxinfo> cpumap in cpumaps array.
+ *      The memory allocated to cpumaps must be (maxinfo * maplen) bytes
+ *      (ie: calloc(maxinfo, maplen)).
+ *      One cpumap inside cpumaps has the format described in virDomainPinVcpu() API.
  * @maplen: number of bytes in one cpumap, from 1 up to size of CPU map in
- *     underlying virtualization system (Xen...).
+ *      underlying virtualization system (Xen...).
  *
  * Extract information about virtual CPUs of domain, store it in info array
  * and also in cpumaps if this pointer isn't NULL.
index f59847ff144cccaf7b9973678fc03073b678b7c1..5a964690fa243a47976d4a7c2bbf1bd927f8bc90 100644 (file)
@@ -137,6 +137,6 @@ int     xenHypervisorNodeGetCellsFreeMemory(virConnectPtr conn,
                                           int startCell,
                                           int maxCells);
 
-int    xenHavePrivilege(void);
+int     xenHavePrivilege(void);
 
 #endif                          /* __VIR_XEN_INTERNAL_H__ */
index 6da29509016564a89e0cfddefbe05a1099205648..ccb1478b397193233e749c42d8b1df62fce385b0 100644 (file)
@@ -1888,13 +1888,13 @@ xenDaemonDomainGetVcpusFlags(virConnectPtr conn,
  * @info: pointer to an array of virVcpuInfo structures (OUT)
  * @maxinfo: number of structures in info array
  * @cpumaps: pointer to a bit map of real CPUs for all vcpus of this domain (in 8-bit bytes) (OUT)
- *     If cpumaps is NULL, then no cpumap information is returned by the API.
- *     It's assumed there is <maxinfo> cpumap in cpumaps array.
- *     The memory allocated to cpumaps must be (maxinfo * maplen) bytes
- *     (ie: calloc(maxinfo, maplen)).
- *     One cpumap inside cpumaps has the format described in virDomainPinVcpu() API.
+ *      If cpumaps is NULL, then no cpumap information is returned by the API.
+ *      It's assumed there is <maxinfo> cpumap in cpumaps array.
+ *      The memory allocated to cpumaps must be (maxinfo * maplen) bytes
+ *      (ie: calloc(maxinfo, maplen)).
+ *      One cpumap inside cpumaps has the format described in virDomainPinVcpu() API.
  * @maplen: number of bytes in one cpumap, from 1 up to size of CPU map in
- *     underlying virtualization system (Xen...).
+ *      underlying virtualization system (Xen...).
  *
  * Extract information about virtual CPUs of domain, store it in info array
  * and also in cpumaps if this pointer isn't NULL.
index 9064b4728e7de119372e92083fe05cc22e07a485..7e947ff6e5e0092b36ece5a9514b1ab7b322e4fe 100644 (file)
@@ -147,14 +147,14 @@ int xenDaemonDomainCreate(virConnectPtr conn,
 int xenDaemonDomainUndefine(virConnectPtr conn,
                             virDomainDefPtr def);
 
-int    xenDaemonDomainSetVcpus         (virConnectPtr conn,
+int     xenDaemonDomainSetVcpus         (virConnectPtr conn,
                                          virDomainDefPtr def,
                                          unsigned int vcpus);
-int    xenDaemonDomainSetVcpusFlags    (virConnectPtr conn,
+int     xenDaemonDomainSetVcpusFlags    (virConnectPtr conn,
                                          virDomainDefPtr def,
                                          unsigned int vcpus,
                                          unsigned int flags);
-int    xenDaemonDomainPinVcpu          (virConnectPtr conn,
+int     xenDaemonDomainPinVcpu          (virConnectPtr conn,
                                          virDomainDefPtr def,
                                          unsigned int vcpu,
                                          unsigned char *cpumap,
@@ -162,7 +162,7 @@ int xenDaemonDomainPinVcpu          (virConnectPtr conn,
 int     xenDaemonDomainGetVcpusFlags    (virConnectPtr conn,
                                          virDomainDefPtr def,
                                          unsigned int flags);
-int    xenDaemonDomainGetVcpus         (virConnectPtr conn,
+int     xenDaemonDomainGetVcpus         (virConnectPtr conn,
                                          virDomainDefPtr def,
                                          virVcpuInfoPtr info,
                                          int maxinfo,
index 7c82a3444c9cb84c26d2ba8d5957840e08ca8fa1..e448968f7578f171b0f5b3a54e7262a921511651 100644 (file)
@@ -737,10 +737,10 @@ xenStoreWatchEvent(int watch ATTRIBUTE_UNUSED,
                    int fd ATTRIBUTE_UNUSED,
                    int events, void *data)
 {
-    char                **event;
-    char                *path;
-    char                *token;
-    unsigned int        stringCount;
+    char                 **event;
+    char                 *path;
+    char                 *token;
+    unsigned int         stringCount;
     xenStoreWatchPtr     sw;
 
     virConnectPtr        conn = data;
index 24e2627b54a33079e044892d2ad39eda3017d0d9..69cca585c2274038644e9659528ef2b3b6c9925c 100644 (file)
 # include "internal.h"
 # include "driver.h"
 
-int            xenStoreOpen            (virConnectPtr conn,
+int             xenStoreOpen            (virConnectPtr conn,
                                          virConnectAuthPtr auth,
                                          unsigned int flags);
-int            xenStoreClose           (virConnectPtr conn);
-int            xenStoreNumOfDomains    (virConnectPtr conn);
-int            xenStoreListDomains     (virConnectPtr conn,
+int             xenStoreClose           (virConnectPtr conn);
+int             xenStoreNumOfDomains    (virConnectPtr conn);
+int             xenStoreListDomains     (virConnectPtr conn,
                                          int *ids,
                                          int maxids);
 
@@ -41,13 +41,13 @@ char *          xenStoreDomainGetConsolePath(virConnectPtr conn,
                                          int domid);
 char *          xenStoreDomainGetSerialConsolePath(virConnectPtr conn,
                                          int domid);
-char *         xenStoreDomainGetNetworkID(virConnectPtr conn,
+char *          xenStoreDomainGetNetworkID(virConnectPtr conn,
                                          int id,
                                          const char *mac);
-char *         xenStoreDomainGetDiskID(virConnectPtr conn,
+char *          xenStoreDomainGetDiskID(virConnectPtr conn,
                                          int id,
                                          const char *dev);
-char *         xenStoreDomainGetPCIID(virConnectPtr conn,
+char *          xenStoreDomainGetPCIID(virConnectPtr conn,
                                    int domid,
                                    const char *bdf);
 char *          xenStoreDomainGetName(virConnectPtr conn,