[peripherals] added fields m_mappedType and m_strDeviceName to PeripheralScanResult
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 26 Feb 2013 13:19:00 +0000 (14:19 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 28 Feb 2013 19:14:31 +0000 (20:14 +0100)
xbmc/peripherals/bus/PeripheralBus.cpp
xbmc/peripherals/bus/PeripheralBus.h

index d9459e3..cfe8ad4 100644 (file)
@@ -29,6 +29,14 @@ using namespace PERIPHERALS;
 
 #define PERIPHERAL_DEFAULT_RESCAN_INTERVAL 1000
 
+PeripheralScanResult::PeripheralScanResult(void)
+{
+  m_iVendorId  = 0;
+  m_iProductId = 0;
+  m_type       = PERIPHERAL_UNKNOWN;
+  m_mappedType = PERIPHERAL_UNKNOWN;
+}
+
 bool PeripheralScanResult::operator ==(const PeripheralScanResult &right) const
 {
   return m_iVendorId == right.m_iVendorId &&
index 749dd23..fdc97c0 100644 (file)
@@ -33,6 +33,7 @@ namespace PERIPHERALS
 
   struct PeripheralScanResult
   {
+    PeripheralScanResult(void);
     bool operator ==(const PeripheralScanResult &right) const;
     bool operator !=(const PeripheralScanResult &right) const;
 
@@ -43,6 +44,8 @@ namespace PERIPHERALS
     CStdString     m_strLocation;
     int            m_iVendorId;
     int            m_iProductId;
+    PeripheralType m_mappedType;
+    CStdString     m_strDeviceName;
   };
 
   struct PeripheralScanResults