aio.hpp: read() uses basic type to make generation of swig interfaces easier
authorBrendan Le Foll <brendan.le.foll@intel.com>
Tue, 27 May 2014 09:38:56 +0000 (10:38 +0100)
committerBrendan 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

index bab5fc4..f882b6c 100644 (file)
@@ -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;