]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/include/jorte/4all.h
JORTE: update license headers and clean-up includes
[orte.git] / orte / include / jorte / 4all.h
index 8dfcd8169afec69744f57463416505a84ee110c3..d9bc2f0b707c957e12b1c37f48d12349d243d7d5 100644 (file)
@@ -1,4 +1,31 @@
 /* 4all.h */
+
+/**
+  * This code provides conversion between JAVA a C environments.
+  * The C functions are calling here and results are send to JAVA
+  * native functions. It uses the header pregenerated by JAVA
+  * (by command 'javah -jni class_with_native_function')
+  *
+  * @author Lukas Pokorny (lukas_pokorny@centrum.cz)
+  * @author Martin Vajnar (martin.vajnar@gmail.com)
+  * @author CTU FEE Prague - Department of Control Engineering (dce.felk.cvut.cz)
+  * @author Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
+  * @author dedication to Kj
+  * @version 0.1
+  *
+  *
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 2 of the License, or
+  * (at your option) any later version.
+  *
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  * GNU General Public License for more details.
+  *
+  */
+
 /*
 typedef struct
 {
@@ -9,5 +36,17 @@ typedef struct
 } JORTECallbackContext_t;
 */
 // pro test purposes only
-#define TEST_STAGE
+#ifndef Included4all
+#define Included4all
+
+//#define TEST_STAGE
+
+#include <jni.h>
+
+#ifdef __ANDROID__
+
+#include <android/log.h>
+#define printf(...)            __android_log_print(ANDROID_LOG_INFO, "ORTE", __VA_ARGS__)
 
+#endif
+#endif