repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cec: set lib interface version back to 1.0 and rename GetLibVersion() to GetLibVersio...
[deb_libcec.git]
/
src
/
lib
/
LibCECC.cpp
diff --git
a/src/lib/LibCECC.cpp
b/src/lib/LibCECC.cpp
index ad663b7623fcf104e528f0fa5bab7c5b3a054c74..a3be5f3bea89df0498af40851132a293f4ce6040 100644
(file)
--- a/
src/lib/LibCECC.cpp
+++ b/
src/lib/LibCECC.cpp
@@
-92,14
+92,21
@@
int cec_start_bootloader(void)
int8_t cec_get_min_version(void)
{
if (cec_parser)
int8_t cec_get_min_version(void)
{
if (cec_parser)
- return cec_parser->GetMinVersion();
+ return cec_parser->GetMin
Lib
Version();
return -1;
}
return -1;
}
-int8_t cec_get_lib_version(void)
+int8_t cec_get_lib_version
_major
(void)
{
if (cec_parser)
{
if (cec_parser)
- return cec_parser->GetLibVersion();
+ return cec_parser->GetLibVersionMajor();
+ return -1;
+}
+
+int8_t cec_get_lib_version_minor(void)
+{
+ if (cec_parser)
+ return cec_parser->GetLibVersionMinor();
return -1;
}
return -1;
}
@@
-208,4
+215,11
@@
uint64_t cec_get_device_vendor_id(cec_logical_address iLogicalAddress)
return 0;
}
return 0;
}
+cec_power_status cec_get_device_power_status(cec_logical_address iLogicalAddress)
+{
+ if (cec_parser)
+ return cec_parser->GetDevicePowerStatus(iLogicalAddress);
+ return CEC_POWER_STATUS_UNKNOWN;
+}
+
//@}
//@}