cec: fixed typo in CUSBCECAdapterCommunication::Read()
[deb_libcec.git] / src / lib / LibCECC.cpp
index 5ca2885d48edeeb5425a87a3238bd2cb9bb61439..3711686e3685e56f907699e1c974f14fde0bf177 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * 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.
@@ -74,10 +74,10 @@ void cec_close(void)
     cec_parser->Close();
 }
 
-int cec_enable_callbacks(ICECCallbacks *callbacks)
+int cec_enable_callbacks(void *cbParam, ICECCallbacks *callbacks)
 {
   if (cec_parser)
-    return cec_parser->EnableCallbacks(callbacks) ? 1 : 0;
+    return cec_parser->EnableCallbacks(cbParam, callbacks) ? 1 : 0;
   return -1;
 }
 
@@ -371,4 +371,14 @@ int cec_enable_physical_address_detection(void)
   return cec_parser ? (cec_parser->EnablePhysicalAddressDetection() ? 1 : 0) : -1;
 }
 
+int cec_set_stream_path_logical(CEC::cec_logical_address iAddress)
+{
+  return cec_parser ? (cec_parser->SetStreamPath(iAddress) ? 1 : 0) : -1;
+}
+
+int cec_set_stream_path_physical(uint16_t iPhysicalAddress)
+{
+  return cec_parser ? (cec_parser->SetStreamPath(iPhysicalAddress) ? 1 : 0) : -1;
+}
+
 //@}