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 7deb982920866b62f31428f71020c1bf2a1543bc..5d7bf61223d952afa496d6346439e584dfb8591a 100644
(file)
--- a/
src/lib/CECParserC.cpp
+++ b/
src/lib/CECParserC.cpp
@@
-47,6
+47,13
@@
bool cec_init(const char *strDeviceName, cec_logical_address iLogicalAddress /*
return (cec_parser != NULL);
}
return (cec_parser != NULL);
}
+void cec_destroy(void)
+{
+ cec_close();
+ delete cec_parser;
+ cec_parser = NULL;
+}
+
bool cec_open(const char *strPort, int iTimeout)
{
if (cec_parser)
bool cec_open(const char *strPort, int iTimeout)
{
if (cec_parser)
@@
-54,15
+61,10
@@
bool cec_open(const char *strPort, int iTimeout)
return false;
}
return false;
}
-
bool cec_close(int iTimeout
)
+
void cec_close(void
)
{
{
- bool bReturn = false;
if (cec_parser)
if (cec_parser)
- bReturn = cec_parser->Close(iTimeout);
-
- delete cec_parser;
- cec_parser = NULL;
- return bReturn;
+ cec_parser->Close();
}
bool cec_ping(void)
}
bool cec_ping(void)