Attn: Determine TI source by host running state

In cases where the TI info is not available use the host running state
to make an educated guess as to the source of the TI.

Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
Change-Id: I95c59ecad90b3aec417a64df4eac0ac5cb50dc09
diff --git a/attn/attn_dbus.hpp b/attn/attn_dbus.hpp
index 8f21fbe..700097f 100644
--- a/attn/attn_dbus.hpp
+++ b/attn/attn_dbus.hpp
@@ -8,6 +8,13 @@
 namespace attn
 {
 
+enum class HostRunningState
+{
+    Unknown,
+    NotStarted,
+    Started
+};
+
 /**
  * Create a PEL for the specified event type
  *
@@ -46,4 +53,14 @@
  */
 int getPel(const uint32_t i_pelId);
 
+/**
+ * Get the host running state
+ *
+ * Use host boot progress to determine if a host has been started. If host
+ * boot progress can not be determined then host state will be unknown.
+ *
+ * @return HostType == "Unknown", "Started or "NotStarted"
+ */
+HostRunningState hostRunningState();
+
 } // namespace attn