X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2FLibCecSharp%2FLibCecSharp.cpp;h=ecb9bea9223f0f74abefa161f3f7f08818df7078;hb=3490ea720c5ec7532455ac9b434e2d8e6071a2c1;hp=073ae774f926ea0b5e87a460a0437ae65409389f;hpb=f9717bcc6224db67d0f40f54588c6fb47990f155;p=deb_libcec.git
diff --git a/src/LibCecSharp/LibCecSharp.cpp b/src/LibCecSharp/LibCecSharp.cpp
index 073ae77..ecb9bea 100644
--- a/src/LibCecSharp/LibCecSharp.cpp
+++ b/src/LibCecSharp/LibCecSharp.cpp
@@ -1,7 +1,7 @@
/*
* This file is part of the libCEC(R) library.
*
-* libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited. All rights reserved.
+* libCEC(R) is Copyright (C) 2011-2013 Pulse-Eight Limited. All rights reserved.
* libCEC(R) is an original work, containing original code.
*
* libCEC(R) is a trademark of Pulse-Eight Limited.
@@ -731,6 +731,24 @@ namespace CecSharp
m_libCec->InitVideoStandalone();
}
+ ///
+ /// Get the (virtual) USB vendor id
+ ///
+ /// The (virtual) USB vendor id
+ uint16_t GetAdapterVendorId()
+ {
+ return m_libCec->GetAdapterVendorId();
+ }
+
+ ///
+ /// Get the (virtual) USB product id
+ ///
+ /// The (virtual) USB product id
+ uint16_t GetAdapterProductId()
+ {
+ return m_libCec->GetAdapterProductId();
+ }
+
private:
!LibCecSharp(void)
{
@@ -801,6 +819,12 @@ namespace CecSharp
if (netConfig->ServerVersion >= CecServerVersion::Version1_6_3)
config.bMonitorOnly = netConfig->MonitorOnlyClient ? 1 : 0;
+ if (netConfig->ServerVersion >= CecServerVersion::Version1_8_0)
+ config.cecVersion = (cec_version)netConfig->CECVersion;
+
+ if (netConfig->ServerVersion >= CecServerVersion::Version2_1_0)
+ config.bPowerOnScreensaver = netConfig->PowerOnScreensaver ? 1 : 0;
+
config.callbacks = &g_cecCallbacks;
}