2jciebu01: remove attribute specifier from common header and update swig interfaces

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu 2019-04-09 20:50:45 -07:00
parent 9cddd4a8b1
commit d256a225bf
3 changed files with 29 additions and 1 deletions

View File

@ -1,8 +1,22 @@
#ifdef SWIGPYTHON
%module (package="upm") 2jciebu01_ble
#endif
%include "../common_top.i"
/* BEGIN Java syntax ------------------------------------------------------- */
#ifdef SWIGJAVA
JAVA_JNI_LOADLIBRARY(javaupm_2jciebu01_ble)
#endif
/* END Java syntax */
/* BEGIN Common SWIG syntax ------------------------------------------------- */
%{
#include "2jciebu01_ble.hpp"
#include "2jciebu01.hpp"
%}
%include "2jciebu01_ble.hpp"
%include "2jciebu01.hpp"
/* END Common SWIG syntax */

View File

@ -137,7 +137,7 @@ public :
int16_t eCO2;
int16_t discomfort_index;
int16_t heat_stroke;
} __attribute__((packed))om2jciebuData_t;
} om2jciebuData_t;
/**
* OM2JCIEBU destructor

View File

@ -1,8 +1,22 @@
#ifdef SWIGPYTHON
%module (package="upm") 2jciebu01_usb
#endif
%include "../common_top.i"
/* BEGIN Java syntax ------------------------------------------------------- */
#ifdef SWIGJAVA
JAVA_JNI_LOADLIBRARY(javaupm_2jciebu01_usb)
#endif
/* END Java syntax */
/* BEGIN Common SWIG syntax ------------------------------------------------- */
%{
#include "2jciebu01_usb.hpp"
#include "2jciebu01.hpp"
%}
%include "2jciebu01_usb.hpp"
%include "2jciebu01.hpp"
/* END Common SWIG syntax */