repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: make libudev optional. if libudev is not available on linux, adapter autodetecti...
[deb_libcec.git]
/
src
/
LibCecSharp
/
LibCecSharp.cpp
diff --git
a/src/LibCecSharp/LibCecSharp.cpp
b/src/LibCecSharp/LibCecSharp.cpp
index 03c0009cea20e7bc51dd1d26449eb1ffac5417dd..673739a71d9e4ea1affcadabfa5058ad5b69dca9 100644
(file)
--- a/
src/LibCecSharp/LibCecSharp.cpp
+++ b/
src/LibCecSharp/LibCecSharp.cpp
@@
-676,12
+676,22
@@
public:
return m_libCec->SendKeyRelease((cec_logical_address)destination, wait);
}
return m_libCec->SendKeyRelease((cec_logical_address)destination, wait);
}
- String ^ GetOSDName(CecLogicalAddress logicalAddress)
+ String ^ Get
Device
OSDName(CecLogicalAddress logicalAddress)
{
{
- cec_osd_name osd = m_libCec->GetOSDName((cec_logical_address) logicalAddress);
+ cec_osd_name osd = m_libCec->Get
Device
OSDName((cec_logical_address) logicalAddress);
return gcnew String(osd.name);
}
return gcnew String(osd.name);
}
+ CecLogicalAddress GetActiveSource()
+ {
+ return (CecLogicalAddress)m_libCec->GetActiveSource();
+ }
+
+ bool IsActiveSource(CecLogicalAddress logicalAddress)
+ {
+ return m_libCec->IsActiveSource((cec_logical_address)logicalAddress);
+ }
+
private:
ICECAdapter *m_libCec;
};
private:
ICECAdapter *m_libCec;
};