projects
/
contrib
/
mraa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5a9af6
)
aio.hpp: read() uses basic type to make generation of swig interfaces easier
author
Brendan Le Foll
<brendan.le.foll@intel.com>
Tue, 27 May 2014 09:38:56 +0000
(10:38 +0100)
committer
Brendan Le Foll
<brendan.le.foll@intel.com>
Tue, 27 May 2014 09:38:56 +0000
(10:38 +0100)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
api/aio.hpp
patch
|
blob
|
history
diff --git
a/api/aio.hpp
b/api/aio.hpp
index
bab5fc4
..
f882b6c
100644
(file)
--- a/
api/aio.hpp
+++ b/
api/aio.hpp
@@
-42,8
+42,9
@@
class Aio {
~Aio() {
maa_aio_close(m_aio);
}
- uint16_t read() {
- return maa_aio_read(m_aio);
+ int read() {
+ // Use basic types to make swig code generation simpler
+ return (int) maa_aio_read(m_aio);
}
private:
maa_aio_context m_aio;