repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
timeout parameter removed from Close()/cec_close(). return type changed to void....
[deb_libcec.git]
/
src
/
lib
/
CECParserC.cpp
diff --git
a/src/lib/CECParserC.cpp
b/src/lib/CECParserC.cpp
index a4841a0a69b0dec55860b17e65bd3e496338c6d3..5d7bf61223d952afa496d6346439e584dfb8591a 100644
(file)
--- a/
src/lib/CECParserC.cpp
+++ b/
src/lib/CECParserC.cpp
@@
-47,11
+47,11
@@
bool cec_init(const char *strDeviceName, cec_logical_address iLogicalAddress /*
return (cec_parser != NULL);
}
return (cec_parser != NULL);
}
-
bool cec_close
(void)
+
void cec_destroy
(void)
{
{
+ cec_close();
delete cec_parser;
cec_parser = NULL;
delete cec_parser;
cec_parser = NULL;
- return true;
}
bool cec_open(const char *strPort, int iTimeout)
}
bool cec_open(const char *strPort, int iTimeout)
@@
-61,6
+61,12
@@
bool cec_open(const char *strPort, int iTimeout)
return false;
}
return false;
}
+void cec_close(void)
+{
+ if (cec_parser)
+ cec_parser->Close();
+}
+
bool cec_ping(void)
{
if (cec_parser)
bool cec_ping(void)
{
if (cec_parser)
@@
-131,10
+137,10
@@
bool cec_get_next_command(cec_command *command)
return false;
}
return false;
}
-bool cec_transmit(const CEC::cec_frame &data, bool bWaitForAck /* = true */
, int64_t iTimeout /* = 2000 */
)
+bool cec_transmit(const CEC::cec_frame &data, bool bWaitForAck /* = true */)
{
if (cec_parser)
{
if (cec_parser)
- return cec_parser->Transmit(data, bWaitForAck
, iTimeout
);
+ return cec_parser->Transmit(data, bWaitForAck);
return false;
}
return false;
}