Private
Public Access
2
0

java: Included jni.h in an external header

The reason for this is that applications that use mraa, like upm, need the
definitions contained in jni header.

Signed-off-by: Andrei Vasiliu <andrei.vasiliu@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Andrei Vasiliu
2016-03-01 15:58:05 +00:00
committed by Brendan Le Foll
parent 029e08669c
commit 53058d500b
3 changed files with 8 additions and 8 deletions

View File

@@ -44,6 +44,13 @@ extern "C" {
#include <pthread.h>
#include "common.h"
#if defined(SWIGJAVA) || defined(JAVACALLBACK)
#include <jni.h>
extern "C" {
void mraa_java_isr_callback(void *args);
}
#endif
/**
* Opaque pointer definition to the internal struct _gpio
*/

View File

@@ -28,13 +28,6 @@
#include "types.hpp"
#include <stdexcept>
#if defined(SWIGJAVA) || defined(JAVACALLBACK)
extern "C" {
void mraa_java_isr_callback(void *args);
}
#endif
#if defined(SWIGJAVASCRIPT)
#if NODE_MODULE_VERSION >= 0x000D
#include <uv.h>