repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux: fix compilation
[deb_libcec.git]
/
src
/
lib
/
LibCECC.cpp
diff --git
a/src/lib/LibCECC.cpp
b/src/lib/LibCECC.cpp
index 28658cd2697636b4b4899f467ed36f62638f8e80..edc30d234223b160212b38078bc27f2ed4052db9 100644
(file)
--- a/
src/lib/LibCECC.cpp
+++ b/
src/lib/LibCECC.cpp
@@
-1,7
+1,7
@@
/*
* This file is part of the libCEC(R) library.
*
/*
* This file is part of the libCEC(R) library.
*
- * libCEC(R) is Copyright (C) 2011 Pulse-Eight Limited. All rights reserved.
+ * libCEC(R) is Copyright (C) 2011
-2012
Pulse-Eight Limited. All rights reserved.
* libCEC(R) is an original work, containing original code.
*
* libCEC(R) is a trademark of Pulse-Eight Limited.
* libCEC(R) is an original work, containing original code.
*
* libCEC(R) is a trademark of Pulse-Eight Limited.
@@
-74,6
+74,13
@@
void cec_close(void)
cec_parser->Close();
}
cec_parser->Close();
}
+int cec_enable_callbacks(void *cbParam, ICECCallbacks *callbacks)
+{
+ if (cec_parser)
+ return cec_parser->EnableCallbacks(cbParam, callbacks) ? 1 : 0;
+ return -1;
+}
+
int8_t cec_find_adapters(cec_adapter *deviceList, uint8_t iBufSize, const char *strDevicePath /* = NULL */)
{
if (cec_parser)
int8_t cec_find_adapters(cec_adapter *deviceList, uint8_t iBufSize, const char *strDevicePath /* = NULL */)
{
if (cec_parser)
@@
-95,7
+102,7
@@
int cec_start_bootloader(void)
return -1;
}
return -1;
}
-int8_t cec_get_min_version(void)
+int8_t cec_get_min_
lib_
version(void)
{
if (cec_parser)
return cec_parser->GetMinLibVersion();
{
if (cec_parser)
return cec_parser->GetMinLibVersion();
@@
-312,24
+319,24
@@
int cec_set_hdmi_port(cec_logical_address iBaseDevice, uint8_t iPort)
return -1;
}
return -1;
}
-int cec_volume_up(int b
Wait
)
+int cec_volume_up(int b
SendRelease
)
{
if (cec_parser)
{
if (cec_parser)
- return cec_parser->VolumeUp(b
Wait
== 1);
+ return cec_parser->VolumeUp(b
SendRelease
== 1);
return -1;
}
return -1;
}
-int cec_volume_down(int b
Wait
)
+int cec_volume_down(int b
SendRelease
)
{
if (cec_parser)
{
if (cec_parser)
- return cec_parser->VolumeDown(b
Wait
== 1);
+ return cec_parser->VolumeDown(b
SendRelease
== 1);
return -1;
}
return -1;
}
-int cec_mute_audio(int b
Wait
)
+int cec_mute_audio(int b
SendRelease
)
{
if (cec_parser)
{
if (cec_parser)
- return cec_parser->MuteAudio(b
Wait
== 1);
+ return cec_parser->MuteAudio(b
SendRelease
== 1);
return -1;
}
return -1;
}
@@
-347,14
+354,14
@@
int cec_send_key_release(cec_logical_address iDestination, int bWait)
return -1;
}
return -1;
}
-cec_osd_name cec_get_osd_name(cec_logical_address iAddress)
+cec_osd_name cec_get_
device_
osd_name(cec_logical_address iAddress)
{
cec_osd_name retVal;
retVal.device = iAddress;
retVal.name[0] = 0;
if (cec_parser)
{
cec_osd_name retVal;
retVal.device = iAddress;
retVal.name[0] = 0;
if (cec_parser)
- retVal = cec_parser->GetOSDName(iAddress);
+ retVal = cec_parser->Get
Device
OSDName(iAddress);
return retVal;
}
return retVal;
}