Blame SOURCES/0008-expose-hints-in-XML-output-688.patch

bf6610
From 235e46c6adfcb0cb5feaec8073cacd0db0bc98e7 Mon Sep 17 00:00:00 2001
bf6610
From: Amit Saha <asaha@redhat.com>
bf6610
Date: Tue, 2 Jun 2015 14:11:32 +1000
99c779
Subject: [PATCH 08/26] expose hints in XML output (#688)
bf6610
bf6610
---
bf6610
 src/core/hw.cc | 13 +++++++++++++
bf6610
 1 file changed, 13 insertions(+)
bf6610
bf6610
diff --git a/src/core/hw.cc b/src/core/hw.cc
bf6610
index 44e2bd8..963f4ba 100644
bf6610
--- a/src/core/hw.cc
bf6610
+++ b/src/core/hw.cc
99c779
@@ -1987,6 +1987,19 @@ string hwNode::asXML(unsigned level)
bf6610
       out << "</resources>" << endl;
bf6610
     }
bf6610
     resources.clear();
bf6610
+
bf6610
+    vector < string > hints = getHints();
bf6610
+    if (hints.size() > 0) {
bf6610
+      out << spaces(2*level+1);
bf6610
+      out << "<hints>" << endl;
bf6610
+      for(unsigned int i=0; i
bf6610
+        out << spaces(2*level+2);
bf6610
+        out << "<hint name=\"" << hints[i] << "\" " << "value=\"" << getHint(hints[i]).asString() << "\" />";
bf6610
+        out << endl;
bf6610
+      }
bf6610
+      out << spaces(2*level+1);
bf6610
+      out << "</hints>" << endl;
bf6610
+    }
bf6610
   }
bf6610
 
bf6610
   for (unsigned int i = 0; i < countChildren(); i++)
bf6610
-- 
99c779
2.10.2
bf6610