cec: added optional logical and physical address parameters to LoadLibCec()/cec_init...
[deb_libcec.git] / src / lib / CECParserC.cpp
index 84d54105b09e343573c77d1ff3d4003838d1bc3b..1aae849a7815f47550ee9784d726b0afeb1c32ba 100644 (file)
@@ -41,9 +41,9 @@ using namespace std;
 //@{
 ICECDevice *cec_parser;
 
-bool cec_init(const char *strDeviceName)
+bool cec_init(const char *strDeviceName, cec_logical_address iLogicalAddress /* = CECDEVICE_PLAYBACKDEVICE1 */, int iPhysicalAddress /* = CEC_DEFAULT_PHYSICAL_ADDRESS */)
 {
-  cec_parser = (ICECDevice *) CECCreate(strDeviceName);
+  cec_parser = (ICECDevice *) CECCreate(strDeviceName, iLogicalAddress, iPhysicalAddress);
   return (cec_parser != NULL);
 }