repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
win32: sync visual studio project files
[deb_libcec.git]
/
src
/
lib
/
platform
/
serialport.h
diff --git
a/src/lib/platform/serialport.h
b/src/lib/platform/serialport.h
index ea6cdea15ff31eb152e5e78268e494d78cbdbe2b..4d1be825c77d373a5eaacc2092c9f39b13b11dc9 100644
(file)
--- a/
src/lib/platform/serialport.h
+++ b/
src/lib/platform/serialport.h
@@
-19,8
+19,8
@@
*/
#include "os-dependent.h"
*/
#include "os-dependent.h"
+#include <cectypes.h>
#include <string>
#include <string>
-#include <vector>
#include <stdint.h>
#include "../platform/threads.h"
#include <stdint.h>
#include "../platform/threads.h"
@@
-46,11
+46,7
@@
namespace CEC
bool IsOpen();
void Close();
bool IsOpen();
void Close();
- int32_t Write(std::vector<uint8_t> data)
- {
- return Write(&data[0], (uint32_t) data.size());
- }
- int32_t Write(uint8_t* data, uint32_t len);
+ int8_t Write(const cec_adapter_message &data);
int32_t Read(uint8_t* data, uint32_t len, uint64_t iTimeoutMs = 0);
std::string GetError() { return m_error; }
int32_t Read(uint8_t* data, uint32_t len, uint64_t iTimeoutMs = 0);
std::string GetError() { return m_error; }