/* JORTEDomainInitEvents.c */
-
/**
* This code provides conversion between JAVA a C environments.
* The C functions are calling here and results are send to JAVA
* (by command 'javah -jni class_with_native_function')
*
* @author Lukas Pokorny (lukas_pokorny@centrum.cz)
- * @author CTU FEE Prague - Department of Control Engineering (dce.felk.cvut.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
*
*/
-#include <stdlib.h>
-// origin orte headers
-#include "orte.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_types_DomainEvents.h"
-#include "jorte/4all.h"
+#include "jorte/jorte.h"
JNIEXPORT jlong JNICALL
Java_org_ocera_orte_types_DomainEvents_jORTEDomainInitEvents
ORTEDomainAppEvents *evs;
// memory allocation
- evs = (ORTEDomainAppEvents *) malloc(sizeof(ORTEDomainAppEvents));
+ evs = (ORTEDomainAppEvents *) MALLOC(sizeof(ORTEDomainAppEvents));
if(evs == 0)
{
printf(":!c: evs = NULL [not enough memory] \n");